Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev] Interesting pair of comments (was Re: [xml-dev] SchemaExperience Workshop minutes online)

From: Elliotte Harold <elharo@-------.---.--->
To: Pete Cordell <petexmldev@--------------.--->
Date: 7/14/2005 3:54:00 PM
Pete Cordell wrote:

> The low level XML parser would have to accept mixed, and the binding logic
> would need to handle unexpected mixed content gracefully in the same way
> that the whole system might have to handle <<<<< or any other number of
> illegal XML syntax gracefully.  But I don't think that means that an domain
> specific specification language must be able to specify that some construct
> is mixed.

You're mixing syntax and semantics. Handling <<<<< properly is a syntax 
issue. It is a well-formedness error. Handling <p>This is 
<strong>very</strong> important</p> when the schema says mixed content 
is not allowed is a very different issue that requires a different response.

regardless, mixed content is not as uncommon or unexpected as many 
people think. It is not an accident. It is not bad form. It is not 
something to be avoided. It is the very natural way to express many 
extremely common constructs when modeling information, including 
so-called data-oriented applications (as if any information content were 
not data). Excluding mixed content from a schema language is like 
excluding a reverse from a car's transmission. 99% of the time you might 
drive  in forward mode, but not having the reverse gear when you need it 
will leave your car (or application) stuck in a dead end it can't be 
extricated from without a tow truck.


-- 
Elliotte Rusty Harold  elharo@m...
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent