citation-style-language / schema

Citation Style Language schema
https://citationstyles.org/
MIT License
187 stars 60 forks source link

Allow locale element in style with no xml:lang attribute #23

Closed bdarcus closed 13 years ago

bdarcus commented 13 years ago

Using a locale element with no xml:lang attribute to lay down locale-wide defaults for specific values would be a useful thing to do. This proposal, suggested by Rintze, would revert a recent change that made the xml:lang attribute mandatory on in-style locale elements.

A patch is attached for illustration.


bdarcus commented 13 years ago

As a bit of background: In CSL 0.8, the xml:lang attribute of cs:style was optional. Where xml:lang would be absent on cs:locale, but present on cs:style, it could be inherited. Since then, xml:lang has been scrapped as a possible attribute on cs:style (to limit confusion, we now only have default- locale), and xml:lang on cs:style has been made a required attribute. The elimination of inheritance has however made some room to maneuver (allowing for the proposal detailed above by Frank).

The ability to redefine terms for all locales will be helpful in case some parts of the style should localize, whereas other parts shouldn't. One example is the definition of empty strings, but people may find other uses for it. I think the proposed patch will offer quite a bit of flexibility without any big downsides (other than adding a bit more complexity to the processing of the schema).

Patch that will reverted: http://sourceforge.net/apps/trac/xbiblio/changeset/1168


Original Comment By: Rintze Zelle
bdarcus commented 13 years ago

Closed with [Author: rmzelle

Age: 15 months ago

Allowing styles to use cs:locale without the xml:lang attribute">r23:b4e2c45b794d]1 .


Original Comment By: Rintze Zelle