Revision: 10350
Author:   gwt.mirror...@gmail.com
Date:     Sun Jun 19 21:04:08 2011
Log:      Update gwt-module.dtd:
- Add support for set-property-fallback, e.g.
<set-property-fallback name="locale" value="en"/>
- Add support for fallback-value attribute to extend-property, e.g.
<extend-property name="user.agent" values="ie9" fallback-value="ie8" />
- Allow collapse-all-properties, e.g.
<collapse-all-properties/>

Fixes issues: 4787, 5325, 5694

Review at http://gwt-code-reviews.appspot.com/1466801

Review by: rj...@google.com
http://code.google.com/p/google-web-toolkit/source/detail?r=10350

Modified:
 /trunk/distro-source/core/src/gwt-module.dtd

=======================================
--- /trunk/distro-source/core/src/gwt-module.dtd        Mon Dec 20 11:48:24 2010
+++ /trunk/distro-source/core/src/gwt-module.dtd        Sun Jun 19 21:04:08 2011
@@ -16,7 +16,7 @@
 <!-- The module root element -->
 <!ELEMENT module (inherits | source | public | super-source | entry-point |
   stylesheet | script | servlet | replace-with | generate-with |
-  define-property | extend-property | set-property |
+ define-property | extend-property | set-property | set-property-fallback |
   clear-configuration-property | define-configuration-property |
   extend-configuration-property | set-configuration-property |
   property-provider | define-linker | add-linker)*>
@@ -104,6 +104,8 @@
 <!--                 ^^^ Commonly-used elements ^^^                -->
 <!--                VVV Deferred binding elements VVV              -->

+<!-- All possible predicates -->
+<!ENTITY % predicates "when-property-is | when-type-assignable | when-type-is | all | any | none"> <!-- Define a property and allowable values (comma-separated identifiers) -->
 <!ELEMENT define-property EMPTY>
 <!ATTLIST define-property
@@ -117,11 +119,17 @@
        is-multi-valued CDATA #REQUIRED
 >
 <!-- Set the value of a previously-defined property -->
-<!ELEMENT set-property EMPTY>
+<!ELEMENT set-property (%predicates;)*>
 <!ATTLIST set-property
        name CDATA #REQUIRED
        value CDATA #REQUIRED
 >
+<!-- Set the value of a previously-defined property -->
+<!ELEMENT set-property-fallback EMPTY>
+<!ATTLIST set-property-fallback
+       name CDATA #REQUIRED
+       value CDATA #REQUIRED
+>
 <!-- Set the value of a configuration property -->
 <!ELEMENT set-configuration-property EMPTY>
 <!ATTLIST set-configuration-property
@@ -133,6 +141,7 @@
 <!ATTLIST extend-property
        name CDATA #REQUIRED
        values CDATA #REQUIRED
+       fallback-value CDATA #IMPLIED
 >
 <!-- Collapse property values to produce soft permutations -->
 <!ELEMENT collapse-property EMPTY>
@@ -162,8 +171,6 @@
        name CDATA #REQUIRED
        generator CDATA #IMPLIED
 >
-<!-- All possible predicates -->
-<!ENTITY % predicates "when-property-is | when-type-assignable | when-type-is | all | any | none">
 <!-- Deferred binding assignment to substitute a named class -->
 <!ELEMENT replace-with (%predicates;)*>
 <!ATTLIST replace-with

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to