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

Re: seriously trivial question about processing the ro

Subject: Re: seriously trivial question about processing the root element
From: "Robert P. J. Day" <rpjday@xxxxxxxxxxxxxx>
Date: Thu, 20 Mar 2003 07:35:45 -0500 (EST)
Re:  seriously trivial question about processing the ro
On Thu, 20 Mar 2003, Jeni Tennison wrote:

> I'd have a different *stylesheet* to get XSL-FO. The mode names that I
> usually use are based on what the templates in that mode are supposed
> to produce. In this stylesheet, 'html' mode would produce HTML, and I
> might have other modes such as 'block', 'inline'.
> 
> In another stylesheet I might have a 'filter' mode that would filter
> the source XML.
> 
> When I wanted to filter-and-create-HTML, I'd create a third stylesheet
> that imported both the *2html and filter stylesheet, and had a
> template matching the root node that would look like:
> 
> <xsl:template match="/">
>   <xsl:variable name="filtered">
>     <xsl:apply-templates select="doc" mode="filter" />
>   </xsl:variable>
>   <xsl:apply-templates select="exsl:node-set($filtered)/*"
>                        mode="html" />
> </xsl:template>

ah, that's clever.  to be filed away in my "clever tricks"
folder.  thanks.

rday


 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.