#155: Invalid "id" values in CF Standard Name aliasses
-------------------------------+---------------------------------
Reporter: martin.juckes | Owner: cf-standard-names@…
Type: defect | Status: new
Priority: low | Milestone:
Component: cf-standard-names | Version:
Keywords: |
-------------------------------+---------------------------------
Running an XML schema check on the CF standard name list, I found the
following minor (because they relate to aliasses, not the standard name
definitions) issues:
There are spurios spaces in these ids:
* rate_of_ hydroxyl_radical_destruction_due_to_reaction_with_nmvoc
* mole_fraction_of_hypochlorous acid_in_air
* mole_fraction_of_dichlorine peroxide_in_air
* mole_fraction_of_chlorine monoxide_in_air
* mole_fraction_of_chlorine dioxide_in_air
The standard name `surface_carbon_dioxide_mole_flux` has two aliasses,
`surface_upward_mole_flux_of_carbon_dioxide` and
`surface_downward_mole_flux_of_carbon_dioxide`, which is intended (the
definitions of the two newer names indicate that the deprecated name was
too imprecise). The problem here is that the XSD schema does not allow for
two aliasses with the same `id`. Having unique `id` values for each
element is useful, so I suggest we change the schema and the document to
replace
{{{
<alias id="surface_carbon_dioxide_mole_flux">
<entry_id>surface_upward_mole_flux_of_carbon_dioxide</entry_id>
</alias>
<alias id="surface_carbon_dioxide_mole_flux">
<entry_id>surface_downward_mole_flux_of_carbon_dioxide</entry_id>
</alias>
}}}
with
{{{
<alias id="surface_carbon_dioxide_mole_flux">
<entry_id>surface_upward_mole_flux_of_carbon_dioxide</entry_id>
<entry_id>surface_downward_mole_flux_of_carbon_dioxide</entry_id>
</alias>
}}}
--
Ticket URL: <http://cf-trac.llnl.gov/trac/ticket/155>
CF Metadata <http://cf-convention.github.io/>
CF Metadata