Uploaded image for project: 'Santuario'
  1. Santuario
  2. SANTUARIO-236

exc-c14n damages namespaces of XML

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • Java 1.4.2
    • None
    • Java
    • Security Level: Public (Public issues, viewable by everyone)
    • None
    • Operating System: All
      Platform: All
    • 49710

    Description

      The canonicalizer (java) with exc-c14n produces an invalid XML document here. It removes a namespace from an attribute that is still used in that element. It attach an example xsd and xml file.
      If I use canonicalize this xml file with exc-c14n it will remove the namespace xmlns:xs="http://www.w3.org/2001/XMLSchema". So the attribute ns:type="xs:string" won't be valid afterwards.
      Even if I add the namespace to the root element (bla:document) it will be removed.

      Validated with xmllint --noout --schema example.xsd example.xml

      Is this really correct for this canonicalization method to damage the xml file?

      Attachments

        Activity

          People

            Unassigned Unassigned
            aklitzing@gmail.com AK
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: