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

Re: request for help resolving ambiguous rule match

Subject: Re: request for help resolving ambiguous rule match
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Mon, 24 Nov 2008 16:12:18 +0000
Re:  request for help resolving ambiguous rule match
> But I also have (and need) a template that simply matches "q[@next and
> @prev]", so my processor (Saxon9b) is throwing a warning about an ambiguous
> rule match, with ambiguity between "lg/l[position() = 1]/q[@next and
@prev]"
> and "q[@next and @prev]".
>
> So my question  Can someone please help me out with another way to express
> "lg/l[position() = 1]/q[@next and @prev]" that will resolve the ambiguity?
>

Just add priority="10" (or some other number higher than 1) to the
more specific template match



--
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

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.