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

Re: Lookup kind of Functionality with XSL

Subject: Re: Lookup kind of Functionality with XSL
From: Mukul Gandhi <gandhi.mukul@xxxxxxxxx>
Date: Fri, 30 Oct 2009 14:26:49 +0530
Re:  Lookup kind of Functionality with XSL
you can use the XSLT 'document' function to achieve this (ref,
http://www.w3.org/TR/xslt#document).

On Fri, Oct 30, 2009 at 2:20 PM, Anil Kumar Veeramalli
<anil.v@xxxxxxxxxxxxxxxxxxxxx> wrote:
> Hi,
>
> I have a requirement like this.
>
> <employee hireDate="09/01/1998">
> B  <COLUMN NAME="LAST">Herbert three</COLUMN>
> B  <COLUMN NAME="FIRST">Johnny</COLUMN>
> B  <COLUMN NAME="ANL_RATE"><![CDATA[26525.8500]]></COLUMN>
> B  <COLUMN NAME="STATUS"><![CDATA[A]]></COLUMN>
> B </employee>
>
> another piece of XML is
> <DESC_TABLE>
> <COLUMN NAME="STATUS"><![CDATA[A]]></COLUMN>
> <COLUMN NAME="DESCR"><![CDATA[Active]]></COLUMN>
> </ROW>
> </DESC_TABLE>
>
>
> while reading STATUS (status A), I need to look up the corresponding
> Description ('Active').
>
> I will have to use only XSL 1.0 version, javascript and XALAN (if required)
>
> how can I achieve this in XSL.
>
> Thanks,
> Anil



--
Regards,
Mukul Gandhi

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.