xsl-list
[Top] [All Lists]

RE: Extracting values from the XML data source

2003-07-17 07:20:43
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(_at_)onebox(_dot_)com - email



-----Original Message-----
From:     "Charlie Barker" 
<CharlieBarker(_at_)RedlineSoftware(_dot_)co(_dot_)uk>
Sent:     Thu, 17 Jul 2003 15:08:15 +0100
To:       <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Subject:  [xsl] 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



<Prev in Thread] Current Thread [Next in Thread>