Skip to content

steenk/td2xml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

td2xml

TDStruct (Tripledollar Structure) to XML transformation.

var td2xml = require('./td2xml');

var parser = td2xml();
parser.namespace('xsl', 'http://www.w3.org/1999/XSL/Transform');

var xsl = ['xsl:stylesheet', {version: '1.0'},
		['xsl:output', {method:'xml'}],
		['xsl:template', {
			match: 'doc'
		},
			['body',
				['h1',
					['xsl:value-of', {
						select: '.'
					}]
				]
			]
		]
	];

var xml = parser.parse(xsl);

console.log(xml);

About

TDStruct to XML transformation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published