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:22:27 UTC
DO NOT REPLY [Bug 4525] New: -
xsltc fails conf test impincl17 with keys 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=4525>.
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=4525
xsltc fails conf test impincl17 with keys in imported xsl
Summary: xsltc fails conf test impincl17 with keys in imported
xsl
Product: XalanJ2
Version: CurrentCVS
Platform: All
OS/Version: All
Status: NEW
Severity: Critical
Priority: Other
Component: org.apache.xalan.xsltc
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: tom.amiro@sun.com
Running xalan on impincl17
<?xml version="1.0" encoding="UTF-8"?>
<out>
On node whose id is i5 -nodes to apply: 1
NO BUG
</out>
Running XSLTC with Xerces Parser on impincl17
Exception in thread "main" java.lang.ExceptionInInitializerError:
java.util.MissingResourceException: Can't find bundle for base name
org.apache.xalan.xsltc.runtime.ErrorMessages, locale en
at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:707)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:679)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:559)
at org.apache.xalan.xsltc.runtime.BasisLibrary.<clinit>(Unknown Source)
at impincl17.applyTemplates()
at impincl17.applyTemplates()
at impincl17.applyTemplates()
at impincl17.applyTemplates()
at impincl17.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)
impincl17.xsl
-------------
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: ImpIncl17 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.6.2 -->
<!-- Purpose: Test of importing a stylesheet involving keys. -->
<!-- Author: Claudio Sacerdoti Coen, revised by David Marston -->
<!-- Uncomment either line below if keyspace fails when defined only in import.
-->
<!-- <xsl:key name="id" use="@id" match="LAMBDA"/> -->
<!-- <xsl:key name="annid" use="@of" match="Annotation"/> -->
<xsl:import href="fragments/imp17all.xsl"/>
</xsl:stylesheet>
fragments/imp17all.xsl
----------------------
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- Purpose: To be imported by ../ImpIncl17. -->
<xsl:key name="id" use="@id" match="LAMBDA"/>
<xsl:key name="annid" use="@of" match="Annotation"/>
<xsl:template match="a">
<out>
<xsl:apply-templates/>
</out>
</xsl:template>
<xsl:template match="Definition"/><!-- Don't handle the LAMBDAs now -->
<!-- Alternate template for Definition...
Usual "apply" looping, which means we will visit the LAMBDAs -->
<!--
<xsl:template match="Definition">
<xsl:apply-templates/>
</xsl:template>
-->
<xsl:template match="LAMBDA">
<xsl:choose>
<xsl:when test="key('annid',@id)">
<xsl:text>NO BUG</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>Found one whose id has no annotation!</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="node">
<xsl:variable name="id" select="@id"/>
<xsl:text>On node whose id is </xsl:text>
<xsl:value-of select="$id"/>
<xsl:text> -nodes to apply: </xsl:text>
<xsl:value-of select="count(key('id',$id))"/><xsl:text>
</xsl:text>
<xsl:apply-templates select="key('id',$id)"/>
</xsl:template>
</xsl:stylesheet>