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

SAX error parsing dtd in jdk 1.6: "The replacement text of parameter entity...."

XMLWordPrintable

    • 1.4
    • x86
    • windows_2000, windows_xp
    • Verified

        FULL PRODUCT VERSION :
        1.6.0_02-b05

        ADDITIONAL OS VERSION INFORMATION :
        Windows 2000 sp 4...

        A DESCRIPTION OF THE PROBLEM :
        We use the dtd below to build our documentation with jdk 1.5.0_11-b03 successfully. Now with jdk 1.6.0_02-b05 , the SAX parser complains about our parameter entity definitions.

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        see the dtd below...

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        we did not have a problem using this dtd in jdk 1.5.0_11-b03
        ACTUAL -
        we can not build our documentation using jdk 1.6.0_02-b05.

        ERROR MESSAGES/STACK TRACES THAT OCCUR :
         the following error is thrown during dtd parsing:

        org.xml.sax.SAXParseException: The replacement text of
        parameter entity '%xhtml' must include properly nested declarations when the
        entity reference is used as a complete declaration

        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        the jdk 1.6 parser is tripping on the parameter entity %xhtml definition in line #2-3 below::

        <!ENTITY % label.qname "IGNORE" >
        <!ENTITY % xhtml PUBLIC "-//W3C//DTD XHTML 1.1//EN" "xhtml11-flat.dtd">
        %xhtml;

        <!ELEMENT page (breadcrumbs, lead, details?, tasks?, concepts?, controls*, labels?,messages?)>
        <!ATTLIST page
        key CDATA #REQUIRED
        WebLogicServer (yes|no) "yes"
        WebLogicExpress (yes|no) "yes"
        keywords CDATA #IMPLIED
        description CDATA #IMPLIED
        Status CDATA #IMPLIED
        >
        <!ELEMENT breadcrumbs (#PCDATA)>
        <!ELEMENT lead ( %Flow.mix;)* >
        <!ATTLIST lead
        key CDATA #IMPLIED
        >
        <!ELEMENT details ( %Flow.mix;)*>
        <!ELEMENT tasks (xref*)>
        <!ATTLIST tasks
        key CDATA #IMPLIED
        >
        <!ELEMENT concepts (xref*)>
        <!ELEMENT xref (#PCDATA)>
        <!ATTLIST xref
        href CDATA #REQUIRED
        type CDATA #IMPLIED
        >
        <!ELEMENT controls (control*, advanced-group?)>
        <!ATTLIST controls
        type (table | tableNoCustomize | configuration | assistant | buttons | monitorPage | id ) #IMPLIED
        id CDATA #IMPLIED
        >
        <!ELEMENT control ((lead, (details)?)?, import?)>
        <!ATTLIST control
        key CDATA #REQUIRED
        label CDATA #REQUIRED
        >
        <!ELEMENT advanced-group (control+)>
        <!ELEMENT import EMPTY>
        <!ATTLIST import
        mbean CDATA #REQUIRED
        property CDATA #REQUIRED
        >
        <!ELEMENT labels (label*)>
        <!ELEMENT label (#PCDATA | %Inline.mix;)* >
        <!ATTLIST label
        key CDATA #REQUIRED
        label CDATA #IMPLIED
        >

        <!ELEMENT messages (message*)>
        <!ELEMENT message (#PCDATA | %Flow.mix;)* >
        <!ATTLIST message
        key CDATA #REQUIRED
        message CDATA #IMPLIED
        >
        ---------- END SOURCE ----------

        CUSTOMER SUBMITTED WORKAROUND :
        please advise how we can work around this problem...

        Release Regression From : 5.0u11
        The above release value was the last known release where this
        bug was not reproducible. Since then there has been a regression.

              nwalshsunw Norman Walsh (Inactive)
              ndcosta Nelson Dcosta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: