Semantic Model Mail Archive: SM> Natural Language extension

SM> Natural Language extension pattern error resolution

From: Zehler, Peter (PZehler@crt.xerox.com)
Date: Fri Aug 27 2004 - 15:04:57 EDT

  • Next message: McDonald, Ira: "RE: SM> Natural Language extension pattern error resolution"

    All,

    This is the last of the schema error fixes we have discussed. Anyplace
    where natural language appears the extension pattern is wrong. The changes
    outlined below resolve that problem.

    The well known values (see PwgWellKnownValues.xsd below) are just a subset
    of the allowed values for natural languages. If you wish to include
    additional ones please let me know.

    The proposal is to replace the incorrect definition in the schema files
    listed below with the correct one. The minor version number of the schema
    files will be bumped. I will also update the
    MasterListOfPwgSemanticElements with all the changes that have been made
    since 1.0 was initially released. The files will be placed on the PWG web
    and ftp sites.

    Please send out a note to the mailing list if you have any objections to
    this change.

    Pete

    JobDescription.xsd:

    The incorrect (i.e. current) definition is
            <xsd:element name="DocumentNaturalLanguageSupplied"
    type="NaturalLanguageWKV">
                    <xsd:annotation>
                            <xsd:documentation source="pwg.org">Stores
    DocumentNaturalLanguagesupplied by Client on Job creation operation (See
    DocumentDescription.DocumentNaturalLanguage)</xsd:documentation>
                    </xsd:annotation>
            </xsd:element>

    The correct definition is
    <xsd:element name="DocumentNaturalLanguageSupplied">
                    <xsd:annotation>
                            <xsd:documentation source="pwg.org">Stores
    DocumentNaturalLanguagesupplied by Client on Job creation operation (See
    DocumentDescription.DocumentNaturalLanguage)</xsd:documentation>
                    </xsd:annotation>
                    <xsd:simpleType>
                            <xsd:union memberTypes="NaturalLanguageWKV
    LanguageExtensionPattern"/>
                    </xsd:simpleType>
            </xsd:element>

    Printer Description:

    The incorrect (i.e. current) definition is
            <xsd:element name="DocumentNaturalLanguageDefault">
                    <xsd:simpleType>
                            <xsd:union memberTypes="NaturalLanguageWKV
    KeywordNsExtensionPattern"/>
                    </xsd:simpleType>
            </xsd:element>

    The correct definition is
            <xsd:element name="DocumentNaturalLanguageDefault">
                    <xsd:simpleType>
                            <xsd:union memberTypes="NaturalLanguageWKV
    LanguageExtensionPattern"/>
                    </xsd:simpleType>
            </xsd:element>

    The incorrect (i.e. current) definition is
            <xsd:element name="GeneratedNaturalLanguageSupported">
                    <xsd:simpleType>
                            <xsd:union memberTypes="NaturalLanguageWKV
    KeywordNsExtensionPattern"/>
                    </xsd:simpleType>
            </xsd:element>

    The correct definition is
            <xsd:element name="GeneratedNaturalLanguageSupported">
                    <xsd:simpleType>
                            <xsd:union memberTypes="NaturalLanguageWKV
    LanguageExtensionPattern"/>
                    </xsd:simpleType>
            </xsd:element>

    The incorrect (i.e. current) definition is
            <xsd:element name="NaturalLanguageConfigured">
                    <xsd:simpleType>
                            <xsd:union memberTypes="NaturalLanguageWKV
    KeywordNsExtensionPattern"/>
                    </xsd:simpleType>
            </xsd:element>

    The correct definition is
            <xsd:element name="NaturalLanguageConfigured">
                    <xsd:simpleType>
                            <xsd:union memberTypes="NaturalLanguageWKV
    LanguageExtensionPattern"/>
                    </xsd:simpleType>
            </xsd:element>

    PwgCommon.xsd:

    The incorrect (i.e. current) definition is
            <xsd:element name="DocumentNaturalLanguage">
                    <xsd:simpleType>
                            <xsd:union memberTypes="NaturalLanguageWKV
    KeywordNsExtensionPattern"/>
                    </xsd:simpleType>
            </xsd:element>

    The correct definition is
            <xsd:element name="DocumentNaturalLanguage">
                    <xsd:simpleType>
                            <xsd:union memberTypes="NaturalLanguageWKV
    LanguageExtensionPattern"/>
                    </xsd:simpleType>
            </xsd:element>

    The incorrect (i.e. current) definition is
    <xsd:element name="ElementsNaturalLanguage" type="NaturalLanguageWKV"/>

    The correct definition is
            <xsd:element name="ElementsNaturalLanguage">
                    <xsd:simpleType>
                            <xsd:union memberTypes="NaturalLanguageWKV
    LanguageExtensionPattern"/>
                    </xsd:simpleType>
            </xsd:element>

    PwgWellKnownValues.xsd

    The incorrect (i.e. current) definition is
            <xsd:simpleType name="NaturalLanguageWKV">
                    <xsd:restriction base="xsd:NMTOKEN">
                            <xsd:maxLength value="255"/>
                            <xsd:enumeration value="ar"/>
                            <xsd:enumeration value="de"/>
                            <xsd:enumeration value="en"/>
                            <xsd:enumeration value="en-us"/>
                            <xsd:enumeration value="es"/>
                            <xsd:enumeration value="fr"/>
                            <xsd:enumeration value="hi"/>
                            <xsd:enumeration value="it"/>
                            <xsd:enumeration value="ja"/>
                            <xsd:enumeration value="pt"/>
                            <xsd:enumeration value="zh"/>
                    </xsd:restriction>
            </xsd:simpleType>

    The correct definition is
            <xsd:simpleType name="NaturalLanguageWKV">
                    <xsd:restriction base="xsd:NMTOKEN">
                            <xsd:maxLength value="255"/>
                            <xsd:enumeration value="ar"/>
                            <xsd:enumeration value="da"/>
                            <xsd:enumeration value="de"/>
                            <xsd:enumeration value="cs-CS"/>
                            <xsd:enumeration value="de-DE"/>
                            <xsd:enumeration value="en"/>
                            <xsd:enumeration value="en-US"/>
                            <xsd:enumeration value="en-GB"/>
                            <xsd:enumeration value="es"/>
                            <xsd:enumeration value="es-419"/>
                            <xsd:enumeration value="fr"/>
                            <xsd:enumeration value="hi"/>
                            <xsd:enumeration value="it"/>
                            <xsd:enumeration value="ja"/>
                            <xsd:enumeration value="ko"/>
                            <xsd:enumeration value="pt"/>
                            <xsd:enumeration value="zh"/>
                            <xsd:enumeration value="zh-hans"/>
                            <xsd:enumeration value="zh-hant"/>
                            <xsd:enumeration value="zh-hans-CN"/>
                            <xsd:enumeration value="zh-SG"/>
                    </xsd:restriction>
            </xsd:simpleType>

    Add correct pattern
            <xsd:simpleType name="LanguageExtensionPattern">
                    <xsd:restriction base="xsd:NMTOKEN">
                            <xsd:pattern value="[\w\d]+[\-\w\d]*"/>
                    </xsd:restriction>
            </xsd:simpleType>

                                    Peter Zehler
                                    XEROX
                                    Xerox Innovation Group
                                    Email: PZehler@crt.xerox.com
                                    Voice: (585) 265-8755
                                    FAX: (585) 422-7961
                                    US Mail: Peter Zehler
                                                  Xerox Corp.
                                                  800 Phillips Rd.
                                                  M/S 128-25E
                                                  Webster NY, 14580-9701



    This archive was generated by hypermail 2b29 : Fri Aug 27 2004 - 15:11:57 EDT