-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploying to gh-pages from @ xproc/3.0-steps@a490406 🚀
- Loading branch information
Showing
211 changed files
with
53,541 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<p:library xmlns:p="http://www.w3.org/ns/xproc" | ||
xmlns:e="http://www.w3.org/1999/XSL/Spec/ElementSyntax" | ||
version="3.0"> | ||
<p:declare-step type="p:directory-list" xml:id="directory-list"> | ||
<p:output port="result" content-types="application/xml"/> | ||
<p:option name="path" required="true" as="xs:anyURI"/> | ||
<p:option name="detailed" as="xs:boolean" select="false()"/> | ||
<p:option name="max-depth" as="xs:string?" select="'1'"/> | ||
<p:option name="include-filter" as="xs:string*"/> | ||
<p:option name="exclude-filter" as="xs:string*"/> | ||
<p:option name="override-content-types" as="array(array(xs:string))?"/> | ||
</p:declare-step> | ||
<p:declare-step type="p:file-copy" xml:id="file-copy"> | ||
<p:output port="result" primary="true" content-types="application/xml"/> | ||
<p:option name="href" required="true" as="xs:anyURI"/> | ||
<p:option name="target" required="true" as="xs:anyURI"/> | ||
<p:option name="fail-on-error" as="xs:boolean" select="true()"/> | ||
<p:option name="overwrite" as="xs:boolean" select="true()"/> | ||
</p:declare-step> | ||
<p:declare-step type="p:file-delete" xml:id="file-delete"> | ||
<p:output port="result" primary="true" content-types="application/xml"/> | ||
<p:option name="href" required="true" as="xs:anyURI"/> | ||
<p:option name="recursive" as="xs:boolean" select="false()"/> | ||
<p:option name="fail-on-error" as="xs:boolean" select="true()"/> | ||
</p:declare-step> | ||
<p:declare-step type="p:file-info" xml:id="file-info"> | ||
<p:output port="result" primary="true" content-types="application/xml"/> | ||
<p:option name="href" required="true" as="xs:anyURI"/> | ||
<p:option name="fail-on-error" as="xs:boolean" select="true()"/> | ||
<p:option name="override-content-types" as="array(array(xs:string))?"/> | ||
</p:declare-step> | ||
<p:declare-step type="p:file-mkdir" xml:id="file-mkdir"> | ||
<p:output port="result" primary="true" content-types="application/xml"/> | ||
<p:option name="href" required="true" as="xs:anyURI"/> | ||
<p:option name="fail-on-error" as="xs:boolean" select="true()"/> | ||
</p:declare-step> | ||
<p:declare-step type="p:file-move" xml:id="file-move"> | ||
<p:output port="result" primary="true" content-types="application/xml"/> | ||
<p:option name="href" required="true" as="xs:anyURI"/> | ||
<p:option name="target" required="true" as="xs:anyURI"/> | ||
<p:option name="fail-on-error" as="xs:boolean" select="true()"/> | ||
</p:declare-step> | ||
<p:declare-step type="p:file-create-tempfile" xml:id="file-create-tempfile"> | ||
<p:output port="result" primary="true" content-types="application/xml"/> | ||
<p:option name="href" as="xs:anyURI?"/> | ||
<p:option name="suffix" as="xs:string?"/> | ||
<p:option name="prefix" as="xs:string?"/> | ||
<p:option name="delete-on-exit" as="xs:boolean" select="false()"/> | ||
<p:option name="fail-on-error" as="xs:boolean" select="true()"/> | ||
</p:declare-step> | ||
<p:declare-step type="p:file-touch" xml:id="file-touch"> | ||
<p:output port="result" primary="true" content-types="application/xml"/> | ||
<p:option name="href" required="true" as="xs:anyURI"/> | ||
<p:option name="timestamp" as="xs:dateTime?"/> | ||
<p:option name="fail-on-error" as="xs:boolean" select="true()"/> | ||
</p:declare-step> | ||
</p:library> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
default namespace p = "http://www.w3.org/ns/xproc" | ||
namespace local = "" | ||
|
||
# This schema could be made more constrained. | ||
|
||
Step = Step-directory-list | Step-file-copy | Step-file-delete | Step-file-info | Step-file-mkdir | Step-file-move | Step-file-create-tempfile | Step-file-touch | ||
|
||
Step-directory-list = | ||
element directory-list { | ||
name.ncname.attr?, | ||
common.attributes, | ||
use-when.attr?, | ||
step.attributes, | ||
attribute path { avt.datatype }?, | ||
attribute detailed { avt.datatype }?, | ||
attribute max-depth { avt.datatype }?, | ||
attribute include-filter { avt.datatype }?, | ||
attribute exclude-filter { avt.datatype }?, | ||
attribute override-content-types { avt.datatype }?, | ||
(WithOption* & (Documentation|PipeInfo)*) | ||
} | ||
|
||
Step-file-copy = | ||
element file-copy { | ||
name.ncname.attr?, | ||
common.attributes, | ||
use-when.attr?, | ||
step.attributes, | ||
attribute href { avt.datatype }?, | ||
attribute target { avt.datatype }?, | ||
attribute fail-on-error { avt.datatype }?, | ||
attribute overwrite { avt.datatype }?, | ||
(WithOption* & (Documentation|PipeInfo)*) | ||
} | ||
|
||
Step-file-delete = | ||
element file-delete { | ||
name.ncname.attr?, | ||
common.attributes, | ||
use-when.attr?, | ||
step.attributes, | ||
attribute href { avt.datatype }?, | ||
attribute recursive { avt.datatype }?, | ||
attribute fail-on-error { avt.datatype }?, | ||
(WithOption* & (Documentation|PipeInfo)*) | ||
} | ||
|
||
Step-file-info = | ||
element file-info { | ||
name.ncname.attr?, | ||
common.attributes, | ||
use-when.attr?, | ||
step.attributes, | ||
attribute href { avt.datatype }?, | ||
attribute fail-on-error { avt.datatype }?, | ||
attribute override-content-types { avt.datatype }?, | ||
(WithOption* & (Documentation|PipeInfo)*) | ||
} | ||
|
||
Step-file-mkdir = | ||
element file-mkdir { | ||
name.ncname.attr?, | ||
common.attributes, | ||
use-when.attr?, | ||
step.attributes, | ||
attribute href { avt.datatype }?, | ||
attribute fail-on-error { avt.datatype }?, | ||
(WithOption* & (Documentation|PipeInfo)*) | ||
} | ||
|
||
Step-file-move = | ||
element file-move { | ||
name.ncname.attr?, | ||
common.attributes, | ||
use-when.attr?, | ||
step.attributes, | ||
attribute href { avt.datatype }?, | ||
attribute target { avt.datatype }?, | ||
attribute fail-on-error { avt.datatype }?, | ||
(WithOption* & (Documentation|PipeInfo)*) | ||
} | ||
|
||
Step-file-create-tempfile = | ||
element file-create-tempfile { | ||
name.ncname.attr?, | ||
common.attributes, | ||
use-when.attr?, | ||
step.attributes, | ||
attribute href { avt.datatype }?, | ||
attribute suffix { avt.datatype }?, | ||
attribute prefix { avt.datatype }?, | ||
attribute delete-on-exit { avt.datatype }?, | ||
attribute fail-on-error { avt.datatype }?, | ||
(WithOption* & (Documentation|PipeInfo)*) | ||
} | ||
|
||
Step-file-touch = | ||
element file-touch { | ||
name.ncname.attr?, | ||
common.attributes, | ||
use-when.attr?, | ||
step.attributes, | ||
attribute href { avt.datatype }?, | ||
attribute timestamp { avt.datatype }?, | ||
attribute fail-on-error { avt.datatype }?, | ||
(WithOption* & (Documentation|PipeInfo)*) | ||
} | ||
|
Oops, something went wrong.