Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Hal Lesesne 25 posts 25 karma points
    Jan 08, 2009 @ 16:44
    Hal Lesesne
    0

    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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies