Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: value-of select=...[@attribute] value-of select=...[@attribute]To: NULL Date: 7/8/2006 6:53:00 PM
Hi,
I got a XML file like [3] and I'd need to get the value of the type
attribute.
Why does [1] return the number it self while [2] returns the value of
the type attribute?
Is there a way to get the value of the type attribute in the
match="entry" example?
Regards, Toby
[1]
<xsl:template match="entry">
<xsl:value-of select="phonenumbers/number[@type]"/>
</xsl:template>
[2]
<xsl:template match="number">
<xsl:value-of select="@type"/>
</xsl:template>
[3]
<entry private="false">
<phonenumbers standard="mobile">
<number type="mobile">+49176***/number>
</phonenumbers>
</entry>
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
