Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5082558

synth Look&Feel 's DTD document has one error on ELEMENT state

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 5.0
    • client-libs

      Name: js151677 Date: 08/04/2004


      FULL PRODUCT VERSION :


      ADDITIONAL OS VERSION INFORMATION :
      winXP pro

      A DESCRIPTION OF THE PROBLEM :
      in the javadoc document Synth.dtd's ELEMENT state is

      <!ELEMENT state (font | color | painter | imagePainter | (%beansPersistance;))*>
      <!ATTLIST state
                id ID #IMPLIED
                clone IDREF #IMPLIED
                value CDATA #IMPLIED
                idref IDREF #IMPLIED
      >

      I think should add two child element "imageIcon" and "property" in this document.

      <!ELEMENT state (font | color | painter | imagePainter | imageIcon | property | (%beansPersistance;))*>
      <!ATTLIST state
                id ID #IMPLIED
                clone IDREF #IMPLIED
                value CDATA #IMPLIED
                idref IDREF #IMPLIED
      >

      ------------------------------------------------------------------------------------------------
      SynthLookAndFeel can successfully load xml which contains follow element structure
              <state>
                  <imageIcon/>
                  <property/>
              </state>

      why the DTD document's ELEMENT state without these children denotation ?
      I have found some similar errors in Synth.dtd document, why is it so lax?
      I think the synth functions should base on this dtd to verify xml, but the synth functions work in gear , are they not using this DTD?
      Maybe I mistake?

      REGRESSION. Last worked in version tiger-beta2


      REPRODUCIBILITY :
      This bug can be reproduced always.
      (Incident Review ID: 295524)
      ======================================================================
      ###@###.### 10/15/04 18:20 GMT

            svioletsunw Scott Violet (Inactive)
            jssunw Jitender S (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: