Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Extract text between an element. >Thread Next - Re: Extract text between an element. Re: Extract text between an element.To: NULL Date: 4/11/2007 4:52:00 PM Figured it out. use the text() method. "Jeremy Chapman" <nospam@p...> wrote in message news:efhFW5IfHHA.2640@T...... > 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 | |||
|
