i have a document a.xml with tags
<OldPhone>
<PhoneNumber>123-456-789</PhoneNumber>
<Description>HOME</Description>
</OldPhone>
<OldPhone>
<PhoneNumber>222-777-3333</PhoneNumber>
<Description>WORK</Description>
</OldPhone>
i need to get to b.xml that looks like this.
<tag name=IM2>123-456-789</tag>
<tag name=IM3>222-777-3333</tag>
I have created an XSL document that will put the first number into both fields, but i can not figure out how to get the work and home phone seperate.
my xsl
<tag name="IM2">
<xsl:value-of select=".//OldPhone/Number"/>
</tag>
this gives the first phone number in both fields. Ideas?
<OldPhone>
<PhoneNumber>123-456-789</PhoneNumber>
<Description>HOME</Description>
</OldPhone>
<OldPhone>
<PhoneNumber>222-777-3333</PhoneNumber>
<Description>WORK</Description>
</OldPhone>
i need to get to b.xml that looks like this.
<tag name=IM2>123-456-789</tag>
<tag name=IM3>222-777-3333</tag>
I have created an XSL document that will put the first number into both fields, but i can not figure out how to get the work and home phone seperate.
my xsl
<tag name="IM2">
<xsl:value-of select=".//OldPhone/Number"/>
</tag>
this gives the first phone number in both fields. Ideas?