[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: How do I capture the text "around" a node?

Subject: Re: How do I capture the text "around" a node?
From: Peter Lavender <plaven@xxxxxxxxxxxxxx>
Date: Wed, 25 Sep 2002 00:31:46 +1000
peter lavender
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

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.



				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

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.