W3C home > Mailing lists > Public > www-forms@w3.org > February 2004

A note on <bind /> (similar to <group />)

From: Klotz, Leigh <Leigh.Klotz@pahv.xerox.com>
Date: Wed, 4 Feb 2004 14:41:03 -0800
Message-ID: <51B8ABCE456FD111899900805F6FD6EE15EDF5A2@mercury.ADOC.xerox.com>
To: "'www-forms@w3c.org'" <www-forms@w3c.org>

Just as <group /> can be used as a container, so can <bind />.

I believe that <bind /> is legal and useful, just like <group />, and want
to make sure that implementations aren't tripped up on the base case.

The containership of bind is useful, as XML Include [1] requires a container
element: the inclusion is an InfoSet, not a document fragment.

Example:
 <model xmlns="http://www.w3.org/2002/xforms">
   <instance src="foo-instance.xml" />
   <xi:include href="foo-bindings.xml" />
 </model>

File foo-bindings.xml:
<?xml version="1.0" ?>
<bind xmlns="http://www.w3.org/2002/xforms">
 <bind nodeset="foo" relevant="true()" />
 <bind nodeset="bar" relevant="false()" />
</bind>

Does anybody disagree with <bind />, or find another problem with this
mechamism for using XInclude?

Leigh.


-----
[1] XML Inclusions (XInclude) Version 1.0
    http://www.w3.org/TR/xinclude/
Received on Wednesday, 4 February 2004 17:37:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:21:57 GMT