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

Re: How to use an XML-based LUT with XSLT?

Subject: Re: How to use an XML-based LUT with XSLT?
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Thu, 27 Sep 2001 10:26:15 -0700 (PDT)
 Re: How to use an XML-based LUT with XSLT?
Xavier Defrang <xavier at perceval dot net> wrote:

> I've written a XSL document to transform XML into XHTML (yes, that's a big
> surprize!).  The document contains some error codes and I'd like to
> transform these numerical codes into an actual human-readable message so I
> built a small XML document as follow :

[snip]

> Now I'd like to change my XSLT so I could look-up into the Table to
> substitute numerical error codes by text messages with something like :
> 
> <xsl:value-of select="/Table/Message[@Code=ActualErrorCode]"/> 
> 
> Now the question is how do I "link" this table to my input DOM so I can
> reach the Message elements from within my XSLT?  Is there any possibility
> to that with plain XSLT? (I don't want to use any engine-dependant
> extensions)

Xavier,

For an example of key-based access into a lookup table see:

http://sources.redhat.com/ml/xsl-list/2001-06/msg01004.html



Hope this helped.

Cheers,
Dimitre Novatchev.



__________________________________________________
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.yahoo.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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-2011 All Rights Reserved.