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 2004/02/10 18:02:22 UTC

DO NOT REPLY [Bug 26833] New: - Attribute name clash with different names

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

Attribute name clash with different names

           Summary: Attribute name clash with different names
           Product: XalanC
           Version: 1.7
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: XalanC
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: Jan.Schormann@brainlab.com


Cygwin 1.5.7, Xerces version 2.4.0

I have the following XML and XSL files that I call "simple":

--- AttrTest.xml ---
<?xml version="1.0"?>
<a/>
--- AttrTest.xml ---

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

  <xsl:template name="x">
    <a
      IncludeSignature="a"
      SystemTest="a"
      />
  </xsl:template>
</xsl:stylesheet>
--- AttrTest.xsl ---

--- command line ---
$ Xalan.exe AttrTest.xml AttrTest.xsl
XSLT warning: Fatal Error at (file AttrTest.xsl , line 9 , column {null} ): The 
attribute 'SystemTest' is already used in element 'a' (AttrTest.xsl, line 9, 
column 18)
SAXParseException: The attribute 'SystemTest' is already used in element 'a' 
(AttrTest.xsl, line 9, column 18)
--- command line ---

The message sounds like parsing problem, but I don't
get the error when I rename AttrTest.xsl to *.xml and
use it as input.

The error goes away if I downcase the 'i' in 'IncludeSignature'.

This may be critical, but for now I can live with the
lower-case names ...