Hi,

thanks Rick for your report.
I patched the resolve method of the TraxTransformer. If the "base"
value is null the first stylesheets is assumed to be the base. 
This is of course not always correct but it should fix the NPE.

Did you/could you report the problem to the Xalan team?


Carsten 

Open Source Group                        sunShine - b:Integrated
================================================================
Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
www.sundn.de                          mailto: [EMAIL PROTECTED] 
================================================================

> Rick Tessner wrote:
> 
> 
> Hi all,
> 
> I believe I've found a bit of a bug with the URIResolver addition
> to the TraxTransfomer class.
> 
> If I have a stylesheet nesting of 3 or more levels, the resolve()
> method in TraxTransformer is being passed a null "base" value. The
> "href" value is correct. This in turn causes an NPE to be thrown.
> 
> This is from cocoon.log:
> 
>   java.lang.NullPointerException
>     at 
> org.apache.cocoon.transformation.TraxTransformer.resolve(TraxTrans
> former.java:240)
>     at 
> org.apache.xalan.processor.ProcessorInclude.parse(ProcessorInclude
> .java:227)
>     .
>     :
> 
> I have the following stylesheets:
> 
>   a.xsl "xsl:includes" b.xsl "xsl:includes" c.xsl
> 
> I then get the NPE.  If I simply have two levels a.xsl and b.xsl,
> everything works just fine.
> 
> I've been looking at this for a bit and I don't know yet whether this
> is a xalan thing or a cocoon2 thing ... (it does happen with 
> xalan-2.0.1.jar as well as xalan-2.1.0.jar).
> 
> Since I don't seem to be getting anywhere with this, I thought
> I'd toss it up to the list.
> 
> -- 
> Rick Tessner  [EMAIL PROTECTED]
> MYRA Systems Corp. Fone: (250) 381 1335 x125  Phax: (250) 381 1304
>                    Cell: (250) 885 9452
> 
> "Hmmm.  They have the Internet on computers now!"
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to