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/16 21:26:21 UTC

DO NOT REPLY [Bug 4208] New: - xsltc fails conf test select18 compile error on NCName followed by ( with intervening whitespace

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=4208>.
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=4208

xsltc fails conf test select18 compile error on NCName followed by ( with intervening whitespace

           Summary: xsltc fails conf test select18 compile error on NCName
                    followed by ( with intervening whitespace
           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


XSLTC throws a type check compile error on select18

Compile errors:
  Type check error in funcall(comment, []).

The problem is the following

   <xsl:for-each select="comment ()">

The XPATH spec in Section 3.7 says that that if a ( character 
follows a NCName even with intervening spaces, the NCName must be recognized 
as a node type or function name.

select18.xsl
------------
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

  <!-- FileName: select18 -->
  <!-- Document: http://www.w3.org/TR/xpath -->
  <!-- DocVersion: 19991116 -->
  <!-- Section: 3.7 -->
  <!-- Creator: David Marston -->
  <!-- Purpose: NCName followed by ( must be recognized as a NodeType
      or FunctionName, even if there is intervening whitespace. -->

<xsl:template match="doc">
  <out>
    <xsl:for-each select="comment ()">
      <xsl:copy/>
    </xsl:for-each>
  </out>
</xsl:template>

</xsl:stylesheet>