Issue 70 in xspec: Nested namespace changes get stripped in the result document

2 views
Skip to first unread message

xs...@googlecode.com

unread,
Sep 17, 2014, 2:48:01 AM9/17/14
to xspe...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 70 by vpereto...@gmail.com: Nested namespace changes get stripped
in the result document
https://code.google.com/p/xspec/issues/detail?id=70

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.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages