[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xsl-list
Subject:    Re: [xsl] Not displaying part of a node's value
From:       Quinn Dombrowski <qdombrow () uiuc ! edu>
Date:       2009-01-27 18:42:12
Message-ID: 497F5584.5010202 () uiuc ! edu
[Download RAW message or body]

Yup, I'm using 2.0-- this looks like just what I need, thanks!

Martin Honnen wrote:
> 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
>


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe@lists.mulberrytech.com>
--~--

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic