DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9777>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9777

stylesheet compile error with parameter assigment refering to param of included xsl

           Summary: stylesheet compile error with parameter assigment
                    refering to param of included xsl
           Product: XalanJ2
           Version: 2.3
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Xalan-Xsltc
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


Our System:
Using xalan 2.3.1 within bea wls61 sp1 on NT 4.0 sp 6

We use Templates objects for our xslt processing. Everything is great until we 
are using two xsl's like

1. GlobalParams.xsl:

<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
xmlns:fo="http://www.w3.org/1999/XSL/Format";>
<xsl:output method="html" encoding="iso-8859-1" omit-xml-declaration="yes"/>
        <xsl:param name="WEBAPPNAME">/lbbw-ots-1.0</xsl:param>
</xsl:stylesheet>

and 2. Another.xsl:

<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
xmlns:fo="http://www.w3.org/1999/XSL/Format";>
<xsl:include href="GlobalParams.xsl"/>
<xsl:param name="NAVENG"><xsl:value-of select="($WEBAPPNAME)"/></xsl:param>
...

This combination leads to an exception: 
javax.xml.transform.TransformerConfigurationException: Could not compile 
stylesheet


It seems that xalan is not able to compile stylesheets that define params or 
variables (same behaviour) that contain a "xsl:value-of" selection of a 
parameter in an included file.
If the WEBAPPNAME parameter is defined within the seconde Another.xsl, 
everything works fine and no error appears.

Reply via email to