W3C home > Mailing lists > Public > www-forms@w3.org > March 2002

Where to declare namespaces for binding expressions?

From: Plech¹míd Martin <Martin.Plechsmid@merlin.cz>
Date: Thu, 28 Mar 2002 15:18:52 +0100
Message-ID: <E50028F23FC6D3118B7D00609761083F015E7163@merkur.merlin.cz>
To: "'XForms'" <www-forms@w3.org>

If instance-data use namespaces, e.g.

		<my:root xmlns:my="my-namespace">
			<my:a />
			<my:b />

the XPath expressions referring into the xforms:instance have to use them
too. E.g.

	<xforms:bind ref="my:root/my:a" calculate="../my:b" />
	<xforms:input ref="my:root/my:a" />

But first, the namespaces used in the xpath expressions have to be declared.
Where am I to put the namespace declarations? On the root of the xforms
document? (Of course, technically it is irrelevant, but conceptually, I'm
not sure if this is the right place.) And I'm not even sure (as I haven't
found it in the specification) whether the xpath expressions are understood
to inherit the namespace declarations from the containing xforms document.

Thank you,
Received on Thursday, 28 March 2002 09:13:20 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:05 UTC