Commit 2be1cf63 authored by Wendell Piez's avatar Wendell Piez

Testing pipeline process updates

parent dd942e85
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" xmlns:c="http://www.w3.org/ns/xproc-step"
xmlns:c="http://www.w3.org/ns/xproc-step" version="1.0" version="1.0" xmlns:xsw="http://coko.foundation/xsweet" type="xsw:docx-extract-and-refine"
xmlns:xsw="http://coko.foundation/xsweet" name="docx-extract-and-refine">
type="xsw:docx-extract-and-refine" name="docx-extract-and-refine">
<p:input port="parameters" kind="parameter"/> <p:input port="parameters" kind="parameter"/>
<p:option name="docx-file-uri" required="true"/> <p:option name="docx-file-uri" required="true"/>
<p:output port="_Z_FINAL"> <p:output port="_Z_FINAL">
<p:pipe port="result" step="final"/> <p:pipe port="result" step="final"/>
</p:output> </p:output>
...@@ -20,48 +19,47 @@ ...@@ -20,48 +19,47 @@
<p:output port="_C_RINSED"> <p:output port="_C_RINSED">
<p:pipe port="result" step="rinsed"/> <p:pipe port="result" step="rinsed"/>
</p:output> </p:output>
<p:output port="_D1_LINEBROKEN">
<p:output port="_D1_UCP-TEXT-MACROS">
<p:pipe port="result" step="ucp-macros"/>
</p:output>
<p:output port="_D2_UCP-MAPPINGS">
<p:pipe port="result" step="ucp-adjusted"/>
</p:output>
<p:output port="_E1_LINEBROKEN">
<p:pipe port="_A_linebroken" step="editoria-prep"/> <p:pipe port="_A_linebroken" step="editoria-prep"/>
</p:output> </p:output>
<p:output port="_D2_EDITORIA-MAPPED"> <p:output port="_E2_EDITORIA-MAPPED">
<p:pipe port="_C_mapping" step="editoria-prep"/> <p:pipe port="_C_mapping" step="editoria-prep"/>
</p:output> </p:output>
<p:output port="_D3_EDITORIA-CLEANUP"> <p:output port="_E3_EDITORIA-CLEANUP">
<p:pipe port="_D_cleanup" step="editoria-prep"/> <p:pipe port="_D_cleanup" step="editoria-prep"/>
</p:output> </p:output>
<p:output port="_D4_EDITORIA-READY"> <p:output port="_E4_EDITORIA-READY">
<p:pipe port="_Z_FINAL" step="editoria-prep"/> <p:pipe port="_Z_FINAL" step="editoria-prep"/>
</p:output> </p:output>
<p:serialization port="_Z_FINAL" indent="true" omit-xml-declaration="true"/> <p:serialization port="_Z_FINAL" indent="true" omit-xml-declaration="true"/>
<p:serialization port="_A_XSWEET_FINAL" indent="true" omit-xml-declaration="true"/> <p:serialization port="_A_XSWEET_FINAL" indent="true" omit-xml-declaration="true"/>
<p:serialization port="_B_HEADERS-PROMOTED" indent="true" omit-xml-declaration="true"/> <p:serialization port="_B_HEADERS-PROMOTED" indent="true" omit-xml-declaration="true"/>
<p:serialization port="_C_RINSED" indent="true" omit-xml-declaration="true"/> <p:serialization port="_C_RINSED" indent="true" omit-xml-declaration="true"/>
<p:serialization <p:serialization port="_D1_UCP-TEXT-MACROS" indent="true" omit-xml-declaration="true"/>
port="_D1_LINEBROKEN" <p:serialization port="_D2_UCP-MAPPINGS" indent="true" omit-xml-declaration="true"/>
indent="true"
omit-xml-declaration="true"/> <p:serialization port="_E1_LINEBROKEN" indent="true" omit-xml-declaration="true"/>
<p:serialization <p:serialization port="_E2_EDITORIA-MAPPED" indent="true" omit-xml-declaration="true"/>
port="_D2_EDITORIA-MAPPED" <p:serialization port="_E3_EDITORIA-CLEANUP" indent="true" omit-xml-declaration="true"/>
indent="true" <p:serialization port="_E4_EDITORIA-READY" indent="true" omit-xml-declaration="true"/>
omit-xml-declaration="true"/>
<p:serialization
port="_D3_EDITORIA-CLEANUP"
indent="true"
omit-xml-declaration="true"/>
<p:serialization
port="_D4_EDITORIA-READY"
indent="true"
omit-xml-declaration="true"/>
<!--<p:import href="docx-extract/docx-document-production.xpl"/>--> <!--<p:import href="docx-extract/docx-document-production.xpl"/>-->
<p:import href="../XSweet/applications/docx-extract/docx-document-production.xpl"/> <p:import href="../XSweet/applications/docx-extract/docx-document-production.xpl"/>
<p:import href="../HTMLevator/applications/header-promote/html-header-promote.xpl"/> <p:import href="../HTMLevator/applications/header-promote/html-header-promote.xpl"/>
<p:import href="xsweet-editoria-filter.xpl"/> <p:import href="xsweet-editoria-filter.xpl"/>
<p:variable name="document-path" select="concat('jar:',$docx-file-uri,'!/word/document.xml')"/> <p:variable name="document-path" select="concat('jar:',$docx-file-uri,'!/word/document.xml')"/>
<!--<p:variable name="document-xml" select="doc($document-path)"/>--> <!--<p:variable name="document-xml" select="doc($document-path)"/>-->
<!-- Validate HTML5 results here: http://validator.w3.org/nu/ --> <!-- Validate HTML5 results here: http://validator.w3.org/nu/ -->
...@@ -69,20 +67,38 @@ ...@@ -69,20 +67,38 @@
<p:load> <p:load>
<p:with-option name="href" select="$document-path"/> <p:with-option name="href" select="$document-path"/>
</p:load> </p:load>
<xsw:docx-document-production name="document-production"/> <xsw:docx-document-production name="document-production"/>
<xsw:html-header-promote name="header-promote"/> <xsw:html-header-promote name="header-promote"/>
<p:xslt name="rinsed"> <p:xslt name="rinsed">
<p:input port="stylesheet"> <p:input port="stylesheet">
<p:document href="../XSweet/applications/html-polish/final-rinse.xsl"/> <p:document href="../XSweet/applications/html-polish/final-rinse.xsl"/>
</p:input> </p:input>
</p:xslt> </p:xslt>
<p:xslt name="hyperlinked">
<p:input port="stylesheet">
<p:document href="../HTMLevator/applications/local-fixup/hyperlink-inferencer.xsl"/>
</p:input>
</p:xslt>
<p:xslt name="ucp-macros">
<p:input port="stylesheet">
<p:document href="../HTMLevator/applications/local-fixup/ucp-text-macros.xsl"/>
</p:input>
</p:xslt>
<p:xslt name="ucp-adjusted">
<p:input port="stylesheet">
<p:document href="../HTMLevator/applications/local-fixup/ucp-mappings.xsl"/>
</p:input>
</p:xslt>
<xsw:xsweet-editoria-filter name="editoria-prep"/> <xsw:xsweet-editoria-filter name="editoria-prep"/>
<p:identity name="final"/> <p:identity name="final"/>
</p:declare-step> </p:declare-step>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" xmlns:c="http://www.w3.org/ns/xproc-step"
xmlns:c="http://www.w3.org/ns/xproc-step" version="1.0" version="1.0" xmlns:xsw="http://coko.foundation/xsweet" type="xsw:docx-extract-and-refine"
xmlns:xsw="http://coko.foundation/xsweet" name="docx-extract-and-refine">
type="xsw:docx-extract-and-refine" name="docx-extract-and-refine">
<p:input port="parameters" kind="parameter"/> <p:input port="parameters" kind="parameter"/>
<p:option name="docx-file-uri" required="true"/> <p:option name="docx-file-uri" required="true"/>
<p:output port="_Z_FINAL"> <p:output port="_Z_FINAL">
<p:pipe port="result" step="final"/> <p:pipe port="result" step="final"/>
</p:output> </p:output>
<p:output port="_A_EXTRACTED"> <p:output port="_A_XSWEET_FINAL">
<p:pipe port="_Z_FINAL" step="document-production"/> <p:pipe port="_Z_FINAL" step="document-production"/>
</p:output> </p:output>
<p:output port="_B_HEADERS-PROMOTED"> <p:output port="_B_HEADERS-PROMOTED">
...@@ -20,23 +19,47 @@ ...@@ -20,23 +19,47 @@
<p:output port="_C_RINSED"> <p:output port="_C_RINSED">
<p:pipe port="result" step="rinsed"/> <p:pipe port="result" step="rinsed"/>
</p:output> </p:output>
<p:output port="_D_EDITORIA-READY">
<p:output port="_D1_UCP-TEXT-MACROS">
<p:pipe port="result" step="ucp-macros"/>
</p:output>
<p:output port="_D2_UCP-MAPPINGS">
<p:pipe port="result" step="ucp-adjusted"/>
</p:output>
<p:output port="_E1_LINEBROKEN">
<p:pipe port="_A_linebroken" step="editoria-prep"/>
</p:output>
<p:output port="_E2_EDITORIA-MAPPED">
<p:pipe port="_C_mapping" step="editoria-prep"/>
</p:output>
<p:output port="_E3_EDITORIA-CLEANUP">
<p:pipe port="_D_cleanup" step="editoria-prep"/>
</p:output>
<p:output port="_E4_EDITORIA-READY">
<p:pipe port="_Z_FINAL" step="editoria-prep"/> <p:pipe port="_Z_FINAL" step="editoria-prep"/>
</p:output> </p:output>
<p:serialization port="_Z_FINAL" indent="false" omit-xml-declaration="true"/> <p:serialization port="_Z_FINAL" indent="false" omit-xml-declaration="true"/>
<p:serialization port="_A_EXTRACTED" indent="false" omit-xml-declaration="true"/> <p:serialization port="_A_XSWEET_FINAL" indent="false" omit-xml-declaration="true"/>
<p:serialization port="_B_HEADERS-PROMOTED" indent="false" omit-xml-declaration="true"/> <p:serialization port="_B_HEADERS-PROMOTED" indent="false" omit-xml-declaration="true"/>
<p:serialization port="_C_RINSED" indent="false" omit-xml-declaration="true"/> <p:serialization port="_C_RINSED" indent="false" omit-xml-declaration="true"/>
<p:serialization port="_D_EDITORIA-READY" indent="false" omit-xml-declaration="true"/>
<p:serialization port="_D1_UCP-TEXT-MACROS" indent="false" omit-xml-declaration="true"/>
<p:serialization port="_D2_UCP-MAPPINGS" indent="false" omit-xml-declaration="true"/>
<p:serialization port="_E1_LINEBROKEN" indent="false" omit-xml-declaration="true"/>
<p:serialization port="_E2_EDITORIA-MAPPED" indent="false" omit-xml-declaration="true"/>
<p:serialization port="_E3_EDITORIA-CLEANUP" indent="false" omit-xml-declaration="true"/>
<p:serialization port="_E4_EDITORIA-READY" indent="false" omit-xml-declaration="true"/>
<!--<p:import href="docx-extract/docx-document-production.xpl"/>--> <!--<p:import href="docx-extract/docx-document-production.xpl"/>-->
<p:import href="../XSweet/applications/docx-extract/docx-document-production.xpl"/> <p:import href="../XSweet/applications/docx-extract/docx-document-production.xpl"/>
<p:import href="../XSweet/applications/header-promote/html-header-promote.xpl"/> <p:import href="../HTMLevator/applications/header-promote/html-header-promote.xpl"/>
<p:import href="xsweet-editoria-filter.xpl"/> <p:import href="xsweet-editoria-filter.xpl"/>
<p:variable name="document-path" select="concat('jar:',$docx-file-uri,'!/word/document.xml')"/> <p:variable name="document-path" select="concat('jar:',$docx-file-uri,'!/word/document.xml')"/>
<!--<p:variable name="document-xml" select="doc($document-path)"/>--> <!--<p:variable name="document-xml" select="doc($document-path)"/>-->
<!-- Validate HTML5 results here: http://validator.w3.org/nu/ --> <!-- Validate HTML5 results here: http://validator.w3.org/nu/ -->
...@@ -44,20 +67,38 @@ ...@@ -44,20 +67,38 @@
<p:load> <p:load>
<p:with-option name="href" select="$document-path"/> <p:with-option name="href" select="$document-path"/>
</p:load> </p:load>
<xsw:docx-document-production name="document-production"/> <xsw:docx-document-production name="document-production"/>
<xsw:html-header-promote name="header-promote"/> <xsw:html-header-promote name="header-promote"/>
<p:xslt name="rinsed"> <p:xslt name="rinsed">
<p:input port="stylesheet"> <p:input port="stylesheet">
<p:document href="../XSweet/applications/html-polish/final-rinse.xsl"/> <p:document href="../XSweet/applications/html-polish/final-rinse.xsl"/>
</p:input> </p:input>
</p:xslt> </p:xslt>
<p:xslt name="hyperlinked">
<p:input port="stylesheet">
<p:document href="../HTMLevator/applications/local-fixup/hyperlink-inferencer.xsl"/>
</p:input>
</p:xslt>
<p:xslt name="ucp-macros">
<p:input port="stylesheet">
<p:document href="../HTMLevator/applications/local-fixup/ucp-text-macros.xsl"/>
</p:input>
</p:xslt>
<p:xslt name="ucp-adjusted">
<p:input port="stylesheet">
<p:document href="../HTMLevator/applications/local-fixup/ucp-mappings.xsl"/>
</p:input>
</p:xslt>
<xsw:xsweet-editoria-filter name="editoria-prep"/> <xsw:xsweet-editoria-filter name="editoria-prep"/>
<p:identity name="final"/> <p:identity name="final"/>
</p:declare-step> </p:declare-step>
\ No newline at end of file
...@@ -25,9 +25,6 @@ ...@@ -25,9 +25,6 @@
<p:output port="_D_cleanup" primary="false"> <p:output port="_D_cleanup" primary="false">
<p:pipe port="result" step="editoria-reduce"/> <p:pipe port="result" step="editoria-reduce"/>
</p:output> </p:output>
<p:output port="_E_tuneup" primary="false">
<p:pipe port="result" step="editoria-tune"/>
</p:output>
<p:serialization port="_Z_FINAL" indent="true" omit-xml-declaration="true"/> <p:serialization port="_Z_FINAL" indent="true" omit-xml-declaration="true"/>
...@@ -60,13 +57,6 @@ ...@@ -60,13 +57,6 @@
</p:input> </p:input>
</p:xslt> </p:xslt>
<!-- Final "tuneup" including local editorial pre-processes / macros. -->
<p:xslt name="editoria-tune">
<p:input port="stylesheet">
<p:document href="editoria-tune.xsl"/>
</p:input>
</p:xslt>
<p:identity name="final"/> <p:identity name="final"/>
</p:declare-step> </p:declare-step>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment