[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: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 24 Sep 2002 15:35:45 +0100
Re:  How do I capture the text "around" a node?
> I'm reluctant to purchase a book as a reference as I understand that
> somethings are not set in concrete yet.

XSLT 1 which is what you are using has been a recommendation (which is a
near to concrete as the w3c gets since 

There are some preliminary drafts of XSLT2 but they are still
preliminary and only supported in a cople of experimental
implementations. 

You shouldn't let the possibility of XSLT2 in teh future stop you
learning XSLT 1 which is very stable and widely implemented.

> 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.

the faq at www.dpawson.co.uk will point you at free web resourses as
 well as books.

> While apply-templates works as you said, the problem i have is that I
> want to remove the chars (), hence I tried value-of

It wasn't at all clear from your posting quite what ( you were removing
as there were no () in your sample input.

Perhaps you want

<xsl:template match="book/text()[contains(.,'(')]">
<xsl:value-of select="translate(.,'()','')"/>
</xsl:template>


David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 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.