- From: Michael N. Lipp <mnl@mnl.de>
- Date: Thu, 27 Mar 2003 23:18:39 +0100
- To: public-forms-testsuite@w3.org
Hi,
I think there is a bug in test case c3-006a.xml.
Consider the bind elements in the model:
<html xmlns="http://www.w3.org/2002/06/xhtml2"
xmlns:xforms="http://www.w3.org/2002/xforms/cr"
xmlns:ev="http://www.w3.org/2002/xml-events"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xml:lang="en">
...
<xforms:model id="m_001">
<xforms:instance id="i_001" xmlns="">
<r>
<a>3</a>
<b>7</b>
<c>c</c>
<d>d</d>
</r>
</xforms:instance>
<xforms:bind nodeset="a" id="i-a" />
<xforms:bind nodeset="b" id="i-b" />
<xforms:bind nodeset="r/c" id="i-c" />
</xforms:model>
Section 7.3 states in "rule" 8 that "Any namespace declarations in scope
for the attribute that defines the expression are applied to the
expression".
"In scope" for the "nodeset" attributes of the xforms:bind elements is
(among others) the default namespace
xmlns="http://www.w3.org/2002/06/xhtml2". Thus the xpath expression in
the nodeset attribute results in an empty nodeset, because elements <r>
and descendants are in the global namespace.
This is not what is intended here (or have I misunderstood the spec?)
- Michael Lipp
Received on Thursday, 27 March 2003 17:16:45 UTC