Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested namespace changes get stripped in the result document #70

Open
GoogleCodeExporter opened this issue Jun 8, 2015 · 0 comments
Open

Comments

@GoogleCodeExporter
Copy link

When you have elements of different namespaces nested in an expect, ie:

            <detail xmlns="http://ns.electronichealth.net.au/ci/requirements/information">
                <div xmlns="http://ns.electronichealth.net.au/ci/requirements/information/xhtml2"><p style="text-align: left;">The document SHALL contain the individual's date of birth or approximated date of birth.</p><ol>
                    <li style="text-align: left;">one,</li>
                    <li style="text-align: left;">two,</li>
                    <li style="text-align: left;">three</li>
                </ol><br/></div>
            </detail>

If the namespace of the result doesn't match, XSPec will report them so, but it 
strips the namespace from the resulting output, showing the two results which 
are the same.

Result:
<detail xmlns="http://ns.electronichealth.net.au/ci/requirements/information"
         xmlns:pkg="http://expath.org/ns/pkg"
         xmlns:impl="urn:x-xspec:compile:xslt:impl"
         xmlns:ci-model="urn:xml-gov-au:nehta:ci:model"
         xmlns:xi="http://www.w3.org/2001/XInclude"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:dbk="http://docbook.org/ns/docbook"
         xmlns:ci-common="http://ns.electronichealth.net.au/ci/common"
         xmlns:ci-ir="http://ns.electronichealth.net.au/ci/requirements/information"
         xmlns:ci-xhtml="http://ns.electronichealth.net.au/ci/requirements/information/xhtml"
         xmlns:reqif="http://www.omg.org/spec/ReqIF/20110401/reqif.xsd"
         xmlns:functx="http://www.functx.com"
         xmlns:xhtml="http://www.w3.org/1999/xhtml"
         xmlns:xlink="http://www.w3.org/1999/xlink">
   <div>
      <p style="text-align: left;">The document SHALL contain the individual's date of birth or approximated date of birth.</p>
      <ol>
         <li style="text-align: left;">one,</li>
         <li style="text-align: left;">two,</li>
         <li style="text-align: left;">three</li>
      </ol>
      <br />
   </div>
</detail>

Expecting:
<detail xmlns="http://ns.electronichealth.net.au/ci/requirements/information"
         xmlns:pkg="http://expath.org/ns/pkg"
         xmlns:impl="urn:x-xspec:compile:xslt:impl"
         xmlns:ci-model="urn:xml-gov-au:nehta:ci:model"
         xmlns:xi="http://www.w3.org/2001/XInclude"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:dbk="http://docbook.org/ns/docbook"
         xmlns:ci-common="http://ns.electronichealth.net.au/ci/common"
         xmlns:ci-ir="http://ns.electronichealth.net.au/ci/requirements/information"
         xmlns:ci-xhtml="http://ns.electronichealth.net.au/ci/requirements/information/xhtml"
         xmlns:reqif="http://www.omg.org/spec/ReqIF/20110401/reqif.xsd"
         xmlns:functx="http://www.functx.com"
         xmlns:xhtml="http://www.w3.org/1999/xhtml"
         xmlns:xlink="http://www.w3.org/1999/xlink">
   <div>
      <p style="text-align: left;">The document SHALL contain the individual's date of birth or approximated date of birth.</p>
      <ol>
         <li style="text-align: left;">one,</li>
         <li style="text-align: left;">two,</li>
         <li style="text-align: left;">three</li>
      </ol>
      <br />
   </div>
</detail>

Notice how the namespace on the <div> is missing.

Original issue reported on code.google.com by [email protected] on 17 Sep 2014 at 6:47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant