Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Extract text between an element. [Thread Next] Re: Extract text between an element.To: NULL Date: 4/17/2007 9:26:00 AM Thanks for your bracing insight. :P "Peter Flynn" <peter.nosp@m...> wrote in message news:587ttcF2fjpctU2@m...... > Jeremy Chapman wrote: >> 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> > > Excellent example of the problems caused by poor design, thank you. > > ///Peter | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
