[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: "James Fuller" <james.fuller@xxxxxxxxxx>
Date: Tue, 24 Sep 2002 15:35:31 +0100
RE:  How do I capture the text "around" a node?
aha !

use the translate() function to remove these characters

and XSLT 1.0 is very concrete so buy a book ! ( anything by Michael Kay or
Jeni Tennison recc )

cheers, jim fuller

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Peter
> Lavender
> Sent: 24 September 2002 15:13
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  How do I capture the text "around" a node?
>
>
> Hi,
>
> > Text handling like this is always (imho) a little confusing.  The simple
> > answer is to use xsl:apply-templates as this will hit all the child
> > text() nodes, not just the first(ala value-of).
>
> It is very confusing.
>
> While apply-templates works as you said, the problem i have is that I
> want to remove the chars (), hence I tried value-of
>
> > As a good-practice rule, you should always use apply-templates over
> > value-of (where possible) for a number of reasons, with the biggest
> > probably being that template match=text() gets called.
>
> I'm very new to this and have been struggling through basically
> finding what resources I can on the net.
>
> I'm reluctant to purchase a book as a reference as I understand that
> somethings are not set in concrete yet.
>
> With the cost of books these days I find it hard to justify purchasing
> them only to find that it hasn't answered my questions.
>
>
>
>
> 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


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.