You can use <xsl:value-of select="@first"/> and <xsl:value-of
select="@last"/> if you simply want the values as text as you have done with
sex.

Geoff Dawson

> -----Original Message-----
> From: K. Rumman Akhter [mailto:[EMAIL PROTECTED]
> Sent: 06 March 2000 17:35
> To: [EMAIL PROTECTED]
> Subject: 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
> 

Reply via email to