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

RE: comments and PIs in XML Schema

From: Michael Kay <mike@saxonica.com>
Date: Sat, 25 Apr 2009 10:02:00 +0100
To: "'Mukul Gandhi'" <gandhi.mukul@gmail.com>, <xmlschema-dev@w3.org>
Message-ID: <B7DC7C9012604A16A50DBFC569C3F99D@Sealion>
RE: comments and PIs in XML Schema

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@w3.org 
> [mailto:xmlschema-dev-request@w3.org] On Behalf Of Mukul Gandhi
> Sent: 25 April 2009 03:41
> To: xmlschema-dev@w3.org
> 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
> 
Received on Saturday, 25 April 2009 09:02:35 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
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-2007 All Rights Reserved.