Opened 7 years ago

Closed 5 years ago

Last modified 5 years ago

#157 closed question (fixed)

Supporting infrastructure for XML version of specification

Reported by: Peter A. Bigot Owned by:
Priority: minor Milestone: Version 2.0
Component: Keywords:
Cc:

Description

It's great that there's an XML document corresponding to the formal part of the specification, but that document isn't in the most useful form. I haven't been able to locate a schema defining its structure, so it can't be validated and (more importantly) any systems that try to process the document would need to hand-code a parser rather than use a code generator like JAXB, CodeSynthesis XSD, or my own PyXB.

Would a formal XML description of the UCUM document format be useful to you?

I'd be happy to provide an XML Schema (preferred) or RelaxNG schema that could be used for this, but there are some idiosyncrasies in the document that make it difficult: for example, the root element is in namespace "http://unitsofmeasure.org/ucum-essence" but every contained element is explicitly placed in no namespace.

Was there a reason for this?

Change History (6)

comment:1 Changed 5 years ago by Christof Gessner

Valuable suggestion. Currently there is no XML-Schema, at least to my knowledge. I am in favor of updating the publication format in one of our future releases, reflecting more recent developments around XML-tooling.

comment:2 Changed 5 years ago by Gunther Schadow

for example, the root element is in namespace "http://unitsofmeasure.org/ucum-essence" but every contained element is explicitly placed in no namespace.

If true, I would consider this an error and fix it.

comment:3 Changed 5 years ago by Gunther Schadow

It is true indeed:

<root xmlns="http://unitsofmeasure.org/ucum-essence" version="2.0.1"
      revision="$Revision: 438 $"
      revision-date="$Date: 2015-11-13 14:54:55 -0500 (Fri, 13 Nov 2015) $">
   <prefix xmlns="" Code="Y" CODE="YA">

that makes no sense.

Fixed in [439].

comment:4 Changed 5 years ago by Gunther Schadow

If you want to contribute a schema, you are welcome. We might consider placing it here for others to use. However, we would not really promise to validate against that schema.

comment:5 Changed 5 years ago by Gunther Schadow

Resolution: fixed
Status: newclosed

comment:6 Changed 5 years ago by Gunther Schadow

Milestone: Version 2.0
Note: See TracTickets for help on using tickets.