xsl-list
[Top] [All Lists]

Re: [xsl] Lookup kind of Functionality with XSL

2009-10-30 04:57:32
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(_dot_)v(_at_)frescoinformatics(_dot_)com> wrote:
Hi,

I have a requirement like this.

<employee hireDate="09/01/1998">
  <COLUMN NAME="LAST">Herbert three</COLUMN>
  <COLUMN NAME="FIRST">Johnny</COLUMN>
  <COLUMN NAME="ANL_RATE"><![CDATA[26525.8500]]></COLUMN>
  <COLUMN NAME="STATUS"><![CDATA[A]]></COLUMN>
 </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

--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>