xliff-comment

 View Only
Expand all | Collapse all

Comment on XLIFF v2.2 CSD01 - Machine-readable allowed selector keywords for Plural, Gender, and Select Module

  • 1.  Comment on XLIFF v2.2 CSD01 - Machine-readable allowed selector keywords for Plural, Gender, and Select Module

    Posted 09-27-2024 03:16

    Dear TC,

     

    In the context of the new Plural, Gender, and Select Module several allowed selector keywords are mentioned in the document:

     

    • Plural: the predefined keywords in this order: zero, one, two, few, many, other"
    • Gender: followed by the predefined keywords in this order: feminine, masculine, neuter, other"

     

    For automated processing (e.g., by validation tools such as validating parsers), it would advantageous if these keywords (and the order-related constraints) could also be provided in a machine-readable way.

     

    Best regards,

    Christian

     

     

     



  • 2.  RE: Comment on XLIFF v2.2 CSD01 - Machine-readable allowed selector keywords for Plural, Gender, and Select Module

    Posted 09-27-2024 10:42

    Hi Christian,

     

    The keywords you mention for the "switch" attribute are just prefixes, not a list of allowed values. It would not be easy (if at all possible) to define constraints in the corresponding XML Schema for the module.

     

    For the "case" attribute, the situation is more complex because the attribute values must also be constructed taking into account the associated "switch" attribute, keeping in mind that the possible values for "gender" are an open list.

     

    XLIFF validation cannot be done with just a validating XML parser. You need code that checks for compliance with the constraints described in the specification document.

     

    While I agree with you that it would be nice to have the keywords in a machine-readable format, we simply have to accept that validating attributes related to gender, plural, and selection requires code that applies some logic to verify compliance with the constraints defined in the corresponding module.

     

    Regards,

    Rodolfo

    -- 
    Rodolfo M. Raya
    https://www.maxprograms.com