Created
July 27, 2015 06:46
-
-
Save int128/f9004eddb946a47c840c to your computer and use it in GitHub Desktop.
Attempt to use xslt with jsdom but failed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var jsdom = require("jsdom"); | |
document = jsdom.jsdom(); | |
window = document.defaultView; | |
var xslt = require("xslt"); | |
var result = xslt( | |
'<a>xxx</a>', | |
'<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="xml" encoding="UTF-8"/></xsl:stylesheet>'); | |
console.info(result); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment