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

#PCDATA "element": Yes!

  • From: Stefan Haustein <haustein@k...>
  • To: Nils Klarlund <klarlund@r...>
  • Date: Fri, 28 Jan 2000 10:30:20 +0100

pcdata element
Nils Klarlund wrote:
> 
> An alternative approach would have declared "content" to simply
> consist of just element nodes and text nodes ("text nodes" as in
> XPATH) representing character data.  Then there would be no need for
> (2), since a content model now describes a regular language over the
> alphabet consisting of what you would expect: element names and the
> token text() (or #PCDATA).  And, you'd be able to describe, say, HTML
> with Appendix elements that must appear at the end:
> 
>   ((#PCDATA | H1 | H2 |...)*, Appendix*)
> 
> So, the distinction between element content and mixed content is a
> needless one that both restricts what can be expressed and that
> muddles the conceptual framework.  (The way of treating content just
> outlined is what we chose for the DSD schema notation, incidentally.)

I was already wondering why this was not done in the current XML 
schema definition: In my opinion, the whole concept of a "content 
model" could be removed, removing some possibilities for 
inconsistencies: Implementing XML schema, you are always wondering 
about things like "what, if the given content type 'empty', and an
explicit <type> is given. Does the given type override the content 
specification? Do I trow an error? But maybe the given type 
is empty, too, so I need to check for consistency.....  

Best regards

Stefan

-- 
Stefan Haustein
University of Dortmund
Computer Science VIII
www-ai.cs.uni-dortmund.de

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ or CD-ROM/ISBN 981-02-3594-1
Unsubscribe by posting to majordom@i... the message
unsubscribe xml-dev  (or)
unsubscribe xml-dev your-subscribed-email@your-subscribed-address

Please note: New list subscriptions now closed in preparation for transfer to OASIS.



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.