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

.[predicate] vs self::node()[predicate]- Xalan 2.7

Subject: .[predicate] vs self::node()[predicate]- Xalan 2.7
From: Raimund Kammering <raimund.kammering@xxxxxxx>
Date: Wed, 17 Apr 2013 11:12:37 +0200
 .[predicate] vs self::node()[predicate]- Xalan 2.7

I have a stylesheet which works correct if I use:


but I get an warning/error from the transformer saying:

'..[predicate]' or '.[predicate]' is illegal syntax.  Use
'self::node()[predicate]' instead.
And this spams the (tomcat) log files that way that they get unusable!
Therefore I would like to get rid of this
warning/error message. BUT if I do as recommended and use
'self::node()[predicate], the transformation results
in no match?!

The transformer I use is Xalan Java 2.7.0. Is there an easy way to suppress
the warning/error, or to change the
statement to be legal (while producing the same matches).

Code looks something like this:

<xsl:template match="entry/sum">
  <xsl:for-each select=".[starts-with(name,'tdown')]">

(and YES I should/could change the template match condition to be
match="entry" and the for-each to be
select="sum[starts-with(name,'tdown')]", but this would break a lot other
surrounding logic, which I don't want
to touch!)

Any help would be appreciated!


Current Thread


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.
First Name
Last Name
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.