[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Getting all the text of an element, except for one
Hi Rick,
Martin's and Syd's approaches using detailed template matches are preferable, but let me just point out what you were missing. Let me paraphrase the expression slightly: title/descendant-or-self::* except ./data where . is the section element that the template matches. But section has no data children. You could phrase it differently, yet slightly inefficiently: title/descendant-or-self::* except title/descendant::data or use a predicate: title/descendant-or-self::*[not(self::data)] But still you'd get duplicate strings: The string value of title, plus the string value of the contained ph element. So this won't lead to anything useful, and I, too, recommend an idiomatic template matching approach. Gerrit On 09.02.2024 14:57, rick@xxxxxxxxxxxxxx wrote: B B B B <xsl:template match="section">
Registergericht / Commercial Register: Amtsgericht Leipzig Registernummer / Registration Number: HRB 24930 GeschC$ftsfC<hrer / Managing Directors: Gerrit Imsieke, Svea Jelonek, Thomas Schmidt
|
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
|