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

Re: content model question


model question paper

Rick, Thank you for this really helpful reply.
Morgan Cundiff


On Mon, 8 Apr 2002, Rick Jelliffe wrote:

> From: "Morgan V. Cundiff" <mcundiff@l...>
>  
> > Thanks for your reply. I was afraid this might be the case. (It is a given
> > that our project will use XML Schema and not one of the alternatives.)
> 
> The way to solve this kind of problems if you must use XML Schemas is 
> to use the <annotation><appinfo> elements. Then you embed a Schematron 
> assertion. Appinfo was provided to allow constraints that go beyond XML
> Schemas. 
> See Eddie Robertsson's article "Combining the power of W3C 
> XML Schema and Schematron" at
> http://www.topologi.com/public/Schtrn_XSD/Paper.html
> 
> To validate, you can make you a script using three XSLT transforms and
> open source code (one to extract the constraints, one to compile the constraints,
> one to run the constraints) or, if you are on Windows, download the free
> Topologi Schematron Validator at http://www.topologi.com/
> 
> This kind of content model was available in SGML:
>     <!ELEMENT myelement ( #PCDATA, subelement1, subelement2)>
> however that kind of content model is not available in XML DTDs or XML Schemas.
> 
> One good reason is that usually it means that you have some structure that you want
> to elide: that the initial textblob has some significance but you don't want to
> tag it. This goes against one thrust in XML, that terseness is not catered for:
> if you need terser markup, you need to go away from W3C DBMS approaches more
> to the publishing side of the family (ISO, OASIS) of markup standards: RELAX NG,
> DSDL, SGML etc.   
> 
> Having said that it may be bad modeling, it can undoubtedly be idiomatic markup:
> blocking PCDATA from between certain elements may fit in with the way we
> like to think about things. And who says terseness is always of minimal importance
> anyway?  The XML goal of terseness is primarily about documents being transmitted
> over the WWW where other layers are known, not documents being created or maintained
> or read.   Two well-known document types which have some kind of data restrictions
> are the original TEI and XSLT AFAIK. 
> 
> Cheers
> Rick Jelliffe
> 
> 
> -----------------------------------------------------------------
> 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://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.