Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: comments and PIs in XML Schema

From: "Michael Kay" <mike@--------.--->
To: "'Mukul Gandhi'" <gandhi.mukul@-----.--->, <xmlschema-dev@--.--->
Date: 4/25/2009 11:02:00 AM
I think one way of looking at this is that if you want formal constraints on
where comments and PIs appear, then you shouldn't be using comments and PIs,
you should be using elements.

It's true, of course, that comments and PIs are open to abuse. I've been
known to put data in PIs because the schema wouldn't let me put it anywhere
else. But I think one of the reasons XML works well is that it allows you to
use dirty tricks when you're stuck - systems need to have a bit of
flexibility built in.

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: xmlschema-dev-request@w... 
> [mailto:xmlschema-dev-request@w...] On Behalf Of Mukul Gandhi
> Sent: 25 April 2009 03:41
> To: xmlschema-dev@w...
> Subject: comments and PIs in XML Schema
> 
> Hi all,
>   I couldn't see provisions in the XML Schema languages (both 1.0 and
> 1.1) to have XML "comments" and "processing instructions" as 
> part of the validation requirements.
> 
> Why are "comments" and PIs not considered XML Schema 
> validation primitives?
> 
> Please pardon me, if I am missing something.
> 
> --
> Regards,
> Mukul Gandhi
> 


From cmsmcq@b... Sat Apr 25 16:01:36 2009
Received: from bart.w3.


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