[Bug 6303] FT: TokenInfo and StringInclude definition

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