Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
I have a gadget whose message bundle includes the following entry:
<msg name="orange" desc="Color, approximately #E69B1E">
orange
</msg>
The value of that message should be "\norange\n", but shindig appears to be trimming the whitespace around the message's value.
Shindig is not following the spec, which states that the msg element extends xs:string, and NOT xs:normalizedString:
<xs:element name="messagebundle">
<xs:complexType>
<xs:sequence>
<xs:element name="msg" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="desc" type="xs:string" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
See:
http://www.w3schools.com/Schema/schema_dtypes_string.asp