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

Re: Not displaying part of a node's value

Subject: Re: Not displaying part of a node's value
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Tue, 27 Jan 2009 19:32:01 +0100
Re:  Not displaying part of a node's value
Quinn Dombrowski wrote:

I'm processing a TEI document, and many <meeting> elements begin with a certain phrase, "xyz". (It's actually more complicated-- the phrase was put in inconsistently, so there's variants "xyz", "X. Yz", "X-Y-Z", etc.) I need the phrase to not appear in the output. I can identify the relevant nodes through variants of: starts-with(meeting,'xyz') but is there a way to select the value of those nodes while omitting xyz?

Do you use XSLT 2.0? Then a regular expression and replace http://www.w3.org/TR/xpath-functions/#func-replace might help. Or xsl:analyze-string http://www.w3.org/TR/xslt20/#analyze-string


--

	Martin Honnen
	http://JavaScript.FAQTs.com/

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.