Re: Extracting text between nodes
Thank you for the reply.
My original reply was compatible with 1.0 as well --
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="a | b[position() = 1]"/>
Which, as David noted in his post, will "lose the stuff you don't want". There are many ways to do this though, and it will depend on how the HTML will vary from the example you provided. i.e., do you only (and always) want to lose the text in the first <b> element, and all <a> elements?
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