XML to XML Using XSLT
From: Alexis (is4fun2k_at_yahoo.com)
Date: 09/15/04
- Next message: W.G. Ryan eMVP: "Re: Java for DotNET"
- Previous message: dotNetDave: "RE: Setup Projects"
- Next in thread: Derek Harmon: "Re: XML to XML Using XSLT"
- Reply: Derek Harmon: "Re: XML to XML Using XSLT"
- Messages sorted by: [ date ] [ thread ]
Date: 15 Sep 2004 16:05:02 -0700
Hi,
I need to transform one xml document into a second xml document. They
both have many nodes so xslt works fine, but there is one node I have
not figure out how to transform.
Here it is:
Node in Input File.
<FullAddress>JOHN SMITH@19495 BISCAYNE
BLVD@MIAMI@FL/33180@USA</FullAddress>
The Result should be:
<Name>JOHN SMITH</Name>
<Address>19495 BISCAYNE BLVD</Address>
<City>MIAMI</City>
<State>FL</State>
<ZipCode>33180</ZipCode>
<Country>USA</Country>
It seems to me I have to "Split" or "Parse" the FullAddress node by
the "@" character, but HOW I do that in XSLT?
Note: The Name element is optional in the FullAdress node. So this
input node is also valid.
<FullAddress>19495 BISCAYNE BLVD@MIAMI@FL/33180@USA</FullAddress>
Any Ideas?
Thanks
- Next message: W.G. Ryan eMVP: "Re: Java for DotNET"
- Previous message: dotNetDave: "RE: Setup Projects"
- Next in thread: Derek Harmon: "Re: XML to XML Using XSLT"
- Reply: Derek Harmon: "Re: XML to XML Using XSLT"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|