Subject: Re: [xsl] normalize-space processing all nodes hack? From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Fri, 02 Nov 2007 10:52:49 +0100 |
Oups, sorry guys, I have simplified my example too much :( In fact I need to apply some filtering rules on text() nodes (normalize-space(A) was there originally, but it has come out lately that some of text() nodes must be ignored). So, what I really need, is all text of A but excluding descendants of B, like:
<xsl:variable name="textOnly" select="normalize-space(A//text()[not(ancestor::B)])"/>
So from <A>txt1<B>txt2<C>txt3</C></B><D>txt4</D></A> I need to get "txt1txt4".
Is there some "one XPath expression" way now (XSLT 1.1 + Saxon 6.5.x extensions eventually)?
HTH, Cheers, -- Abel Braaksma
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] normalize-space processin, Kolací Tomáš | Thread | Re: [xsl] normalize-space processin, Abel Braaksma |
RE: [xsl] normalize-space processin, Kolací Tomáš | Date | Re: [xsl] normalize-space processin, Abel Braaksma |
Month |