OSDN Git Service

XML Schema for layout configurations.
authorRaphael <raphael@google.com>
Thu, 24 Sep 2009 22:38:55 +0000 (15:38 -0700)
committerRaphael <raphael@google.com>
Sun, 27 Sep 2009 23:44:45 +0000 (16:44 -0700)
commitdc17f56fa400db74db926d0c547353b6968b06c0
tree641ce4ae7b3319fec073d8f9e155b73b040ad0a7
parentd884c5ba0ad57633ec710757802e8f1357571c15
XML Schema for layout configurations.

The only changes to the original XML sample:
- the root element is called "layout-configs" (plural for container).

- the <default> and <config> elements must be defined in that order:
 - 0..1 of <default>
   folowed by
 - 1..n of <config>
It's invalid for the <device> node to be empty.

default/config are defined by a <xsd:sequence>, which imposes the
strict ordering. At first I used an <xsd:choice> which does not
impose any ordering but then it becomes possible to define an
empty <device> element. I'd rather live with the strict ordering
(which also makes sense anyway) and enforce non-empty <device>
elements in the schema.

BUG 2138329

Change-Id: I581afb1d72825ae79df00d81c74c80a2a18680ad