Re: conditional inclusions

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'))"/> 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: in Denver, Colorado, USA 

 XSL-List info and archive:

Current Thread