Opened 5 months ago

Last modified 5 months ago

#155 new defect

Invalid "id" values in CF Standard Name aliasses

Reported by: martin.juckes Owned by: cf-standard-names@…
Priority: low Milestone:
Component: cf-standard-names Version:
Keywords: Cc:

Description

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>

Change History (1)

comment:1 Changed 5 months ago by jonathan

Dear Martin

This looks sensible to me. Alison's comment would be useful on this one too. Changing the standard names rectifies a defect, I agree, but I think that changing the schema should be treated as a proposal for substantial change to the convention.

Best wishes

Jonathan

Note: See TracTickets for help on using tickets.