This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Displaying Descriptions Based on Codes
- From: "Thomas B. Passin" <tpassin at mitretek dot org>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Fri, 15 Mar 2002 11:22:09 -0500
- Subject: Re: [xsl] Displaying Descriptions Based on Codes
- References: <F116pTjRZ6RbGOFjdmQ0001aea1@hotmail.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Create another xml file that contains the description for the codes, and get
them into the stylesheet using document(). You can create a key to do fast
lookup if the code list is lengthy. I do this on one job for FIPS codes
(city, county, and state codes).
Cheers,
Tom P
[Katie McNally]
> The XML that I get back after posting to a vendor contains data for a set
of
> transactions. I am displaying each transaction as a row in a table. One
of
> the columns needs to show the Transaction Description. This value is not
> part of the XML data returned. Instead, for each transaction, a code
> (Nm=CODE") is returned. The numeric value for the tag is the code, and is
> associated to a description. Right now we have a spreadsheet of what all
> the codes and there corresponding descriptions are.
>
> How do I display the description for each transaction using XSL when the
xml
> contains only the code?
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list