Subject: RE: Extracting values from the XML data source
From: cknell@xxxxxxxxxx
Date: Thu, 17 Jul 2003 10:20:43 -0400
|
Yes, if you mean to assign the value to a variable which is declared in the stylesheet with <xsl:variable>. No, if you mean to create the variable on-the-fly and assign a value to it. As has often been noted here, the variable must exist at compile time, there is no <xsl:evaluate> element.
<xsl:variable name="moe-larry-curly" select="xpath/expression/to/element/or/attribute" />
--
Charles Knell
cknell@xxxxxxxxxx - email
-----Original Message-----
From: "Charlie Barker" <CharlieBarker@xxxxxxxxxxxxxxxxxxxxx>
Sent: Thu, 17 Jul 2003 15:08:15 +0100
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Extracting values from the XML data source
Dear XML'ers,
Is it possible to extract a value from the xml data and place it into a
stylesheet variable at the time of processing ?
My reason for needing to do this is that I would like to restrict the number
of 'rows' returned by the style sheet dynamically.
Cheers,
Charlie
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|