Bug #3492
open
Unit should be pluralized by default
Added by Shaun Walbridge about 16 years ago.
Updated over 15 years ago.
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.
- Bug 3491 has been marked as a duplicate of this bug. ***
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
moving stylesheet bugs to P4 (after schema and documentation done)
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
Open stylesheet bugs are now associated with EML's Utility component
Original Bugzilla ID was 3492
Also available in: Atom
PDF