[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Problem designing complexType accepting a specified elemen


email contact of yvan
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:yvan.hess@i...] 
Sent: Friday, March 12, 2004 4:31 AM
To: 'Jeff Greif'
Cc: xml-dev@l...
Subject: RE:  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:jgreif@a...]
Sent: vendredi, 12. mars 2004 00:11
To: Hess Yvan
Cc: xml-dev@l...
Subject: Re:  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" <yvan.hess@i...>
To: <jcowan@r...>
Cc: <xml-dev@l...>
Sent: Thursday, March 11, 2004 1:42 PM
Subject: RE:  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>

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.