Next in thread → Next in month →

RE: [xml-dev] Problem designing complexType accepting a specified element and a llowing any others.

From
Tom Gaven <>
To
'Hess Yvan' <>, 'Jeff Greif' <>
Date
2004-03-12T13:59:23Z
ID
<>
Thread
RE: [xml-dev] Problem designing complexType accepting a specified element and a llowing any others.
Hess,
  It sounds like the non-determinisic restrictions of WXS are a problem
here.  Since you can't use RELAXNG, another option would be to just live
with the <any> wildcard in the WXS schema.  Then use Schematron or other
processing logic to guarrantee that your 'specified element' is present.
 
   WXS, or any one particular schema language, for that matter, can't do
everything.   
Get over it.  :)

Tom

-----Original Message-----
From: Hess Yvan [mailto:] 
Sent: Friday, March 12, 2004 4:31 AM
To: 'Jeff Greif'
Cc: 
Subject: RE: [xml-dev] Problem designing complexType accepting a specified
element and a llowing any others.


The XML document for which I have to write the schema have all the elements
under the section metadata as illustrated in my sample and should accept any
others element from the same namespace or from a other name space. I can not
change this requierement. 

Any others idea ?

Yvan

-----Original Message-----
From: Jeff Greif [mailto:]
Sent: vendredi, 12. mars 2004 00:11
To: Hess Yvan
Cc: 
Subject: Re: [xml-dev] Problem designing complexType accepting a specified
element and a llowing any others.


Perhaps in your app the xs:any element can be restricted by
namespace="##other", removing the indeterminacy. Jeff
----- Original Message ----- 
From: "Hess Yvan" <>
To: <>
Cc: <>
Sent: Thursday, March 11, 2004 1:42 PM
Subject: RE: [xml-dev] Problem designing complexType accepting a specified
element and a llowing any others.


> John,
>
> Thanks for your answer. Do you mean that there is NO solution to solve 
> my problem using XML schema ? Are you sure about that because it will 
> have a big impact on the project I am working on...
>
> Yvan


-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org>, an initiative
of OASIS <http://www.oasis-open.org>

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://www.oasis-open.org/mlmanage/index.php>
Next in thread → Next in month →