This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: How is this part of the XSLT specification to be interpreted?
OK - that last post had a few obvious errors that I might take
the opportunity to correct before anyone else does. Changes
highlighted with an asterisk.
To tell the truth, I'm surprised to find that noone has flamed
me for proposing this yet.
Warren Hedley wrote:
>
> Input:
* <!--doc
> <h1>Documentation</h1>
> <p>Here's some text.</p>
> -->
>
> XSL:
>
> <xsl:template match="/">
> <html>
> <head><title>Docs</title></head>
> <body>
> <xsl:apply-templates select="//comment()" />
> </body>
> </html>
> </xsl:template>
>
> <xsl:template match="comment()">
> <xsl:if test="starts-with(., 'doc')">
> <xsl:value-of disable-output-escaping="yes"
* select="substring-after(., 'doc')" />
> </xsl:if>
> </xsl:template>
--
Warren Hedley
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list