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

RE: Schema: defining occurences in choices?

  • To: "Jeni Tennison" <jeni@j...>
  • Subject: RE: Schema: defining occurences in choices?
  • From: "Emmerich, Martin" <Martin.Emmerich@o...>
  • Date: Wed, 18 Dec 2002 18:54:23 +0100
  • Cc: <xml-dev@l...>
  • Thread-index: AcKmn0a72VOqpI8GSwuyAHl5w2tzbAAF7JjQ
  • Thread-topic: Schema: defining occurences in choices?

xml choices
Hi Jeni,

you write

> I'm not sure which thing you want to affect the occurrence of -- is it
> the <content> elements?

I'm sorry that my description was not clear enough. When re-reading it even I can see it :-).
The problem is more complicated.

I want to have a sequence of several

<testentry>
  <name>value</name>
  <content>
    <subcontent1>
       <subchoice1a/>
    </subcontent1>
    <subcontent1>
       <subchoice1b/>
    </subcontent1>
    <subcontent2/>
  </content>
</testentry>

"testentry" should be a restriction by choice of a certain type testType.
Based on the value in "name" (its vocabulary will be fixed, for example 10 different values), the restrictions on content should vary.
"content" is a sequence of subcontent elements, some repetitive, some not.
subcontent1 contains a subchoice itself.

What I need are several rules like:
name = "value1" --> there must be a "subcontent1" with "subchoice1a", annother "subcontent1" with "subchoice1b" can occur and "subcontent2" can occur.

I understand your mail that that is not possible to specify such constraints in plain schema. Am I correct?
Do I always need an external rule engine like Schematron or Relax NG for that?

Best regards,
..............................
Martin Emmerich
Leitung IT

Oestreicher + Wagner 
Medientechnik GmbH
Frankenthaler Straße 20
D-81539 München

Fon   +49 (0)89-68961 171 
Fax   +49 (0)89-68961 271
 

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.