You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2002/10/02 14:49:13 UTC

DO NOT REPLY [Bug 13200] New: - Invalid defaultType

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

Invalid defaultType

           Summary: Invalid defaultType
           Product: Xerces2-J
           Version: 2.2.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: XNI
        AssignedTo: xerces-j-dev@xml.apache.org
        ReportedBy: fnowak@nettaxi.com


When I overload attributeDecl like this

public void attributeDecl(String elementname,
                          String attibutename,
                          String type,
                          String[] enumeration,
                          String defaulttype,
                          XMLString defaultvalue,
                          XMLString nonnormalizeddefaultvalue,
                          Augmentations augmentations) throws XNIException 
{ System.out.println("  valueDefault = "+defaultvalue);
  System.out.println("  value     = "+nonnormalizeddefaultvalue);
}

I Apply the DTD loader to this DTD

<!ELEMENT company ( #PCDATA ) >
<!ATTLIST company type CDATA "toto">
<!ATTLIST company id CDATA #REQUIRED >
...

the result is :

  valueDefault = toto
  value     = toto
  
  valueDefault = null
  value     = null

I think there is a bug ...

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