You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The course structure metadata has any number of fields that have a type of 'langstring'. And we generally show an example, such as:
<description>
<langstring lang="en-US">This is a course description</langstring>
<langstring lang="es-MX">Esta es una descripción del curso</langstring>
</description>
And the XSD checks the structure of the overall XML, but we don't specify anywhere (that I could find) the format of the lang attribute's value. In doing our implementation I assumed that it would match the languagePreference values which are specified as RFC 5646 values, and that is the IETF standard which I think we should follow. But to do so we'd need to be specific about it.
We recently had someone testing content that used the alternate format (using an underscore rather than a hyphen) and rejected that content. Without being specific in the text we'd essentially have to allow any string to be included as the value. That would cause problems with compatibility of cmi5 metadata being converted into xAPI Activity Definition data.
The text was updated successfully, but these errors were encountered:
This was discussed at the June 30 meeting and the consensus was as follows:
The type xs:language is part of the XML XSD which references RFC 4646 (and its successors) which RFC
5656 is. So technically this is already correct.
The group agreed:
#1 - The party in question implemented language incorrectly #2 - that it was not productive to define all the XML specification defined types. #3 - this should be added to "common mistakes" to document the issue so that we can direct others to it
[Definition:] language represents formal natural language identifiers, as defined by [BCP 47] (currently represented by [RFC 4646] and [RFC 4647]) or its successor(s). The ·value space· and ·lexical space· of language are the set of all strings that conform to the pattern
The course structure metadata has any number of fields that have a type of 'langstring'. And we generally show an example, such as:
And the XSD checks the structure of the overall XML, but we don't specify anywhere (that I could find) the format of the
lang
attribute's value. In doing our implementation I assumed that it would match thelanguagePreference
values which are specified as RFC 5646 values, and that is the IETF standard which I think we should follow. But to do so we'd need to be specific about it.We recently had someone testing content that used the alternate format (using an underscore rather than a hyphen) and rejected that content. Without being specific in the text we'd essentially have to allow any string to be included as the value. That would cause problems with compatibility of cmi5 metadata being converted into xAPI Activity Definition data.
The text was updated successfully, but these errors were encountered: