Re: XForms 2.0 schema [script action]

Attached is a xforms-nons-20.rnc including this and all previous changes.
In http://www.w3.org/MarkUp/Forms/wiki/XForms-nons-20.rnc

Change as follows to add a script action:

--- a/xforms-nons-20.rnc    Wed Apr 18 11:32:26 2012 -0700
+++ b/xforms-nons-20.rnc    Wed Apr 18 11:36:35 2012 -0700
@@ -511,6 +511,14 @@
    attribute case { IDREF-avt }?,
    xforms.actions.attrib
  xforms.toggle.content = element case { xforms.ValueTemplate.IDREF }?
+xforms.script = element script  { xforms.script.attrib, 
xforms.script.content }
+xforms.script.attrib =
+  xforms.Common.attrib,
+  attribute type { mediatype.datatype.nocharset },
+  attribute charset { mediatype.charset }?,
+  xforms.Linking.attrib,
+  xforms.actions.attrib
+xforms.script.content = text
  xforms.message =
    element message { xforms.message.attrib, xforms.message.content }
  xforms.message.attrib =
@@ -538,6 +546,7 @@
     | xforms.delete
     | xforms.setindex
     | xforms.toggle
+   | xforms.script
     | xforms.message)*
  xforms.actions.attrib =
    xforms.Events.attrib,


The definition xforms.script is remarkably similar to the 
function/script definition xforms.function.script, but the definition is 
kept separate for the following reasons:
1. The attributes are different; action/script attributes ev:@*, @if, 
@while, @iterate, and those are not allowed on function/script.
2. The action/script content has fewer restrictions on its semantics (in 
particular side effects) than functions/script.

Leigh.

Received on Wednesday, 18 April 2012 18:46:35 UTC