Bug #3492

Unit should be pluralized by default

Added by Shaun Walbridge about 14 years ago. Updated over 13 years ago.

In Progress
Target version:
Start date:
Due date:
% Done:


Estimated time:


In eml-physical.xsl, the template 'physicalsize' should see if the unit is greater than one, and pluralize accordingly. Currently, it just reads:
<xsl:value-of select="./@unit"/>

Perhaps instead, it could read:
<xsl:value-of select="./@unit"/>
<xsl:if test="@unit > '1'">

Mostly annoying because most EML documents with entities have a byte count, and it displays as '145902 byte' currently.

Related issues

Is duplicate of EML - Bug #3491: stylesheet fix for eml-physical.xsl, byte unitsResolved09/22/2008


#1 Updated by Margaret O'Brien about 14 years ago

  • Bug 3491 has been marked as a duplicate of this bug. ***

#2 Updated by Margaret O'Brien about 14 years ago

these bugs are for stylesheet and documentation updates. changed to EML.2.1.0 priority 3, to be taken care of after changes to schema

#3 Updated by Margaret O'Brien about 14 years ago

moving stylesheet bugs to P4 (after schema and documentation done)

#4 Updated by Margaret O'Brien over 13 years ago

Although it may be more pleasant to hear units pluralized when spoken aloud, it is improper:

#5 Updated by Shaun Walbridge over 13 years ago

A couple of things:

We don't use the SI system for prefixing our quantity of bytes, which relies on base 10 numbering instead of the base two numbering computing convention, and I'm doubtful we'll adopt this somewhat confusing prefixing (e.g. saying 100 MiB (mebibyte) instead of 100MB as we do now in the EML documentation).

I can't find any reference to 'byte' used in the singular referring to a quantity, but can find a reference to the plural case being used in the NIST reference:

Unless we can find some authoritative source which uses the singular, I think we should still fix this. We use the plural form in the 2.0.1 documentation:

#6 Updated by Margaret O'Brien over 13 years ago

Open stylesheet bugs are now associated with EML's Utility component

#7 Updated by Redmine Admin over 9 years ago

Original Bugzilla ID was 3492

Also available in: Atom PDF