pls.xsd schema not reflecting the recommendation


I was trying to validate some PLS documents using the latest schema
available [1], that was referenced in the Appendix A of the PLS
recommendation [2], when I took a closer look at the schema itself and
found a discrepancy with the recommendation itself.

In particular:
the specification of the <lexeme> element requires at least one <grapheme>
and one among <alias>|<phoneme> [3].

Unfortunately the xsd schema defines the <lexeme> element as follows:

<xs:element name="lexeme">
        <xs:choice minOccurs="0" maxOccurs="unbounded">
            <xs:element ref="p:grapheme"/>
                <xs:element ref="p:phoneme"/>
                <xs:element ref="p:alias"/>
            <xs:element ref="p:example"/>

Which would validate as correctly formed lexemes the following:

     <example>lexeme with only an example</example>
     <phoneme>lexeme with a phoneme but no grapheme</phoneme>
      <alias>lexeme with an alias but no grapheme</alias>
     <grapheme>grapheme without any alias nor phoneme</grapheme>

These are all invalid PLS lexemes according to the recommendation.

I thought I'd share my findings with the workgroup.


Domenico Cuciti


Received on Monday, 14 March 2016 20:11:25 UTC