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

RE: Do Templates Conflict?

Subject: RE: Do Templates Conflict?
From: "Andrew Welch" <ajwelch@xxxxxxxxxxxxxxx>
Date: Thu, 5 May 2005 11:09:35 +0100
to do template
> > There is a massive gotcha here (or a bug in the spec,
> > depending on your point of view).
>
> A feature, I think!
> > Note the template in 'a.xsl' specifies priority 10.  Even
> > with this, the
> > output is 'B' from 'b.xsl'.  Because the first rule in
> > template conflict
> > resolution is import precedence, and one of the rules of import
> > precedence is 'the last import wins', so the processor
> ignores all the
> > usual ways to control priority.
> >
> > However in this case, the usual "ambiguous rule match"
> warning isn't
> > output, making it very hard to track down.  I have asked
> Mike on the
> > Saxon list a while back if it's possible to give a warning for this
> > specific case, so hopefully it will make it into 8.5 :)
>
> This test would be a very expensive one, and it would give a
> lot of spurious messages for perfectly valid stylesheets. The
> test would therefore have to be switched off by default; but
> 99% of the people who would be helped by the test wouldn't
> know about the switch. So it's not clear that this is a
> useful thing to do.

That's a similar answer to what you gave last time (and David's answer
is too :)

http://www.xslt.com/html/xsl-list/2005-01/msg01289.html

The warning I was requesting was for when one template is chosen over
another purely on the basis that its containing stylesheet was imported
after the stylesheet containing the other conflicting template, *not*
when the usual import selection happens.

cheers
andrew

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.