Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: comments and PIs in XML Schema

From: Michael Glavassevich <mrglavas@--.---.--->
To: "G. Ken Holman" <gkholman@----------------.--->
Date: 4/25/2009 10:10:00 AM
<gkholman@c...> wrote on 04/25/2009 01:42:25 PM:

> At 2009-04-25 13:34 -0400, Michael Glavassevich wrote:
> ><gkholman@c...> 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.

Right. I thought you were making a more general statement about whether PIs
or comments participated at all in DTD validation. Thanks for clarifying.

> 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@C...
> 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

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@c...
E-mail: mrglavas@a...


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