Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple XSLT Transformation Question

Status
Not open for further replies.

accelerator

Programmer
Oct 5, 2006
2
GB
Hi All

I need to use XSLT to pick out the brand information from an XML feed, which is currently in the following format:

<field>
<name>manufacturer</name>
<value>Aubade</value>
</field>

I need to transform this to:

<brand>Aubade</brand>

Anyone know what the xsl should be to do that?

Any help, however small, greatly appreciated.

Many thanks

Accelerator
 
Ok, found the answer now, the xsl was:

<brand><xsl:value-of select="fields/field[name='manufacturer']/value" /></brand>

Rgds

Accel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top