[
Lists Home |
Date Index |
Thread Index
]
- To: Michael Kay <mike@saxonica.com>, xml-dev@lists.xml.org
- Subject: RE: [xml-dev] Occurrence Question
- From: Michele Vivoda <idmichele@yahoo.it>
- Date: Mon, 27 Mar 2006 11:27:52 +0200 (CEST)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.it; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type; b=OvCfMKod4SWBk29/Pv5m1gRI/IzDL7YJuQ7kqySbeTLeHZhHrx2AOJ3AAOsFqju5fkhMCZKdPd/BsTPwS/Fvydey4uBdZKuHW3XYsGSACzM/g733cJqq3mUZVy7NFp3zJDhdaZ9jKuOWm/8fbuhqlw1mD5aGqUGoDSJUrXFwJ6U= ;
Thanks, I was also thinking about this option, I think
that the PSVI is the same because neither particle or
choice contribute to the PSVI, and they validate the
same instances because there is no difference between
empty and absent in xml. So, _in a choice with
elements only_ should be true that adding an optional
element makes the whole choice optional. Is this that
I wrote true, and in case, is it _always_ true, also
with other kind of particles ?
Greetings
Michele Vivoda
--- Michael Kay <mike@saxonica.com> ha scritto:
> Yes, I think they have the same meaning: they
> validate the same instances,
> and they generate the same PSVI.
>
> Michael Kay
> http://www.saxonica.com/
>
> > -----Original Message-----
> > From: Michele Vivoda [mailto:idmichele@yahoo.it]
> > Sent: 26 March 2006 19:37
> > To: xml-dev@lists.xml.org
> > Subject: [xml-dev] Occurrence Question
> >
> > Hi All,
> >
> > I would like to know if these two snippets
> > have the same 'meaning' (for xml schema):
> >
> > <xs:choice>
> > <xs:element minOccurs="0" maxOccurs="unbounded"
> > ref="col"/>
> > <xs:element minOccurs="0" maxOccurs="unbounded"
> > ref="colgroup"/>
> > </xs:choice>
> >
> > AND
> >
> > <xs:choice minOccurs='0'>
> > <xs:element maxOccurs="unbounded" ref="col"/>
> > <xs:element maxOccurs="unbounded"
> ref="colgroup"/>
> > </xs:choice>
> >
> > Options I thought:
> >
> > 1) they express the same schema components
> > (don't think so, since min and max are
> attributes of
> > particle component)
> > 2) they express different components but these
> > components validate the same instances.
> > 3) they are different and validate different
> instances
> > (presumably
> > because the first one wants at least one
> selected
> > particle for the choice).
> > 4) In some contexts they have surely the same
> meaning,
> > in others they might not (?).
> > 5) None of the above
> >
> > Thanks
> > Michele Vivoda
> >
> >
> >
> >
> >
> >
> > ___________________________________
> > Yahoo! Mail: gratis 1GB per i messaggi e allegati
> da 10MB
> > http://mail.yahoo.it
> >
> >
>
-----------------------------------------------------------------
> > The xml-dev list is sponsored by XML.org
> <http://www.xml.org>, an
> > initiative of OASIS <http://www.oasis-open.org>
> >
> > The list archives are at
> http://lists.xml.org/archives/xml-dev/
> >
> > To subscribe or unsubscribe from this list use the
> subscription
> > manager:
> <http://www.oasis-open.org/mlmanage/index.php>
> >
> >
>
>
>
___________________________________
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
http://mail.yahoo.it
|