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

CLDR-17770 Clarify what the alias element path value is relative to #4073

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/ldml/tr35.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
|Version|46 (draft)|
|-------|----------|
|Editors|Mark Davis (<a href="mailto:[email protected]">[email protected]</a>) and <a href="tr35.md#Acknowledgments">other CLDR committee members</a>|
|Date|2024-07-08|
|Date|2024-09-24|
|This Version|<a href="https://www.unicode.org/reports/tr35/tr35-73/tr35.html">https://www.unicode.org/reports/tr35/tr35-73/tr35.html</a>|
|Previous Version|<a href="https://www.unicode.org/reports/tr35/tr35-72/tr35.html">https://www.unicode.org/reports/tr35/tr35-72/tr35.html</a>|
|Latest Version|<a href="https://www.unicode.org/reports/tr35/">https://www.unicode.org/reports/tr35/</a>|
Expand Down Expand Up @@ -2759,7 +2759,7 @@ Consider the following example in root:

If the locale "de_DE" is being accessed for a month name for format/abbreviated, then a resource bundle at "de_DE" will be searched for a resource element at that path. If not found there, then the resource bundle at "de" will be searched, and so on. When the alias is found in root, then the search is restarted, but searching for format/**wide** element instead of format/abbreviated.

If the `path` attribute is present, then its value is an [[XPath](#XPath)] that points to a different node in the tree. For example:
If the `path` attribute is present, then its value is an [[XPath](#XPath)] that points to a different node in the tree. **That XPath is not relative to the location of the `alias` element itself, but rather to the location of the element that _contains_ the alias element, as seen in the example above.** For example:

```xml
<alias source="locale" path="../monthWidth[@type='wide']"/>
Expand Down Expand Up @@ -4158,6 +4158,7 @@ Other contributors to CLDR are listed on the [CLDR Project Page](https://www.uni
* In [EBNF](#ebnf), added more differences from W3C EBNF,
and documented use of wfc: and vc: for wellformedness and validity constraints.
Marked clauses with that format where appropriate, and grouped constraints after the relevant EBNF.
* In [Element alias](#Alias_Elements), clarified the location to which the path in the `alias` element is relative.

* Part 3: [Numbers](tr35-numbers.md#Contents)
* In [Supplemental Currency Data](tr35-numbers.md#Supplemental_Currency_Data), for the `currency` element,
Expand Down
Loading