Document Templating Steps in the RNC schemas for XProc

  Hi,

  The schemas for XProc (from appendix D in the spec [1]) do not
include (of course) the Document Templating Steps defined in [2].
I added them to my local copy of the RNC schema, in order to use
them with Emacs' nXML.  I am not sure whether those schema should
be updated in a public area, but just in case, a diff is at the
end of this email.

  Regards,

-- 
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/

[1] http://w3.org/TR/xproc/#language-summary
[2] http://w3.org/TR/xproc-template/


--- steps.rnc.ORIG	2011-09-21 23:12:35.000000000 +0200
+++ steps.rnc	2011-09-21 23:05:52.000000000 +0200
@@ -3,7 +3,7 @@

 # This schema could be made more constrained.

-StandardStep = Step-add-attribute | Step-add-xml-base | Step-compare
| Step-count | Step-delete | Step-directory-list | Step-error |
Step-escape-markup | Step-filter | Step-http-request | Step-identity |
Step-insert | Step-label-elements | Step-load |
Step-make-absolute-uris | Step-namespace-rename | Step-pack |
Step-parameters | Step-rename | Step-replace | Step-set-attributes |
Step-sink | Step-split-sequence | Step-store | Step-string-replace |
Step-unescape-markup | Step-unwrap | Step-wrap | Step-wrap-sequence |
Step-xinclude | Step-xslt | Step-exec | Step-hash | Step-uuid |
Step-validate-with-relax-ng | Step-validate-with-schematron |
Step-validate-with-xml-schema | Step-www-form-urldecode |
Step-www-form-urlencode | Step-xquery | Step-xsl-formatter
+StandardStep = Step-add-attribute | Step-add-xml-base | Step-compare
| Step-count | Step-delete | Step-directory-list | Step-error |
Step-escape-markup | Step-filter | Step-http-request | Step-identity |
Step-insert | Step-label-elements | Step-load |
Step-make-absolute-uris | Step-namespace-rename | Step-pack |
Step-parameters | Step-rename | Step-replace | Step-set-attributes |
Step-sink | Step-split-sequence | Step-store | Step-string-replace |
Step-unescape-markup | Step-unwrap | Step-wrap | Step-wrap-sequence |
Step-xinclude | Step-xslt | Step-exec | Step-hash | Step-uuid |
Step-validate-with-relax-ng | Step-validate-with-schematron |
Step-validate-with-xml-schema | Step-www-form-urldecode |
Step-www-form-urlencode | Step-xquery | Step-xsl-formatter |
Step-in-scope-names | Step-template

 Step-add-attribute =
   element add-attribute {
@@ -485,3 +485,21 @@
     attribute content-type { xsd:string }?,
     (InputConnection* & WithOption* & Log* & WithParam* &
(Documentation|PipeInfo)*)
   }
+
+Step-in-scope-names =
+  element in-scope-names {
+    name.ncname.attr?,
+    common.attributes,
+    use-when.attr?,
+    (Log* & (Documentation|PipeInfo)*)
+  }
+
+Step-template =
+  element template {
+    name.ncname.attr?,
+    common.attributes,
+    use-when.attr?,
+    attribute href { xsd:anyURI }?,
+    attribute content-type { xsd:string }?,
+    (InputConnection* & Log* & WithParam* & (Documentation|PipeInfo)*)
+  }

Received on Wednesday, 21 September 2011 21:16:09 UTC