Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Extract text between an element. Extract text between an element.To: NULL Date: 4/11/2007 4:08:00 PM
Given the xml (at bottom), how would I use xsl to extract the text "Reason
for Assessment" ?
<xsl:template match="Question">
<xsl:value-of select="."></xsl:value-of>
</xsl:template>
If I use the xsl shown above it will output all the text in all the elements
contained in the element "Question".
<Question Value="8"> Reason for Assessment
<Question_Text>Primary reason</Question_Text>
<Answer_Text>Full annual assessment</Answer_Text>
<Answer_Value>2</Answer_Value>
</Question>
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
