[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Extracting values from the XML data source

Subject: RE: Extracting values from the XML data source
From: cknell@xxxxxxxxxx
Date: Thu, 17 Jul 2003 10:20:43 -0400
extracting xml data
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.