This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
HOWTO : Lookup tables
- To: XSL-List at lists dot mulberrytech dot com
- Subject: [xsl] HOWTO : Lookup tables
- From: Benoit_Aumars at jltgroup dot com
- Date: Fri, 22 Jun 2001 10:31:04 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi,
I'm looking for a sample code to transform one xml file into another one
using a 'lookup tables' xml file.
Suppose I have this before.xml :
<?xml version="1.0"?>
<in>
<A code1="01" code2="Hello" />
<A code1="02" code2="world" />
</in>
and I want to transform it into after.xml :
<?xml version="1.0"?>
<in>
<Label1>01</Label1>
<Label2>Hello</Label2>
<Label1>02</Label1>
<Label2>world</Label2>
</in>
using this 'lookup tables' xml file ( something like this / similar to this
) :
<?xml version="1.0"?>
<lookup>
<abbr>code1</abbr><name>Label1</name>
<abbr>code2</abbr><name>Label2</name>
</lookup>
Can someone help me out please ?
ben.
************************************************************
JLT Management Services Limited
6 Crutched Friars, London EC3N 2PH. Co Reg No 1536540
Tel: (44) (0)20 7528 4000 Fax: (44) (0)20 7528 4500
http://www.jltgroup.com
------------------------------------------------------------
The content of this e-mail (including any attachments) as
received may not be the same as sent. If you consider that
the content is material to the formation or performance of
a contract or you are otherwise relying upon its accuracy,
you should consider requesting a copy be sent by facsimile
or normal mail. The information in this e-mail is
confidential and may be legally privileged. If you are not
the intended recipient, please notify the sender immediately
and then delete this e-mail entirely - you must not retain,
copy, distribute or use this e-mail for any purpose or
disclose any of its content to others.
Opinions, conclusions and other information in this e-mail
that do not relate to the official business of JLT
Management Services Limited shall be understood as neither
given nor endorsed by it. Please note we intercept and
monitor incoming / outgoing e-mail and therefore you should
neither expect nor intend any e-mail to be private in nature.
We have checked this e-mail for viruses and other harmful
components and believe but not guarantee it virus-free prior
to leaving our computer system. However, you should satisfy
yourself that it is free from harmful components, as we do
not accept responsibility for any loss or damage it may
cause to your computer systems.
************************************************************
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list