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

Re: comments and PIs in XML Schema

From: G. Ken Holman <gkholman@CraneSoftwrights.com>
Date: Sat, 25 Apr 2009 13:42:25 -0400
Message-Id: <7.0.1.0.2.20090425133734.025145a0@wheresmymailserver.com>
To: xmlschema-dev@w3.org
Re: comments and PIs in XML Schema
At 2009-04-25 13:34 -0400, Michael Glavassevich wrote:
><gkholman@cranesoftwrights.com> wrote on 04/25/2009 01:04:13 AM:
> > You won't see constraints on comments and PIs in DTD,
>
>Not quite true. Elements declared to be EMPTY [1] in a DTD are 
>forbidden from containing comments, PIs and entity references (even 
>ones whose expansion is an empty string).

Granted, but those are constraints on the element.  One cannot 
declare in a model constraints on comments and PIs themselves 
regarding their cardinality and location, which is what I thought 
Mukul was looking for.

I did try to be careful by saying they had places where they were 
allowed to go:

At 2009-04-25 01:04 -0400, I wrote:
>Annotations can be placed anywhere they are allowed in an XML 
>document without violating the constraints on an XML vocabulary.

But I do appreciate that you brought this to light for the readers of 
the archive as my wording wasn't very detailed.  Thanks, Michael.

. . . . . . . . . . Ken

--
XQuery/XSLT/XSL-FO hands-on training - Los Angeles, USA 2009-06-08
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18
Video overview:  http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18
G. Ken Holman                 mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/x/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal
Received on Saturday, 25 April 2009 17:43:13 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.