W3C home > Mailing lists > Public > public-multilingualweb-lt@w3.org > February 2013

Query about StorageSize, lineBreakType

From: Philip <Philip.Oduffy@ul.ie>
Date: Fri, 22 Feb 2013 12:43:04 +0000
Message-ID: <512767D8.5010901@ul.ie>
To: public-multilingualweb-lt@w3.org
Hey Guys,
    I just have a query about how to handle the StorageSize data 
category. The lineBreakType attribute is meant to be optional, but it 
seems to be expected by default in the expected output files, even if 
the input file has no mention of lineBreakType. Also, according to the 
table in http://www.w3.org/TR/its20/#datacategory-description there are 
not default values for "Storage Size"
Is this correct? Should I be trying to handle the default behavior in 
the datacategories-definition.xml file, like I do with other default 
attributes, or something else?

*Input file (StorageSize2xml.xml):*
<fields>
   <its:rules version="2.0" xmlns:its="http://www.w3.org/2005/11/its">
     <its:storageSizeRule selector="//field" 
storageEncodingPointer="@encoding" storageSizePointer="@max"/>
   </its:rules>
   <field encoding="ISO-8859-1" id="123" max="25" 
type="country">Papouasie-Nouvelle-Guinée</field>
   <field encoding="ISO-8859-1" id="139" max="25" 
type="country">République Dominicaine</field>
</fields>

*Expected Output:*
/fields
/fields/its:rules[1]
/fields/its:rules[1]/@version
/fields/its:rules[1]/its:storageSizeRule[1]
/fields/its:rules[1]/its:storageSizeRule[1]/@selector
/fields/its:rules[1]/its:storageSizeRule[1]/@storageEncodingPointer
/fields/its:rules[1]/its:storageSizeRule[1]/@storageSizePointer
/fields/field[1] *lineBreakType="lf"* storageEncoding="ISO-8859-1"    
storageSize="25"
/fields/field[1]/@encoding
/fields/field[1]/@id
/fields/field[1]/@max
/fields/field[1]/@type
/fields/field[2] *lineBreakType="lf"* storageEncoding="ISO-8859-1"    
storageSize="25"
/fields/field[2]/@encoding
/fields/field[2]/@id
/fields/field[2]/@max
/fields/field[2]/@type

Thanks,
Philip
Received on Friday, 22 February 2013 12:43:30 UTC

This archive was generated by hypermail 2.3.1 : Sunday, 9 June 2013 00:25:08 UTC