You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Voytenko, Dimitry" <DV...@SECTORBASE.COM> on 2000/11/10 07:15:15 UTC

Strange imports

Hi,

I recreated the situation from my stylesheets I used with Xalan J1. I
attached stylesheets and xml document to this letter. They work differently
on Xalan J1 and J2. And I think J1 behaviour is right one.
The situation is next:
I have four stylesheets that import each other: sub1.xsl is
super-stylesheet, sub2.xsl extends sub1.xsl and so on.
Each next stylesheet overrides named template of super-stylesheet and
outputs something like "I overrode it". 

When I run XSLT processor with sub4.xsl it should output "Overriden by
SUB4.XSL" from SUB4.XSL as I think.
Xalan J1 outputs exactely this string, but J2 outputs "Template in SUB1.XSL.
Should be overriden" from SUB1.XSL (so it didn't overrode it).

The most interesting thing is that when I ran xslt processor with SUB3.XSL
it output "Overriden by SUB3.XSL" from SUB3.XSL - right result for both
versions.

I'm using xalan.jar for Nov 03 2000 that Gary sent me.

Thanks

Dmitry E. Voytenko
Sectorbase.COM


 <<simple.xml>>  <<sub1.xsl>>  <<sub2.xsl>>  <<sub3.xsl>>  <<sub4.xsl>> 


Re: Strange imports

Posted by Gary L Peskin <ga...@firstech.com>.
"Voytenko, Dimitry" wrote:
> I recreated the situation from my stylesheets I used with Xalan J1. I
> attached stylesheets and xml document to this letter. They work differently
> on Xalan J1 and J2. And I think J1 behaviour is right one.

Hi, Dimitry --

This is due to a bug in Xalan which was not processing import precedence
properly.  I have uploaded a fix to CVS if you want to rebuild Xalan.

I can send you a new .jar file privately if you like that contains the
revisions as of right now.  The only problem with this is then no one
else (including me five minutes later) has any idea of the revisions in
that file.  So, if you run into more problems, your best bet is to
either rebuild the source or use an official Xalan .jar file.  I only
say this because I'm travelling next week and probably can't connect
much so if you need support for the time that I'm gone and someone else
has to help you, it's better to be comparing apples to apples.

Thanks much for reporting this problem.

Gary