xsl-list
[Top] [All Lists]

[xsl] Element name Change for a node

2006-09-13 18:00:36

Hi All,

I have the following structure in my XML and I want to transform this all "address" node content to prefix with "US".
Please let me how to create the XSL template for the given input.

Input
  <address>
   <streetAddress>123 First Street</streetAddress>
     <city>Sometown</city>
     <state>CA</state>
     <zip>12345</zip>
     <province />
     <country>USA</country>
  </address>

output
  <address>
   <US_streetAddress>123 First Street</US_streetAddress>
     <US_city>Sometown</US_city>
     <US_state>CA<US_/state>
     <US_zip>12345</US_zip>
     <US_province />
     <US_country>USA</US_country>
  </address>

I do not know how to create the XSL for it to transform.

Thanks for your help.


Regards,
Senthil

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>