Uploaded image for project: 'Xerces2-J'
  1. Xerces2-J
  2. XERCESJ-473

Invalid defaultType

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Incomplete
    • 2.2.0
    • None
    • XNI
    • None
    • Operating System: Windows XP
      Platform: PC
    • 13200

    Description

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            fnowak@nettaxi.com Fred Nowak
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: