W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2002

an Schema for this xml?

From: Marcos Mayorga <marcos.mayorga@grupotecnobit.com>
Date: Fri, 30 Aug 2002 10:05:29 +0200
Message-ID: <9AC7CD9DDB1E7441A6B54B0E7F9B8E3D0BF560@gtalc002sw2000.grupotecnobit.local>
To: <xmlschema-dev@w3.org>

Hello,

Please i can't resolve a XML-Schema for the following xml:

<mycontainer>
	<myelement name="n1" a="0" b="1">
		<mynestedelement c="2"/>
	</myelement>
	<myelement name="n2" a="0" b="1">
		<mynestedelement c="2"/>
	</myelement>
	<myelement href="doc2.xml" path="mycontainer/myelement#n3"/>
</mycontainer>


where attributes name, a and b are required and mynestedelement is also required.

at the other side, attributes href and path are required, and is simpleContent

how can write an schema where an element has two ways of be described?

thanks in advance
May, DrMay
Received on Friday, 30 August 2002 04:05:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:34 GMT