Daniel is not a member of the list, so I am forwarding for him:
Benno Blumenthal wrote:
> If I understood xml better, I guess I would know the answer to this
> question, but here goes.
>
> Suppose I had a variable list, e.g. (taken from the documentation page)
>
> <variables
> xmlns="http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0" >
> <variable name="wv" vocabulary_name="Wind Speed" units="m/s"/>
> <variable name="wdir" vocabulary_name="Wind Direction" units
> "degrees"/>
> <variable name="o3c" vocabulary_name="Ozone Concentration" units="g/g"/>
> ...
> </variables>
>
>
>
> Suppose I want to say that the units are udunits compliant. Can I write
>
> <variables
> xmlns="http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0" >
> <variable name="wv" vocabulary_name="Wind Speed">
> <units vocabulary="udunits>m/s</units></variable>
> <variable name="wdir" vocabulary_name="Wind Direction">
> <units vocabulary="udunits>degrees</units></variable>
> <variable name="o3c" vocabulary_name="Ozone Concentration">
> <units vocabulary="udunits">g/g</units></variable>
> ...
> </variables>
>
> I certainly would like to be able to do so.
Currently 'units' are an attribute of <variable> not a separate
element. But doesn't
your example imply that you want to identify the 'authority', or
'controlled vocabulary'
that both the 'units' as well as variable 'name' are relative to? The
schema allows for
the catalog to identify the source of the controlled vocabulary in use,
I assume that
could be extended to include the authority for the 'units' that are used
as attributes of
a <variable> element. That might negate the necessity of adding
specific <units>
elements to the schema. Just a thought. I too am not an expert on
XML Schemas.
Dan
>
> Benno
>
--
**************************************************************************** <
Unidata User Support UCAR Unidata Program <
(303)497-8643 P.O. Box 3000 <
support@xxxxxxxxxxxxxxxx Boulder, CO 80307 <
---------------------------------------------------------------------------- <
Unidata WWW Service http://my.unidata.ucar.edu/content/support <
---------------------------------------------------------------------------- <
NOTE: All email exchanges with Unidata User Support are recorded in the
Unidata inquiry tracking system and then made publicly available
through the web. If you do not want to have your interactions made
available in this way, you must let us know in each email you send to us.
------- End of Forwarded Message