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

Re: conditional inclusions

Subject: Re: conditional inclusions
From: Mike Brown <mike@xxxxxxxx>
Date: Wed, 1 Nov 2000 09:57:55 -0400 (EST)
Re: conditional inclusions
Ronald wrote:
> can one of you guys explain to us something we call "conditional inclusions".

xsl:include and xsl:import are only for adding to the stylesheet tree.

Following your example, and assuming $include is already set to the
number, try:

<xsl:variable name="tree" select="document(concat('file',$include,'.xml'))"/>

...to set $tree to the root node of the source tree implied by file#.xml.
Then you can work with just that tree, like:

<xsl:copy-of select="$tree"/>

   - Mike
____________________________________________________________________
Mike J. Brown, software engineer at         My XML/XSL resources:
webb.net in Denver, Colorado, USA           http://www.skew.org/xml/




 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.