[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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:output method="text"/> <xsl:template match="a | b[position() = 1]"/> </xsl:stylesheet> 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? ...sam
|
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
|