Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [xsl] Priority and import precedence

From: "Michael Kay" <mike@------------>
To:
Date: 2/1/2005 12:03:00 AM
I think numeric priorities would become pretty unmanageable if they had
global significance rather than applying only locally within a module.
That's the only reason I can think of.

There are all sorts of things one could do to improve the modularity of XSLT
- public/private attributes on variables and named templates, template
priority linked to the schema type hierarchy, syntactically-scoped template
rules, template rules linked to a stage in a pipeline, etc: but none of them
is really compelling in my view. 

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: Andrew Welch [mailto:ajwelch@xxxxxxxxxxxxxxx] 
> Sent: 31 January 2005 11:12
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] Priority and import precedence
> 
> 
> It seems the priority attribute on a template is of less 
> importance than
> the order in which stylesheets are imported, when using
> xsl:apply-imports.
> 
> For example, if stylesheet A imports stylesheets B and C (in that
> order), templates in B will always be selected over C regardless of
> priority.
> 
> Is there a reason for this?  (It seems strange as usually the 
> 'one that
> comes last' selection process is the last resort, not the first)
> 
> cheers
> andrew


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent