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

Re: DTD ( From Eliotte Rust Harold's Book)

  • From: Martin Gudgin <marting@d...>
  • To: Baudoncq Gert <Gert.Baudoncq@z...>,"'Zala, PraveenKumar'" <praveenkumar.zala@d...>,xml-dev <xml-dev@l...>
  • Date: Thu, 27 Sep 2001 10:25:58 +0100

miss eliotte
You could also do this

    <!ELEMENT DIVISION (TEAM,TEAM,TEAM,TEAM,TEAM?,TEAM?) >

Regards

Martin Gudgin
DevelopMentor
http://www.develop.co.uk


----- Original Message -----
From: "Baudoncq Gert" <Gert.Baudoncq@z...>
To: "'Zala, PraveenKumar'" <praveenkumar.zala@d...>; "xml-dev"
<xml-dev@l...>
Sent: Thursday, September 27, 2001 11:18 AM
Subject: RE:  DTD ( From Eliotte Rust Harold's Book)


> Hi,
>
> Use a Schema instead of a DTD.
>
> <xsd:element name="team"
>              minoccurs="4"
>              maxoccurs="6"
>              type="xsd:string" />
>
> Brs
> Gert
>
> -----Oorspronkelijk bericht-----
> Van: Zala, PraveenKumar [mailto:praveenkumar.zala@d...]
> Verzonden: donderdag 27 september 2001 9:40
> Aan: xml-dev
> Onderwerp:  DTD ( From Eliotte Rust Harold's Book)
>
>
> Hi,
>
>  Suppose I am writing a DTD to have between 4 and 6 TEAM elements for a
> DIVISION element, how do I go about specifying this ?
>  Please note - I cannot have three nor seven TEAM elements for the
DIVISION
> in my Document, such a document must be forced
>  to be treated as invalid.
>
>  Hint : I can try to enforce the same above by grouping TEAM elements in a
> sequence, but still, I have cracked this to atleast
>  have 4 elements but not the second criterion
>
>  Please get back with your suggestions.
>
> Thanks and Regards,
> Praveen Zala
>
> -----------------------------------------------------------------
> 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 elist use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>
>
> -----------------------------------------------------------------
> 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 elist use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>


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.