Skip to content

Commit

Permalink
include prints in default tei report
Browse files Browse the repository at this point in the history
  • Loading branch information
thvitt committed Sep 4, 2018
1 parent fcae011 commit 8aa788d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
18 changes: 12 additions & 6 deletions src/main/xproc/convert-transcripts.xpl
Expand Up @@ -6,7 +6,7 @@

<p:option name="target" select="'../../../target/'"/>
<p:option name="_target" select="resolve-uri($target)"/>
<p:option name="xmlroot" select="'../../../data/xml/transcript'"></p:option>
<p:option name="xmlroot" select="'../../../data/xml'"></p:option>
<p:option name="_xmlroot" select="resolve-uri($xmlroot)"/>

<p:input port="source"><p:empty/></p:input>
Expand All @@ -17,15 +17,21 @@
<p:import href="http://xproc.org/library/recursive-directory-list.xpl"/>
<p:import href="http://xmlcalabash.com/extension/steps/library-1.0.xpl"/>

<l:recursive-directory-list>
<p:with-option name="path" select="$_xmlroot"/>
<!--<p:with-option name="exclude-filter" select="$exclude-filter"/>-->
<l:recursive-directory-list name="transcript">
<p:with-option name="path" select="concat($_xmlroot, '/transcript')"/>
</l:recursive-directory-list>
<l:recursive-directory-list name="print">
<p:with-option name="path" select="concat($_xmlroot, '/print')"/>
</l:recursive-directory-list>


<p:for-each>
<p:iteration-source select="//c:file"/>
<p:iteration-source select="//c:file">
<p:pipe port="result" step="transcript"/>
<p:pipe port="result" step="print"/>
</p:iteration-source>
<p:variable name="filename" select="p:resolve-uri(/c:file/@name)"/>
<p:variable name="out" select="p:resolve-uri(replace($filename, $_xmlroot, 'converted/transcript'), $_target)"/>
<p:variable name="out" select="p:resolve-uri(replace($filename, $_xmlroot, 'converted/'), $_target)"/>

<!-- <cx:message>
<p:with-option name="message" select="concat($filename, ' → ', $out)"></p:with-option>
Expand Down
8 changes: 4 additions & 4 deletions src/main/xproc/validate-all.xpl
Expand Up @@ -42,22 +42,22 @@
<!--<p:with-option name="linkroot" select="'https://faustedition.uni-wuerzburg.de/xml/macrogenesis/'"/>-->
</f:validate-xmls>

<f:validate-xmls report-name="faust-tei" report-title="Converted Transcripts (faust-tei)" linkroot=''>
<f:validate-xmls report-name="faust-tei" report-title="Converted Transcripts and Prints (faust-tei)" linkroot=''>
<p:with-option name="target" select="$_target"/>
<p:with-option name="xmlroot" select="p:resolve-uri('converted', $_target)"/>
<p:with-option name="rng" select="resolve-uri('schema/faust-tei.rng', $_target)"/>
<p:with-option name="schematron" select="resolve-uri('schema/faust-tei.sch', $_target)"/>
<!--<p:with-option name="linkroot" select="'https://faustedition.uni-wuerzburg.de/xml/transcript/'"/>-->
</f:validate-xmls>

<f:validate-xmls report-name="printed_editions_neu" report-title="Printed Editions Neu (printed_editions_neu)" linkroot='prints'>
<!-- <f:validate-xmls report-name="printed_editions_neu" report-title="Converted Prints (faust-tei)" linkroot='prints'>
<p:with-option name="target" select="$_target"/>
<p:with-option name="xmlroot" select="concat($xml, 'print')"/>
<p:with-option name="rng" select="resolve-uri('schema/printed_editions_neu.rng', $_target)"/>
<p:with-option name="schematron" select="resolve-uri('schema/printed_editions_neu.sch', $_target)"/>
<!--<p:with-option name="linkroot" select="'https://faustedition.uni-wuerzburg.de/xml/print/'"/>-->
<!-\-<p:with-option name="linkroot" select="'https://faustedition.uni-wuerzburg.de/xml/print/'"/>-\->
</f:validate-xmls>

-->
</p:group>

<cx:message>
Expand Down

0 comments on commit 8aa788d

Please sign in to comment.