Project

General

Profile

Bug #3492

Unit should be pluralized by default

Added by Shaun Walbridge about 10 years ago. Updated over 9 years ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
utilities
Target version:
Start date:
09/23/2008
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
3492

Description

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'">
s
</xsl:if>

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 unitsResolved2008-09-22

History

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

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

#2 Updated by Margaret O'Brien about 10 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 10 years ago

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

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

Although it may be more pleasant to hear units pluralized when spoken aloud, it is improper:
http://www.physics.nist.gov/cuu/Units/checklist.html

#5 Updated by Shaun Walbridge over 9 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:

http://physics.nist.gov/cuu/Units/binary.html

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:

http://knb.ecoinformatics.org/software/eml/eml-2.0.1/eml-physical.html#size

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

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

#7 Updated by Redmine Admin over 5 years ago

Original Bugzilla ID was 3492

Also available in: Atom PDF