Inner-Workings of a Software Mind
Wednesday, September 30, 2009
  XSLT Transformation Example: Replacing Node Values in XML
Here's a useful tip that I just recently discovered.

If you want to transform the following XML document to hold different values for elements such as name and phoneNumber,



to an XML document such as the following:




Use the following XSLT variation of the identity transform:



Hope you found this useful. Thanks! Sorry for being MIA, if you need me to update the CDT/Eclipse posting please reply back here.

 

Archives
October 2004 / May 2005 / June 2005 / July 2005 / August 2005 / September 2005 / October 2005 / November 2005 / March 2006 / May 2007 / September 2007 / September 2009 / December 2009 / February 2011 /


Powered by Blogger

Subscribe to
Posts [Atom]