Uploaded image for project: 'XalanC'
  1. XalanC
  2. XALANC-653

Xalan-C not including namespace declaration in output

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.10
    • Fix Version/s: CurrentCVS
    • Component/s: XalanC
    • Labels:
      None
    • Environment:
      Window XP -

      Description

      The main issue is that in the input document the namespace xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/" is declared on the root element. The transformed XML does not have that value. Using Xalan-J both input and output doc have the namespace declaration. Thus the resultant document from Xalan-C produces a malformed XML document

      Input:
      <map xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/"
      title="MakeDoc's example demo/BE"
      ditaarch:DITAArchVersion="1.1"
      domains="(map mapgroup-d) (topic indexing-d)"
      class="- map/map "
      xtrf="c:\Pike\dita_problem\trialBE\dita\trialProjects.ditamap"
      xtrc="map:1">

      <topicmeta class="- map/topicmeta "
      xtrf="c:\Pike\dita_problem\trialBE\dita\trialProjects.ditamap"
      xtrc="topicmeta:1">
      <author class="- topic/author "
      xtrf="c:\Pike\dita_problem\trialBE\dita\trialProjects.ditamap"
      xtrc="author:1">PIKE ELECTRONIC s.r.o.</author>
      <source class="- topic/source "
      xtrf="c:\Pike\dita_problem\trialBE\dita\trialProjects.ditamap"
      xtrc="source:1">3.0</source>
      <publisher class="- topic/publisher "
      xtrf="c:\Pike\dita_problem\trialBE\dita\trialProjects.ditamap"
      xtrc="publisher:1">PIKE ELECTRONIC s.r.o.</publisher>

      <critdates class="- topic/critdates "
      xtrf="c:\Pike\dita_problem\trialBE\dita\trialProjects.ditamap"
      xtrc="critdates:1">
      <created date="2007/07/26 02:31" class="- topic/created "
      xtrf="c:\Pike\dita_problem\trialBE\dita\trialProjects.ditamap" xtrc="created:1"/>
      </critdates></topicmeta>
      ...

      Generated XML:
      <map title="MakeDoc's example demo/BE"
      ditaarch:DITAArchVersion="1.1"
      domains="(map mapgroup-d) (topic indexing-d)"
      class="- map/map "
      xtrf="c:\Pike\dita_problem\trialBE\dita\trialProjects.ditamap"
      xtrc="map:1">

      <topicmeta xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/"
      class="- map/topicmeta "
      xtrf="c:\Pike\dita_problem\trialBE\dita\trialProjects.ditamap" xtrc="topicmeta:1">

      <author class="- topic/author "
      xtrf="c:\Pike\dita_problem\trialBE\dita\trialProjects.ditamap"
      xtrc="author:1">PIKE ELECTRONIC s.r.o.</author>
      <source class="- topic/source " xtrf="c:\Pike\dita_problem\trialBE\dita\trialProjects.ditamap" xtrc="source:1">3.0</source>
      <publisher class="- topic/publisher "
      xtrf="c:\Pike\dita_problem\trialBE\dita\trialProjects.ditamap"
      xtrc="publisher:1">PIKE ELECTRONIC s.r.o.</publisher>
      <critdates class="- topic/critdates " xtrf="c:\Pike\dita_problem\trialBE\dita\trialProjects.ditamap" xtrc="critdates:1">
      <created date="2007/07/26 02:31"
      class="- topic/created "
      xtrf="c:\Pike\dita_problem\trialBE\dita\trialProjects.ditamap" xtrc="created:1"/>
      </critdates></topicmeta>

        Attachments

        1. patch-1_10.diff
          5 kB
          David N Bertoni
        2. patch.diff
          6 kB
          David N Bertoni
        3. stress_test_xalan-dita.zip
          744 kB
          Eric Sirois

          Issue Links

            Activity

              People

              • Assignee:
                dbertoni David N Bertoni
                Reporter:
                esirois Eric Sirois
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: