Project

General

Profile

Actions

Bug #3492

open

Unit should be pluralized by default

Added by Shaun Walbridge over 15 years ago. Updated about 15 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 unitsResolvedMatt Jones09/22/2008

Actions
Actions #1

Updated by Margaret O'Brien over 15 years ago

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

Updated by Margaret O'Brien over 15 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

Actions #3

Updated by Margaret O'Brien over 15 years ago

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

Actions #4

Updated by Margaret O'Brien about 15 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

Actions #5

Updated by Shaun Walbridge about 15 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

Actions #6

Updated by Margaret O'Brien about 15 years ago

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

Actions #7

Updated by Redmine Admin about 11 years ago

Original Bugzilla ID was 3492

Actions

Also available in: Atom PDF