I recently wrote the following XSLT macro to output an RSS from the children of a node specified by the "startnode" request variable. I am fairly inexperienced with XSLT and wondered if anyone would critique my XSLT and suggest any changes.
* NOTES
urn:meta and the call of
are just calls to an xslt extension to change the content type of the output - it can be omitted, but the rss validators croak on the mime type being text/html.
All the are just to make the rss output a little more readable - line breaks.
Much of the RSS code is from another umbraco user (from the forum I think), but I can't find the URL to give credit at the moment. I will update when I find it. END NOTES *
Critique RSS XSLT
I recently wrote the following XSLT macro to output an RSS from the children of a node specified by the "startnode" request variable. I am fairly inexperienced with XSLT and wondered if anyone would critique my XSLT and suggest any changes.
* NOTES
urn:meta and the call of
are just calls to an xslt extension to change the content type of the output - it can be omitted, but the rss validators croak on the mime type being text/html.
All the are just to make the rss output a little more readable - line breaks.
Much of the RSS code is from another umbraco user (from the forum I think), but I can't find the URL to give credit at the moment. I will update when I find it.
END NOTES *
[code]
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt"
xmlns:umbraco.library="urn:umbraco.library"
xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:meta="urn:meta"
exclude-result-prefixes="msxml umbraco.library Exslt.ExsltStrings meta">
[/code]
Thanks and best regards,
Hal
is working on a reply...