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

AW: AW: use preceding element or self

Subject: AW: AW: use preceding element or self
From: "Klocker Christoph" <Christoph.Klocker@xxxxxxxxxxxxx>
Date: Fri, 29 Apr 2005 11:54:37 +0200
xsl preceding element
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

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.