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

RE: Overrid items that are included

Subject: RE: Overrid items that are included
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 26 Sep 2004 21:45:22 +0100
stylesheet layer
The answer to your question is Yes. 

XSLT 2.0 describes this more formally, though the rules have not actually
changed. If one stylesheet module includes another, then they are part of
the same "stylesheet layer". All declarations in a stylesheet layer have the
same import precedence. An xsl:import anywhere within a stylesheet layer
gives the declarations in the imported stylesheet module, and all other
declarations in that stylesheet layer, a lower import precedence than the
declarations in the importing layer. A template rule with higher import
precedence overrides a rule with lower import precedence.

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

> -----Original Message-----
> From: Karl J. Stubsjoen [mailto:karl@xxxxxxxxxxxxxxxxxxxx] 
> Sent: 26 September 2004 19:12
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Overrid items that are included
> 
> Hello,
> 
> If I have a base template that I import into the current 
> working template,
> if that base template file *includes* other templates, can 
> those included
> templates be overridden just as if they were originally part 
> of the base
> template file?
> 
> Let me illustrate:
> 
> incl_template_a.xsl
> incl_template_b.xsl
> 
> BASE_TEMPLATE.xsl
>   INCLUDES-->  incl_template_a.xsl
>   INCLUDES-->  incl_template_a.xsl
> 
> WORKING_TEMPLATE.xsl
>   IMPORTS--> BASE_TEMPLATE.xsl
> 
> 
> The question:  Is it possible to override template rules in 
> incl_template_a
> & _b within WORKING_TEMPLATE.xsl?
> 
> Karl

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.