|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: xsl:include of a variable file
> From: Jo Bourne [mailto:venus@xxxxxxxxx] > Sent: Monday, November 04, 2002 5:47 AM > Subject: xsl:include of a variable file > > > Hi, > > I need to include one xsl in another based on a variable > (which happens to be the name of the xsl I wish to include). > > <xsl:include href="$something"/> > > does not seem to work, although <xsl:value-of > select="$something"/> does output the correct filename. what > is the right way to do this? I assume I am misunderstanding > how to use the variable. XSLT prohibits the use of variables in xsl:include or xsl:import elements. Variables are assigned at run-time, but import/include elements are processed when the stylesheet is compiled, so their href values must be defined explicitly. See http://www.dpawson.co.uk/xsl/sect2/nono.html#d1243e280. cheers, b. | brian martinez brian.martinez@xxxxxxxx | | senior gui programmer 303.708.7248 | | trip network, inc. fax 303.790.9350 | | 6436 s. racine cir. englewood, co 80111 | | http://www.cheaptickets.com/ http://www.trip.com/ | 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








