Bug #3492
openUnit should be pluralized by default
0%
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
Updated by Margaret O'Brien about 16 years ago
- Bug 3491 has been marked as a duplicate of this bug. ***
Updated by Margaret O'Brien about 16 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
Updated by Margaret O'Brien about 16 years ago
moving stylesheet bugs to P4 (after schema and documentation done)
Updated by Margaret O'Brien over 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
Updated by Shaun Walbridge over 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
Updated by Margaret O'Brien over 15 years ago
Open stylesheet bugs are now associated with EML's Utility component