Hi David,
> <?xml version="1.0"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0">
>
> <xsl:include href="Base.xsl"/>
>
> <xsl:template name="page-name">Special Page!</xsl:template>
>
> <xsl:template name="page-content">
> Hello!
> </xsl:template>
>
> </xsl:stylesheet>
But you're including Base.xsl, not importing it, so the two named-templates
have the same import precedence.
Change the xsl:include to xsl:import, and your stylesheet will be correct.
Dave
David Perkowski
<[EMAIL PROTECTED] To: [EMAIL PROTECTED]
le.org> cc: (bcc: David N
Bertoni/Cambridge/IBM)
Subject: Named template conflict
resolution changes?
02/27/2002 01:23
PM
Hello,
I have been using an older version of Xalan and finally needed some of
the newer features, so I decided to stick in the latest (2.3.1) Xalan
and get my application running. However, I ran into a problem with the
way named templates of the same name are handled.
As I understand the W3C spec (XML 1.0 and 1.1wg seem not to differ on
this), importing a template with the same name from another file is
kosher.
I am using Xalan, in this case, to do templating for a web application.
Here is my example:
...
Thanks!
David Perkowski
e.thePeople