get the text value of a following sibling
Given the following structure: <html> <a href="...">link1</a> <br/> just some text 1 <br/> <a href="...">link2</a> <br/> just some text 2 <br/> <a href="...">link3</a> <br/> just some text 3 <br/> </html>
I want to output this tree to a plain text file that looks like this: link1:just some text1 link2:just some text2 etc..
Right now I'm doing something like this (part of my xsl): <xsl:for-each select="/html/a"> <xsl:value-of select="text()"/> <xsl:value-of select="following-sibling::*/text()"/> </xsl:for-each>
This doesn't work. It only outputs the text in the <a> tag but not the text between the <br> tags.
How should I treat that text? Isn't it considered as a node?
Thank you very much
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format