Skip to content
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

Support RFC 3066 #1

Open
adligo opened this issue Aug 21, 2019 · 3 comments
Open

Support RFC 3066 #1

adligo opened this issue Aug 21, 2019 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@adligo
Copy link

adligo commented Aug 21, 2019

Hi Seva, Thanks for the link!

After a quick read it looks like this document is one part of what I was suggesting. As far as I can tell rfc3066 covers what language is this schema in. So I suggest sticking with that for;

'what language is this schema in?'

The second part of my suggestion is;

'what was the original language of this schema?'

Assuming the schema was originally constructed in one language 'i.e. English', and then a second schema was added to support another language 'i.e. German'.
To bring things together in an example, perhaps the original English Invoice (XML) schema would have;
xml:lang="en" xml:p-lang="en"

And then if it got translated to German the German Invoice (XML) schema would have;
xml:lang="de" xml:p-lang="en"
p-lang stands for primary language

@safris safris transferred this issue from jsonx-org/java Aug 21, 2019
@safris safris changed the title Schema Thoughts Support RFC 3066 Aug 21, 2019
@safris
Copy link
Collaborator

safris commented Aug 21, 2019

Hi Scott, I will look into the best way to support RFC 3066 in the JSONx Schema. Regarding your request for "primary language":... The logic to "link" schemas together, be it by language or primary language, is an application-specific requirement that is "closed" to a single use-case. The XML Schema specification has a generalized pattern for linking XML documents, called XLink. I would consider implementing an analogous pattern for JSONx. This pattern can thereafter be used to "link" schemas together for any reason, be it primary language, or anything you can imagine, making this kind of pattern "open".

@adligo
Copy link
Author

adligo commented Aug 21, 2019 via email

@adligo
Copy link
Author

adligo commented Aug 22, 2019 via email

@safris safris self-assigned this May 23, 2020
@safris safris added the enhancement New feature or request label May 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants