Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-4176

preserve namespace prefixes in Transform Feature to support QName resolution for content

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.3, 2.6
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Unless configured specifically otherwise (i.e., using the default namespace option to switch the default namespace), the original namespace prefixes should be preserved in the resulting XML document so that an element content typed as QName can be resolved against the namespace context.

      For example, if you have an input XML:
      <a:foo xmlns:a="urn:abc">
      <a2:bar xmlns:a2="urn:abc">a2:text</a2:bar>
      </a:foo>
      and suppose the content of element bar is of type QName.

      If we are transforming from

      {urn:abc}

      * to

      {urn:a}

      *, we should not
      simply generate:
      <a:foo xmlns:a="urn:a">
      <a:bar>a2:text</a:bar>
      </a:foo>

      Instead, we should generate:
      <a:foo xmlns:a="urn:a">
      <a2:bar xmlns:a2="urn:a">a2:text</a2:bar>
      </a:foo>
      so that the QName a2:text can be correctly interpreted.

      http://cxf.547215.n5.nabble.com/Transform-feature-to-preserve-prefix-values-Re-svn-commit-r1295714-tt5538162.html

        Attachments

          Activity

            People

            • Assignee:
              ay Akitoshi Yoshida
              Reporter:
              ay Akitoshi Yoshida
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: