Re: How do I capture the text "around" a node?
Hi David, > > When I do just variable name="txt" select="text()" i only get all text > > up to the title tag. > > Since you only showed your attempt rather than say what you actually > want to get I'm guessing a bit but don't you just want You are right, I wasn't clear enough in my explaination, I have followed up to Jeni's posting that hopefully is a bit more clearer. > <xsl:template match="book"> > <fo:block font-size="12pt" font-family="serif" line-height="16pt"> > <xsl:apply-templates/> > </fo:block> > </xsl:template> That's right, but I want to remove two chars, that weren't included in my example xml text. It's in the followup to Jeni's posting. I have basically got around the problem by cheating a bit by writing the text into the book node. But a friend of mine coudln't figure out how to do it, and it has since been something I want to understand... rather that just have a fairly basic understanding of the whole process. so for the last 3 hours I have been at it trying to work out how to capture all the text and remove the 2 chars (). In the end I hit google for a xsl mailing list as the qeuries I was using on google weren't very good.. typically becuase I don't know the right terminology to build the query. Anyway, it's very late here now.. so I'm off to bed. Thanks to everyone for responding so far. Regards, Pete. -- Due to a lack of imagination, this signature will remain under construction indefinitely. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
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