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

Re: Saxon Error: Conditional Transformation Matches B

Subject: Re: Saxon Error: Conditional Transformation Matches BOTH of "Either/Or" Template
From: Michael Müller-Hillebrand <mmh@xxxxxxxxx>
Date: Wed, 5 Jun 2013 21:22:00 +0200
Re:  Saxon Error:  Conditional Transformation Matches B
Am 05.06.2013 um 20:58 schrieb Raymond Lillibridge
<RLillibridge@xxxxxxxxxxxx>:

> Saxon error message:
> Recoverable error
>  XTRE0540: Ambiguous rule match for /level1/para[44]
> Matches both "para[not(@selectout)] | para[contains(@selectout, 'html')]"
>
> I'm at a loss as to how the template matches both conditions at the same
time. From my understanding (which probably leaves much to be desired), either
the para element doesn't have the @selectout attribute or (if it does) the
@selectout attribute contains 'html'.

Raymond,

I have the strong feeling that this is not all of the error message, as I have
only seen it giving you the other match as well

Anyway, why don't you put the or clause inside the predicate?

match="para[not(@selectout) or contains(@selectout, 'html')]"

- Michael

PS: If you think this would be a Saxon error you should have directed your
question to the saxon-help list. If you think it is an XSLT problem, please do
not prefix your subject like you did.

--
Michael M|ller-Hillebrand
mmh@xxxxxxxxx

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.