Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Units of measure in XML documents

From: Peter Flynn <peter.nosp@-.--------.-->
To: NULL
Date: 1/15/2009 9:00:00 PM
Tom Wright wrote:
> Hello
> 
> I'm trying to find an up-to-date reference on units of measure in XML
> documents.  I've found quite a bit of stuff from around 1999-2002 at
> posc.org which refers to a working group at W3C tasked with this problem,
> but I've not found much more recent stuff and can't find anything at w3.org
> or in a search of past messages on this group.
> 
> Is there anything of the sort? Are there any current efforts in this
> direction?  I'd assumed as XML is so widely used that something like this
> would be standardised, so maybe I'm missing the obvious.  Any help would be
> most welcome.

The XML Spec does not address this: it's up to each document type 
designer to add validation criteria in the appropriate places. In a 
recent DTD for a book publisher, I had something like

<!ATTLIST image
   width CDATA #REQUIRED
   units (mm|cm|in|pt|px|pc|pi|cc|dd|sp) "mm">

I could have added meters and feet, but the client doesn't do poster 
work. Equally, a bibliographic application might require sizes in 
characters, lines, paragraphs, pages, signatures, issues, and volumes. 
On the other hand if you were designing for the scientific field, you'd 
probably want to specify SI units (there are *lots* of them :-)

///Peter
-- 
XML FAQ: http://xml.silmaril.ie/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent