Steve,
At 03:12 PM 7/10/2006, you wrote:
I'm iterating thu an ordered list of services.
I have another list of the values of those services, but not in order.
As I move thru the ordered list, I'd like to get the value of the
unordered list which shares meets the service=(_at_)title test.
Is there a shorthand way to do this using value-of? I know I can
resort to xsl:when or xsl:if, if need be.
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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--