[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: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Tue, 10 May 2005 06:37:09 +1000
Re:  Do Templates Conflict?
On 5/9/05, Edward Bryant <bryant_edward@xxxxxxxxxxx> wrote:
>
> Thanks for everyone's answers to this issue, they were very helpful and I
am
> sorry that I didn't research this one further before posting.
>
> Now I do have a remaining question.
>
> If I know I have a conflict (i.e., a template for all paragraphs and
another
> for the first paragraph within a certain context) and I know that according
> to the conflict rules that they will be resolved as I want them to without
> explicit priorities, should I use explicit priorities anyway?
>
> I mean to ask what the better practice is--
>
> (1) rely on implied conflict rules, only using explicit priorities to
> counteract the implied rules, or
>
> (2) to be explicit when I anticipate the conflict, een if the implied rules
> should give the same result?

In case of a library of xslt templates and functions one cannot avoid
the case that the (unknown) user, who imports them may have a template
with higher import precedence that captures all kind of nodes (e.g.
has the identity rule in the importing stylesheet).

What has been proven to work even in such cases is to uses unique
modes on all templates for the library, such as:

     mode="f:FXSL"

where the prefix "f" is bound to:

   "http://fxsl.sf.net/"



Cheers,
Dimitre Novatchev

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.