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

Re: Implementations not specifications are the problem was Re:


dtd compatibility sax

>> "(iii) It doesn't work with streaming output. This is in my view the most
>> important technical problem"
>>
>
> Err, so wouldn't it be easier to fix the streaming output systems (I
> believe Xalan already implements the SAX DeclHandler interface on its
> default output handler) than to:
>
> 1) Create an entirely new specification
> 2) Update every XML parser and XPath and DOM implementation
> 3) Deploy the new implementions
>
> The problem is in _implementations_ not _specifications_.
>
> Perhaps I am missing something?

No amount of fixing implementations will solve the problem.  The problem is 
exacerbated by the mismatch between the infoset and the serialized form (as 
Mike Kay points out): ID-ness is a property of attribute information items 
in the infoset but is serialized in the DTD. But even if this was fixed, it 
wouldn't solve the fundamental problem.  Imagine trying to implement 
something like XInclude whilst preserving the ID-ness of attributes.  If 
IDs have to be declared up front in the internal subset, it is impossible 
to implement in a 1-pass streaming way.  With xml:idatts it would be 
possible (modulo problems with duplicate IDs). XSLT implementations have an 
equivalent problem.

Note that the issue of streaming output is the main reason why namespace 
declarations were allowed to nest rather that being all required up front 
on the document element. See

http://www.w3.org/DesignIssues/Extensible.html#Local

> James:
>
> On the other hand I _do_ think there is value in 'moving beyond' DTDs to
> XML syntax schemas. Since you are working with RELAXNG, rather than
> propose _xml:atts_ which is a partial solution to the problem, will you
> include the _xml:atts_ proposal as a part of RELAXNG in some fashion?

The RELAX NG DTD Compatibility spec

  http://www.oasis-open.org/committees/relax-ng/compatibility.html

provides a DTD-compatible ID facility.  However, I'm not a big fan of IDs. 
I strongly dislike the kind of redundant markup that ID/IDREF based linking 
often forces:

  A <termdef id="dt-well-formed">well-formed</termdef> document is...

  A <termref ref="dt-well-formed">well-formed</termref> document must...

I prefer something along the lines of XSD identity constraints, except (i) 
it should be specifiable and useable independently of the other parts of 
the schema and (ii) it needs to support keyrefs to hierarchichal systems of 
keys. I hope at some point there will be a companion spec to RELAX NG that 
provides this.

James



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.