W3C home > Mailing lists > Public > www-html@w3.org > April 2007

re: OLStyle should be enumeration? LIStyle should be union

From: Chris <chrishe@hmgcc.gsi.gov.uk>
Date: Thu, 26 Apr 2007 09:36:59 +0100
Message-ID: <463064AB.9020809@hmgcc.gsi.gov.uk>
To: www-html@w3.org, www-html-editor@w3.org

Once the below change is made, LIStyle should also be changed.
It is also currently a string and could be defined as a union
of ULStyle and OLStyle as described in the documentation tag.

-------- Original Message --------
Subject: OLStyle should be enumeration?
Date: Thu, 26 Apr 2007 09:13:34 +0100
From: Chris <chrishe@hmgcc.gsi.gov.uk>
Organization: hmgcc
To: www-html@w3.org

In all the XHTML 1.0 schemas (http://www.w3.org/TR/xhtml1-schema/)
OLStyle type is defined as a xs:string.  In the documentation, it is
clear that it can only take 5 values.

Why isn't it defined as an enumeration? Is there a reason or is it an
oversight?

Suggested correction is below:
<xs:simpleType name="OLStyle">
      <xs:annotation>
        <xs:documentation>
        Ordered list numbering style

        1   arabic numbers      1, 2, 3, ...
        a   lower alpha         a, b, c, ...
        A   upper alpha         A, B, C, ...
        i   lower roman         i, ii, iii, ...
        I   upper roman         I, II, III, ...

        The style is applied to the sequence number which by default
        is reset to 1 for the first list item in an ordered list.
        </xs:documentation>
      </xs:annotation>
      <xs:restriction base="xs:token">
	<xs:enumeration value="1"/>
	<xs:enumeration value="a"/>
	<xs:enumeration value="A"/>
	<xs:enumeration value="i"/>
	<xs:enumeration value="I"/>
      </xs:restriction>
    </xs:simpleType>

Regards
--
Chris HMGCC


-- 
Chris
HMGCC

The information contained in this message (and any attachments) may
be confidential and is intended for the sole use of the named addressee.
Access, copying, alteration or re-use of the e-mail by anyone other
than the intended recipient is unauthorised. If you are not the intended
recipient please advise the sender immediately by returning the e-mail
and deleting it from your system.

This information may be exempt from disclosure under Freedom Of Information 
Act 2000 and may be subject to exemption under other UK information 
legislation. Refer disclosure requests to the Information Officer.


The original of this email was scanned for viruses by the Government Secure Intranet Anti-Virus service supplied by Cable&Wireless in partnership with MessageLabs. (CCTM Certificate Number 2006/04/0007.) On leaving the GSi this email was certified virus free.
Communications via the GSi may be automatically logged, monitored and/or recorded for legal purposes.
Received on Friday, 27 April 2007 12:27:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:09 GMT