Skip to content

Commit

Permalink
Deploying to gh-pages from @ xproc/3.0-steps@a490406 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
ndw committed Aug 14, 2024
1 parent c2b0d45 commit 924a57e
Show file tree
Hide file tree
Showing 211 changed files with 53,541 additions and 0 deletions.
57 changes: 57 additions & 0 deletions pr/609/etc/step-file/library.xml
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>
1,005 changes: 1,005 additions & 0 deletions pr/609/etc/step-file/source.xml

Large diffs are not rendered by default.

108 changes: 108 additions & 0 deletions pr/609/etc/step-file/steps.rnc
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)*)
}

Loading

0 comments on commit 924a57e

Please sign in to comment.