-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to include a xsl stylesheet? #44
Comments
var xml = require("xml")
console.log(xml(
[
{"?xml-stylesheet": [{ _attr: { type: "text/xsl", href: "sitemap.xsl" } }]},
{"sitemapindex": [
{ _attr: { xmlns: "http://www.sitemaps.org/schemas/sitemap/0.9" } },
{ sitemap: [
{ loc: "https://nextjs.marcofranssen.nl/blog-sitemap.xml" },
{ lastmod: new Date().toISOString() },
]
},
]},
], { declaration: [{version:"1.0",encoding:"UTF-8"}] }
)) |
Seems that It doesn't work. |
Indeed the code you shown is the code I'm using @LiuQixuan. See the result vs the thing I would expect. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to include my xsl stylesheet but somehow it doesn't work.
My code:
Result:
Expected:
The text was updated successfully, but these errors were encountered: