You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/10/30 21:01:35 UTC
DO NOT REPLY [Bug 4521] New: -
xsltc fails impincl03 on params defined in imported xsl
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=4521>.
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=4521
xsltc fails impincl03 on params defined in imported xsl
Summary: xsltc fails impincl03 on params defined in imported xsl
Product: XalanJ2
Version: CurrentCVS
Platform: All
OS/Version: All
Status: NEW
Severity: Major
Priority: Other
Component: org.apache.xalan.xsltc
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: tom.amiro@sun.com
Looks like there is a newly introduced problem with params
defined in an imported xsl not being recognized in the top stylesheet.
Running XSLTC with Xerces Parser on impincl03
pred: pred(=(step("attribute", 9), literal-expr(1)))
exp: =(step("attribute", 9), literal-expr(1))
Exception in thread "main" java.lang.NoSuchFieldError: mParam
at impincl03.applyTemplates()
at impincl03.transform()
at org.apache.xalan.xsltc.runtime.AbstractTranslet.transform(Unknown
Source)
at org.apache.xalan.xsltc.cmdline.Transform.doTransform(Unknown Source)
at org.apache.xalan.xsltc.cmdline.Transform.main(Unknown Source)
impincl03.xsl
--------------
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: IMPINCL03 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.6.2 -->
<!-- Purpose: Nest imports and includes so that there are two of each, import
on top. -->
<xsl:import href="m.xsl"/>
<xsl:template match="/">
<out>
<xsl:value-of select="concat($mParam,$nParam,$oParam,$pParam)"/>
<xsl:apply-templates/>
</out>
</xsl:template>
<xsl:template match="title">
Main stylesheet - title:
<xsl:value-of select="."/>
</xsl:template>
</xsl:stylesheet>
m.xsl
-----
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:include href="n.xsl"/>
<xsl:param name="mParam" select="string('!From m!')"/>
<xsl:template match="author">
m-author:
<xsl:value-of select="."/>
</xsl:template>
</xsl:stylesheet>