W3C home > Mailing lists > Public > public-qt-comments@w3.org > December 2008

[Bug 6303] FT: TokenInfo and StringInclude definition

From: <bugzilla@wiggum.w3.org>
Date: Thu, 11 Dec 2008 18:37:47 +0000
To: public-qt-comments@w3.org
Message-Id: <E1LAqPz-0007GN-Ki@farnsworth.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=6303


Michael Dyck <jmdyck@ibiblio.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdyck@ibiblio.org




--- Comment #1 from Michael Dyck <jmdyck@ibiblio.org>  2008-12-11 18:37:47 ---
[personal response:]

> 1. I am a bit confused with the definition of TokenInfo and StringInclude.
> ...
>  <xs:complexType name="stringMatch">
>    <xs:sequence>
>      <xs:element ref="fts:tokenInfo"/>
>    </xs:sequence>
>    ...
>  </xs:complexType>
> ...
> follows that StringMatch can contain a SEQUENCE of tokenInfo. So, we
> have one-to many relationship.

I think you are misreading the Schema definition. The construct
    <xs:sequence>
      <xs:element ref="fts:tokenInfo"/>
    </xs:sequence>
doesn't mean "a sequence of any number of tokenInfo elements", it means "a
sequence of exactly one tokenInfo element". To specify other than "exactly
one", we would use the 'minOccurs' and/or 'maxOccurs' attributes (of <sequence>
or <element>).

(By the way, if you have two independent comments, it's better to submit them
as separate Bugzilla issues.)


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Thursday, 11 December 2008 18:37:57 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:38 UTC