New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restrict values for our xml:lang attributes #11
Comments
BTW, it's not only about 3-letter codes.
|
Solution 1. As described above. Keep using Other options: Solution 2. Deprecate Solution 3. Don't change anything. Keep |
As W3C refers to http://www.rfc-editor.org/rfc/bcp/bcp47.txt when discussing |
I'd suggest to stick to the ISO 639-1 codes which should be sufficient inside our use cases and the EU. (http://publications.europa.eu/code/en/en-5000800.htm) |
Would you prefer solution 1 or 2? Both of them encourage you to use 2-letter codes, but solution 2 is more restrictive (it enforces it on the XML Schema level). |
solution 1 should be enough I think |
During discussion in Warsaw it turned out that might need these "extra features" (among other things, to be able to specify that particular value has been transliterated). I didn't understand why we need it exactly, but perhaps it doesn't matter. In conclusion, we want to be able to use the full potential of |
@wrygiel could you elaborate on this? What are the implications for server- and client-developers? |
Server developers will be allowed to use extensions, as |
I will try to understand this topic exactly before I update the specification. I suspect that we might have misunderstood each other in this aspect. Regardless, I think that the clients should expect that |
@wrygiel yes I agree with the last comment! |
+1 for 2-letter codes with optional extension |
I have just noticed one minor issue which we should address.
The
xml:lang
attributes which we have used in our StringWithOptionalLang and MultilineStringWithOptionalLang data types have "a flaw" of a sort. (Or perhaps it's a feature?)I was just implementing an update to ewp-registry-client, and have followed the XML namespace specs through xs:language specs to RFC 3066 where I found out that
xml:lang
accepts both 2 and 3-letter language codes.This might be a problem, because - if we allow that - then all programmers will need to remember to search for their languages using both versions of the key (e.g.
eng
anden
, instead of onlyen
).I propose to change our specs and require everyone to use 2-letter codes only (the ISO 839-1 subset of all valid
xml:lang
attributes). This would be documented in ourcommon-types.xsd
file.The text was updated successfully, but these errors were encountered: