Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - comments and PIs in XML Schema >Thread Next - Re: comments and PIs in XML Schema RE: comments and PIs in XML SchemaTo: "'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. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
