xml-xalan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Martin (JIRA)" <xalan-...@xml.apache.org>
Subject [jira] Created: (XALANJ-2054) ExampleContentHandler code looks cut-and-paste typo'ed
Date Tue, 08 Feb 2005 14:41:11 GMT
ExampleContentHandler code looks cut-and-paste typo'ed

         Key: XALANJ-2054
         URL: http://issues.apache.org/jira/browse/XALANJ-2054
     Project: XalanJ2
        Type: Bug
  Components: Samples-Examples  
    Versions: 2.6    
 Environment: All
    Reporter: Daniel Martin
    Priority: Minor

In ExampleContentHandler, in the function startElement, there is this line:

    System.out.print("startElement: "+namespaceURI+", "+namespaceURI+
                       ", "+qName);

Similarly, the function endElement is:

  public void endElement (String namespaceURI, String localName,
                          String qName)
    throws SAXException
    System.out.println("endElement: "+namespaceURI+", "+namespaceURI+
                       ", "+qName);

These should both say "localName" instead of the second occurrence of "namespaceURI"; printing
the namespaceURI twice makes no sense, nor does not printing the localName.

The current code violates the principle of least surprise, and is an annoying fly in the ointment
of TrAX understanding.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
If you want more information on JIRA, or have a bug to report see:

To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org

View raw message