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

Re: JITTs and DOM

dom tei

Rick Jelliffe wrote:
From: "Patrick Durusau" <pdurusau@e...>

This ties the processing of the markup to the inline syntax in the 
document instance, a bad thing in my opinion. The JITTs paradigm allows
you to impose structure upon the markup in the document instance, as
opposed to relying solely upon the inline syntax.
It is a limitation of the JITTs paradigm, which will be noticed by its 
critics once all other criticisms fail, that it requires use of a DTD or

So the only way to know if the document is correctly marked up
is to have enough DTDs to cover every tag?
Not sure what you mean by "correctly marked up"? Serious question and here's why:

Assume we have a document instance that has markup that you have entered using TEI and I have entered markup using DocBook in the same document. So we have some elements that mark the same structures with different names, may have some structures that occur in one and not the other.

Assume that you want to process the document using your TEI markup. With a JITTs parser, the only markup that is recognized (let's assume in discard mode) is your TEI markup and that feeds into an XSLT stylesheet for production of a PDF file.

Assuming that your TEI markup complies with the TEI DTD, is the document "marked up correctly"?

My answer would be yes, because what other test for correct markup can we have other than compliance with a DTD/schema (by the recognized markup) that can then be manipulated by stylesheets or other processing for that DTD or schema?

The difference in the JITTs paradigm and the conventional view of processing markup is that the latter burdens the inline syntax with compliance to a particular set of rules prior to processing. Prior to processing, I would argue that there is no correct or incorrect markup in a document instance.

If you really wanted to validate all the markup in a document, I can imagine cases where that would be useful, then yes, the sum of the DTDs or schemas would have to cover all the markup in the document. Unlikely in most cases but I can see where that might be a requirement, such as validating both a print and structural view of a document.



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

Patrick Durusau
Director of Research and Development
Society of Biblical Literature


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.
First Name
Last Name
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.