Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-699

in namespace-aware mode, xmlns declarations are to be allowed anywhere, even if the DTD doesn't allow for "equivalent attributes"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Incomplete
    • 1.7.0
    • None
    • None
    • Operating System: Windows 9x
      Platform: PC
    • 14087

    Description

      Hi

      When in namespace-aware mode, namespace declarations should not be
      handled as attributes.

      When validating this document:

      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
      "http://www.w3.org/TR/SVG/DTD/svg10.dtd" >
      <svg
      xmlns="http://www.w3.org/2000/svg"
      xmlns:xlink="http://www.w3.org/1999/xlink">
      <title><!-- title --></title>
      <desc>
      <!-- description -->
      </desc>
      <!-- content -->
      </svg>

      this error should not not be flagged:

      Error at file C:\tmp\from_stdin.820197, line 6, char 14
      Message: Attribute 'xmlns:xlink' is not declared for element 'svg'

      Errors occurred, no output available

      The xmlns declarations are in the DTD for non-namespace-aware
      validators. But namespace-aware validators should allow
      xmlns declarations to occur in any form, with any prefix, on any
      element, as specified in the Namepsaces in XML spec, and not raise
      errors when these aren't allowed as attributes by the DTD, since they
      are no attributes.

      AFAIK

      Tobi

      Attachments

        Activity

          People

            Unassigned Unassigned
            tobiasreif@pinkjuice.com Tobias Reif
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: