[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: How is this part of the XSLT specification to be interpr

Subject: Re: How is this part of the XSLT specification to be interpreted?
From: Warren Hedley <w.hedley@xxxxxxxxxxxxxx>
Date: Tue, 20 Jun 2000 14:00:41 -0400
Re: How is this part of the XSLT specification to be interpr
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.