DR 09-0052: SML, Styles: family attribute range issue
Shawn Villaron
shawnv at microsoft.com
Thu Jun 11 02:33:25 CEST 2009
Here is the completed text changes for this DR:
DR 09-0052 - SML, Styles: family attribute range issue
Part 1, §18.8.18 will be updated as follows:
18.8.18 family (Font Family)
The font family this font belongs to. A font family is a set of fonts having common stroke width and serif characteristics. This is system level font information. The font name overrides when there are conflicting values.
Value
Font Family
0
Not applicable.
1
Roman
2
Swiss
3
Modern
4
Script
5
Decorative
Parent Elements
font (§Error! Reference source not found.); rPr (§Error! Reference source not found.)
Attributes
Description
val (Value)
The font family this font belongs to value of an integer, where each value corresponds to a different character set. This attribute is restricted to values ranging from 0 to 255.
The possible values for this attribute are defined by the ST_FontFamily simple typeW3C XML Schema int datatype.
[Note: The W3C XML Schema definition of this element's content model (CT_IntPropertyCT_FontFamily) is located in §Error! Reference source not found... end note]
Part 1, §18.18 will be updated as follows:
18.18.x ST_FontFamily (Font Family)
This simple type specifies a font family. A font family is a set of fonts having common stroke width and serif characteristics. This is system level font information.
This simple type's contents are a restriction of the W3C XML Schema unsignedInt datatype.
This simple type is restricted to the values listed in the following table:
Value
Font Family
0
Not applicable.
1
Roman
2
Swiss
3
Modern
4
Script
5
Decorative
Referenced By
fontFamily at val (§Error! Reference source not found.8.18)
[Note: The W3C XML Schema definition of this simple type's content model (ST_ST_FontFamily) is located in §Error! Reference source not found.. end note]
Part 1, Schema Change Required
<xsd:element name="family" type=" CT_IntPropertyCT_FontFamily" minOccurs="0" maxOccurs="1"/>
<xsd:complexType name="CT_FontFamily">
<xsd:attribute name="val" type="ST_FontFamily" use="required"/>
</xsd:complexType>
<xsd:simpleType name="ST_FontFamily">
<xsd:restriction base="xsd:integer">
<xsd:minInclusive value="0"/>
<xsd:maxInclusive value="5"/>
</xsd:restriction>
</xsd:simpleType>
Part 1, Relax NG Change Required
From: Shawn Villaron
Sent: Tuesday, June 09, 2009 8:16 PM
To: SC 34 WG4
Subject: DR 09-0052: SML, Styles: family attribute range issue
Here is my proposed solution to address this defect report:
The attribute should be restricted in schema to the values from 0-5.
A new simple type should be added, to section 18.18:
<xsd:simpleType name="ST_FontFamilyVals">
<xsd:restriction base="xsd:integer">
<xsd:minInclusive value="0"/>
<xsd:maxInclusive value="5"/>
</xsd:restriction>
</xsd:simpleType>
Attribute val in 18.8.18 family (Font Family) should be changed from type xs:int to type ST_FontFamilyVals.
Thanks
shawn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.vse.cz/pipermail/sc34wg4/attachments/20090610/978d4a51/attachment.htm>
More information about the sc34wg4
mailing list