Please refer to the errata for this document, which may include some normative corrections.
This document is also available in these non-normative formats: Some Format, Some Other Format, and Canonical Format.
Copyright © 2009-2010 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark and document use rules apply.
This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at http://www.w3.org/TR/.
This document was published by the Device APIs and Policy Working Group as an Editor's Draft. If you wish to make comments regarding this document, please send them to public-device-apis@w3.org (subscribe, archives). All feedback is welcome.
Publication as a Editor's Draft does not imply endorsement by the W3C Membership. This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress.
This document was produced by a group operating under the 5 February 2004 W3C Patent Policy. W3C maintains a public list of any patent disclosures made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) must disclose the information in accordance with section 6 of the W3C Patent Policy.
There are several RFC 2119 keywords: must, must not, required, shall, shall not, should, should not, recommended, may, and optional. They are only recognised in uppercase, so that one may still write normally if one must. Importantly, the must not fail when happening over line breaks, but:
W3C is no different from other geek outfits, and is therefore full of abbreviations.
We don't care about the silly debate going on about abbr
and acronym
,
we just support whatever people use, so that the following all ought to work:
A definition is an element that marks out a term that is defined in the current block.
They can sometimes be definitions with a title so that they can be written in the flow of the sentence without disruption.
Sometimes you will see an AbbrDef, which is an abbreviation-based definition.
One thing that should definitely work is creating definitions over multiple lines in the source.
It is then possible to reuse them. The title trick works both ways so that definitions
can be reused fluidly. It would be possible to automatically detect them but for the time being
they require an a
element.
This should have no problem mixing up with abbr
as AbbrDef shows, and a definition
with a title works over several lines, just like definitions over multiple lines.
Dahut
interface
This is a simple example of the way in which Web IDL [WEBIDL] interfaces are created. This one is for
the Dahut
interface.
[Constructor]
interface Dahut : Mammal, Cryptoid {
readonly attribute DOMString chirality;
attribute unsigned long age;
Dahut
turnAround (in float angle, in boolean fall);
unsigned long trip ();
void yell ([AllowAny] in unsigned long volume, [TreatNullAs=EmptyString] in DOMString sentence);
};
age
of type unsigned longchirality
of type DOMString, readonlytrip
unsigned long
turnAround
Parameter | Type | Nullable | Optional | Description |
---|---|---|---|---|
angle | float | ✘ | ✘ | |
fall | boolean | ✘ | ✘ |
Dahut
yell
Parameter | Type | Nullable | Optional | Description |
---|---|---|---|---|
volume | unsigned long | ✘ | ✘ | |
sentence | DOMString | ✘ | ✘ |
void
One can trivially make references to any specification, say for instance [WIDGETS], [WICD], and even in a normative way [REX] or [SVGMOBILE12]. It's all about I18N, [ZHMARK].
This section has an h2
title in the original source.
This section has an h2
title in the original source.
This section has an h2
title in the original source.
This section has an h2
title in the original source.
This section has an h2
title in the original source.
This section has an h2
title in the original source.
Including other data is easy! This sentence came from an external file.
The example below is from an external file:
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" > <xs:attribute name="data-include" type="xs:string"/> <xs:attribute name="data-oninclude" type="xs:ID"/> </xs:schema>
Transforming content is also easy! this text is hilighted by being wrapped in an 'em'.
Many thanks to Marcos Cáceres for moral support, and to Bert Bos and Geoffrey Sneddon for their tools from which I pilfered joyfully.