[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: value-of node test.
Steve,
At 03:12 PM 7/10/2006, you wrote: I'm iterating thu an ordered list of services. If the two lists of values are in the same document, you may simply need the current() function: <xsl:value-of select="$services//Record[service = current()/@title ]/value" /> If one of the lists has to be provided by the stylesheet, see the "lookup tables" idiom as documented on the XSLT FAQ at: http://www.dpawson.co.uk/xsl/sect2/N4995.html Note that the table itself can be stored either in an external file, or in the stylesheet itself, accessed via a call to document('') (which returns the XML of the stylesheet parsed as a document). Cheers, Wendell
|
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
|