Skip to content

Commit

Permalink
CLDR-17770 Clarify what the alias element path value is relative to (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
pedberg-icu authored and conradarcturus committed Sep 25, 2024
1 parent 12d4847 commit e95a7b5
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit e95a7b5

Please sign in to comment.