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

Re: Syntax + object model


relax modularization tei docbook
aray@n... (Arjun Ray) writes:
>| DTDs emerge from an understanding of what markup does, but both do
>| too much (infoset augmentation)
>
>Well, that's if one assumes there is a "the infoset" to be so
>augmented.

Fair enough.  I'm using a more recent term to describe the actions of
something that existed long before, and it reeks of anachronism.

>I think John Cowan once clarified that the Infoset Rec actually
>specifies only "an infoset", and not in any way "the infoset" in some
>normatively exclusive sense (though "derivative" specs of late seem
>quite eager to treat it so).

John is wisely modest about the Infoset.  I'm very glad that work wasn't
done by, uh, more eager people.

>| and too little (modularization is an interesting challenge.) 
>
>Actually, that isn't a problem with DTDs as much as it's a problem
>with the (implicit) validation model.  That is, if you assume that a
>DTD will be comprehensive about a document (an "encompassing
>architecture" to the HyTime folks) then modularization is a definite
>challenge.  Of course, DTDs were originally developed with
>comprehensiveness in mind only, but it's possible to relax the default
>scope and apply particular DTDs to only parts of a document (as in
>"enabling architectures").  For example, RNG can take a "maximal fit"
>rather than a "complete fit" view of validation. Similarly, it's
>possible to assume the moral equivalent of (#DONTCARE) as the content
>model of some elements, and thus delegate subtree validation
>constraints to other DTDs. 

I think this is a more complicated field.  Modularization always is, and
I was shocked to see the what lurks behind the TEI Pizza Chef.  Working
with DocBook (to take the example I deal with most frequently) is
simpler, but it can still be fun to wander through the parameter
entities, even in my employer's semi-simplified version.  

Generally speaking, I'm happier working with RELAX NG at this point than
with DTDs, but I still use (and even sometimes enjoy) DTDs on a regular
basis.

>That said, *XML* DTDs are utterly crippled in relation to SGML DTDs,
>and even those lack expressive power in some areas.   

I've only read SGML DTDs, never created them, so I'm definitely not
qualified to comment.

>| [...] while DTDs do too little, and extending them requires a lot of
>|ad hoc work.
>
>If you mean things like PE games to shoehorn colonified names, that's a
>colossal waste of time and energy indeed.

That's a particular case of perverse brilliance.  I'm amazed that the
loopholes for making it work proved usable, but it's no fun to work
through loopholes.

-- 
Simon St.Laurent
Ring around the content, a pocket full of brackets
Errors, errors, all fall down!
http://simonstl.com -- http://monasticxml.org

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.