ucum icon indicating copy to clipboard operation
ucum copied to clipboard

Question: base-unit vs. unit elements

Open timbrisc opened this issue 6 years ago • 4 comments

Issue migrated from trac ticket # 1811

component: unit definitions | priority: minor | keywords: XML, element types

2018-04-09 15:25:20: [email protected] created the issue


Looking at the UCUM XML definition file (ucum-essence .xml), I was surprised to find that the 7 UCUM base units are not defined as elements of type "unit" with a class of "base", but as a separate element type "base-unit".

Is there a discussion anywhere of how this design decision was arrived at?

As base units are themselves usable units (i.e. they are not abstract), it would seem more useful to include them in the set of units, and differentiate them by class. E.g. an XPath expression to return, or count "all defined units", would currently need to include patterns for two separate element types instead of one.

timbrisc avatar Apr 09 '18 15:04 timbrisc