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

RE: Importing stylesheets Precedence Info

Subject: RE: Importing stylesheets Precedence Info
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Fri, 28 Jul 2000 23:06:53 +0100
RE: Importing stylesheets Precedence Info

>The first was interesting. It works fine (i think) if only one of the
>templates you imported have a match, but in my case, if I imported 5
>stylesheet "fragments" and each one had a <xsl:template match="/"> then I
>think only the first imported one would be matched with apply-imports..i
>want to match them all.

I'm glad you've got it working anyway, and I don't want to distract you
from pursuing your current solution, but I think you could get it working
if you:

(a) rather than having all the imports occur in one stylesheet, have only
one stylesheet imported at each stage (with that stylesheet importing the
next stylesheet and so on) and

(b) put xsl:apply-imports in all the relevant templates in the stylesheets
that do some importing

Of course, it's a solution that is quite a lot of hassle and may cause
problems for other reasons, so I certainly won't be offended if you don't
use it ;)

It's not clear to me why xsl:apply-imports was designed only applies
templates found in the first imported stylesheet rather than doing so in
import-precedence order.  Perhaps someone can shed light on this?



Dr Jeni Tennison
Epistemics Ltd * Strelley Hall * Nottingham * NG8 6PE
tel: 0115 906 1301 * fax: 0115 906 1304 * email: jeni.tennison@xxxxxxxxxxxxxxxx

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


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.
First Name
Last Name
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.