Subject: RE: [xsl] How to use an XML-based LUT with XSLT? From: "Chris Bayes" <chris@xxxxxxxxxxx> Date: Thu, 27 Sep 2001 18:55:13 +0100 |
http://www.biglist.com/lists/xsl-list/archives/200008/msg01300.html XML/XSL Portal http://www.bayes.co.uk/xml > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > Xavier Defrang > Sent: 27 September 2001 15:50 > To: Mulburrytech's XSL Mailing List > Subject: [xsl] How to use an XML-based LUT with XSLT? > > > > Hello folks, > > 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 : > > <?xml version="1.0" standalone="yes"?> > <Table> > <Message Code="...">User-friendly error message</Message> > ... > </Table> > > 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) > > Maybe should I make a <xsl:choose>-based template matching > the elements containing these codes? > > Thanks in advance, > > Xavier Defrang > Perceval R&D Team > xavier@xxxxxxxxxxxx > > ------------------------------------------------- > Perceval Technologies SA/NV Tel: +32-2-6409194 > Rue Tenbosch, 9 Fax: +32-2-6403154 > B-1000 Brussels http://www.perceval.net > BELGIUM info@xxxxxxxxxxxx > ------------------------------------------------- > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How to use an XML-based L, Goetz Bock | Thread | RE: [xsl] How to use an XML-based L, Taras Tielkes |
[xsl] Changing an attribute whereve, mjyoungblut | Date | [xsl] Position X Sort-> Please urge, Paulo Henrique S. Be |
Month |