You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xerces.apache.org by "K. Rumman Akhter" <ka...@sputnik7.com> on 2000/03/06 18:35:06 UTC

RE: extracting attribute values in XSL (newbie)

i am having trouble figuring out how to extract attribute values using xsl.
i can create attributes using <xsl:attribute> but how to it extract the
values?

for example,

<name last="doe" first="john">
 <sex>Male</sex>
</name>

i can get the <sex> value buy:

<xsl:template match="name">
 <!-- here i want to insert the first and the last name -->
 <xsl:value-of select="sex"/>
</xsl:template>

any help would be appreciated...

Thanks,
RUm