W3C home > Mailing lists > Public > www-forms@w3.org > April 2000

RE: model root element

From: Rob McDougall <RMcDouga@JetForm.com>
Date: Wed, 19 Apr 2000 18:27:34 -0400
Message-ID: <311000B0752ED211B61700805F0D6B09C4B2C1@OTTMAIL3>
To: "'Joe Hewitt'" <joe@joehewitt.com>, www-forms@w3.org
This is not something that I recall coming up, but I agree.  I'd like to
think that one could only generate well-formed XML out of an XForm.

Rob

-----Original Message-----
From: Joe Hewitt [mailto:joe@joehewitt.com]
Sent: April 19, 2000 5:47 PM
To: www-forms@w3.org
Subject: model root element


I'm a bit puzzled by the structure of the <model> element.  My primary
question is, must this model, and the subsequent instance document, be a
valid XML document, or simply a fragment?

In essence, what I am asking is, must the <model> element only have one
child, which would be the documentElement of the resulting document?  Or, it
is legal for <model> to have multiple children, thus making the resulting
instance a fragment, and not a valid document itself?

I would hope that this would be illegal:

<model>
	<group name="purchaseOrder">
	...
	</group>
	<group name="contactInfo">
	...
	</group>
</model>

- Joe
Received on Wednesday, 19 April 2000 18:28:53 GMT

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