This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: include vs. xsl:import


Thanks Matt.  Which processor do you regularly use?  SAXON doesn't seem to
be a help in this regard.  When two conflicting template rules are in the
same stylesheet (by inclusion or not), SAXON gives priority to the one that
is last in the stylesheet.  This isn't to say it is not conformant.  As Mike
Kay points out in his book, the W3C spec says, "It is an error if this
leaves more than one match. An XSLT processor may signal the error; if it
does not signal the error, it must recover by choosing, from amongst the
matches that are left, the one that occurs last in the stylesheet."  My
question is, why have this as an option at all?  It seems like for every
option, there's a whole 'nother slew of headaches.

Evan Lenz
elenz@xyzfind.com



-----Original Message-----
From: owner-xsl-list@mulberrytech.com
[mailto:owner-xsl-list@mulberrytech.com]On Behalf Of Matthew Bentley
Sent: Tuesday, August 01, 2000 2:43 PM
To: 'xsl-list@mulberrytech.com'
Subject: RE: include vs. xsl:import


>From my recent experience, using xsl:include is useful for trouble-shooting
(detecting)
duplicate template matches/named templates (In those cases where duplicates
should not exist).
I see no other apparent reason for it being in the spec -

Cheers,
matt
******************************************************************
Warning: This email, including any attachments,
is for the use of the intended recipient(s) only.
Republication and redissemination,
including posting to news groups or web pages,
is strictly prohibited without the express prior consent of Brooker's
Limited.
******************************************************************


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


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]