Subject: AW: AW: [xsl] use preceding element or self From: "Klocker Christoph" <Christoph.Klocker@xxxxxxxxxxxxx> Date: Fri, 29 Apr 2005 11:54:37 +0200 |
Tried your expression once more, a bit modified, to exclude the comma: (preceding::par[@class='Komm_H3'])[text()[1][normalize-space()]][not(con tains(text()[1],','))[1]][last()] Works well in the XMLSpy Xpath Evaluator, but Saxon8.2 is not giving me the right values back. Seems to be a Saxon issue. Christoph > Actually I need to check first if the par[@class='Komm_H3'] in my > current <Norm1> has a string right at the beginning of the node(), That's what the code I posted did: [@class='Komm_H3'])[text()[1][normalize-space()] which reads has a class attribute eqial to 'Komm_H3' and the first text node is a non-white string. My question was whether you needed to check that it was uppercase, or whether you know from the context whether it's uppercase, and whether in the case that had a comma you just wanted the bit before the comma or the wwole text node. David ________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
AW: [xsl] use preceding element or , Klocker Christoph | Thread | Re: AW: AW: [xsl] use preceding ele, David Carlisle |
[xsl] Random?, Ali Choumane | Date | Re: AW: AW: [xsl] use preceding ele, David Carlisle |
Month |