|
Subject: Re: conditional inclusions From: Mike Brown <mike@xxxxxxxx> Date: Wed, 1 Nov 2000 09:57:55 -0400 (EST) |
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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: conditional inclusions, Dylan Walsh | Thread | RE: conditional inclusions, Kay Michael |
| <saxon:output> throws "NoSuchMethod, Ron Chibnik | Date | RE: conditional inclusions, Kay Michael |
| Month |