|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








