RE: [xsl] Lookup Reference XML inside of XSL

Subject: RE: [xsl] Lookup Reference XML inside of XSL
From: "Passin, Tom" <tpassin@xxxxxxxxxxxx>
Date: Tue, 27 Jul 2004 16:03:03 -0400
> From: sbz sbz [mailto:sbz@xxxxxxxxxxxxxxxxx]
>
> I am doing a transformation using XSL.  Some of the XML that is being
> transformed contains a reference code.  That value of that reference
code
> exists in another XML file.  My goal is to provide the text associated
> with that code instead of the ref code.
>
> Is is possible in the XSL to do a lookup on an external XML file?

It is very feasible, and you should be able to find examples in various
FAQs.  There is also at least one example in the forthcoming O'Reilly
book "XML Hacks" (look for the example using "FIPS" codes).

Basically, you use the document() function to bring in the xml lookup
table.

Cheers,

Tom P

Current Thread