RE: [xsl] Lookup kind of Functionality with XSL

Subject: RE: [xsl] Lookup kind of Functionality with XSL
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 30 Oct 2009 09:38:44 -0000
> I have a requirement like this.
> <employee hireDate="09/01/1998">
>     <COLUMN NAME="LAST">Herbert three</COLUMN>
>     <COLUMN NAME="ANL_RATE"><![CDATA[26525.8500]]></COLUMN>
>   </employee>
> another piece of XML is
> </ROW>
> while reading STATUS (status A), I need to look up the 
> corresponding Description ('Active').

Assuming that the <employee> element is bound to variable $emp, and the
<DESC_TABLE> element to variable $table, and that there is a <ROW> start tag
carelessly omitted from the sample XML, you want


As I suggested in a response to a previous post, this would all become a lot
easier if you first transform this verbose representation of your data into
something cleaner, like

  <status code="A" description="Active"/>

so the logic would become



Michael Kay 

Current Thread