XHTML-XForms NVDL: spurious ID/IDREF errors
Posted: Wed Oct 06, 2010 6:35 pm
Hi George et al,
I'm working on some XHTML with embedded XForms. I noticed the NVDL script for this combination ("xhtml-xforms.nvdl") in the oxygen distribution under the "samples" directory, which looks like a modification of the script in the ISO NVDL spec document.
It seems to do what I need, but I'm getting one odd problem, relating to ID/IDREF checking within the XForms code.
In my XHTML+XFORMS instance document:
(1) In the xhtml header within the xforms:model, I place one or more named xforms:bind elements, e.g. <xforms:bind id="xyz" nodeset="foo" readonly="true()"/>
(2) Down in the xhtml body, I have an xforms control that I want to assign a nodeset using a @bind (an IDREF) to the @id (an ID) in my bind element from (1). So I write something like this: <xforms:input bind="xyz">...</xforms:bind>
I would expect that this would validate fine, but using the supplied script, I invariably get
Engine name: Jing
Severity: error
Description: cvc-id.1: There is no ID/IDREF binding for IDREF 'xyz'.
Here's a link to an instance document that gives this error: http://db.tt/WKHiqGx
Any ideas?
John
I'm working on some XHTML with embedded XForms. I noticed the NVDL script for this combination ("xhtml-xforms.nvdl") in the oxygen distribution under the "samples" directory, which looks like a modification of the script in the ISO NVDL spec document.
It seems to do what I need, but I'm getting one odd problem, relating to ID/IDREF checking within the XForms code.
In my XHTML+XFORMS instance document:
(1) In the xhtml header within the xforms:model, I place one or more named xforms:bind elements, e.g. <xforms:bind id="xyz" nodeset="foo" readonly="true()"/>
(2) Down in the xhtml body, I have an xforms control that I want to assign a nodeset using a @bind (an IDREF) to the @id (an ID) in my bind element from (1). So I write something like this: <xforms:input bind="xyz">...</xforms:bind>
I would expect that this would validate fine, but using the supplied script, I invariably get
Engine name: Jing
Severity: error
Description: cvc-id.1: There is no ID/IDREF binding for IDREF 'xyz'.
Here's a link to an instance document that gives this error: http://db.tt/WKHiqGx
Any ideas?
John