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

Re: XSL-optimized DTDs (Was: Re: Mixed content: selecting cu

Subject: Re: XSL-optimized DTDs (Was: Re: Mixed content: selecting current context w/out child)
From: Marcus Carr <mrc@xxxxxxxxxxxxxx>
Date: Mon, 15 Mar 1999 09:43:10 +1100
the othercast
Hi John,

John E. Simpson wrote:

> Yah. In FlixML ver. 3.0 (not yet available on-line), I've done pretty much
> just that (ATTLISTs omitted for brevity):
>   <!ELEMENT cast        (leadcast, othercast?) >
>   <!ELEMENT leadcast    ((male | female | animal)*) >
>   <!ELEMENT othercast   ((male | female | animal)*) >
>   <!ELEMENT male        (castmember, role)* >
>   <!ELEMENT female      (castmember, role)* >
>   <!ELEMENT animal      (castmember, role, species)* >
>   <!ELEMENT castmember  (#PCDATA) >
>   <!ELEMENT role                (#PCDATA) >
>   <!ELEMENT species     (#PCDATA) >

Just out of interest, what do you do if a castmember has multiple roles and/or
crosses gender and/or is genderless? Also, if you are able to have multiple male
| female | animal elements in leadcast or othercast, then why do they allow
multiple castmember and role elements? It would seem that the following would be
legal:

<othercast>
   <male>Bill Bob</male>
   <male>Phil Bob</male>
   <male>Tim Bob</male>
</othercast>

<othercast>
   <male>Rob Bob</male>
</othercast>

<othercast>
   <male>Fred Bob</male>
</othercast>

<othercast>
</othercast>

Would it not be better to restrict the structure in order to introduce more
predictability? Content models such as:

<!ELEMENT othercast   (male | female | animal)+>
<!ELEMENT male        (castmember, role)>

would deliver the same results with much less complication. Could this be one of
the contributing factors to your XSL being difficult?


--
Regards,

Marcus Carr                      email:  mrc@xxxxxxxxxxxxxx
___________________________________________________________________
Allette Systems (Australia)      www:    http://www.allette.com.au
___________________________________________________________________
"Everything should be made as simple as possible, but not simpler."
       - Einstein



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

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
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.