Subject: Re: [xsl] Testing for following text() From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx> Date: Thu, 1 Nov 2007 13:34:49 +0000 |
On 01/11/2007, G. Ken Holman <gkholman@xxxxxxxxxxxxxxxxxxxx> wrote: > Then I recommend you change it to the following: > > match="s[(ancestor::b[1]//text()[normalize-space()])[last()] >> .]" > > ... so that you catch text nodes that have non-white-space > characters, or alternatively that you ensure all white-space-only > text nodes are removed from the source tree by either an > <xsl:strip-space> instruction or at invocation. > > I'm thinking that with the original proposal any indentation found in > the source tree would allow the <s> to be matched. you sure? -- Andrew Welch http://andrewjwelch.com Kernow: http://kernowforsaxon.sf.net/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Testing for following tex, G. Ken Holman | Thread | Re: [xsl] Testing for following tex, Andrew Welch |
Re: [xsl] Testing for following tex, G. Ken Holman | Date | Re: [xsl] Testing for following tex, Andrew Welch |
Month |