Skip to content

Commit

Permalink
html-chunker has changed into an XProc step
Browse files Browse the repository at this point in the history
Also remove an old comment: html-chunker corrects links (was fixed in
commit 4401d28)
  • Loading branch information
bertfrees committed Oct 1, 2018
1 parent 118d7f1 commit 7e83d5c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 26 deletions.
2 changes: 1 addition & 1 deletion bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
<dependency>
<groupId>org.daisy.pipeline.modules.braille</groupId>
<artifactId>zedai-to-pef</artifactId>
<version>3.3.4</version>
<version>3.3.5-SNAPSHOT</version>
</dependency>
<!--
Third-Party Libraries
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<p:option name="output-dir" required="true"/>
<p:option name="audio" required="false" select="'false'"/>

<p:import href="http://www.daisy.org/pipeline/modules/html-utils/library.xpl"/>
<p:import href="http://www.daisy.org/pipeline/modules/epub3-nav-utils/library.xpl"/>
<p:import href="http://www.daisy.org/pipeline/modules/epub3-ocf-utils/library.xpl"/>
<p:import href="http://www.daisy.org/pipeline/modules/epub3-pub-utils/library.xpl"/>
Expand Down Expand Up @@ -177,24 +178,12 @@
<p:empty/>
</p:input>
</p:xslt>
<p:xslt name="zedai-to-html.html-chunks">
<!--TODO fix links while chunking (see links-to-chunks) -->
<p:input port="stylesheet">
<p:document href="http://www.daisy.org/pipeline/modules/html-utils/html-chunker.xsl"/>
</p:input>
<p:input port="parameters">
<p:empty/>
</p:input>
</p:xslt>
<p:sink/>
<px:html-chunker name="zedai-to-html.html-chunks"/>
<p:for-each name="zedai-to-html.iterate">
<p:output port="fileset" primary="true"/>
<p:output port="html-files" sequence="true">
<p:pipe port="result" step="zedai-to-html.iterate.html"/>
</p:output>
<p:iteration-source>
<p:pipe port="secondary" step="zedai-to-html.html-chunks"/>
</p:iteration-source>
<p:variable name="result-uri" select="base-uri(/*)"/>
<p:identity name="zedai-to-html.iterate.html"/>
<px:fileset-create>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

<p:import href="http://www.daisy.org/pipeline/modules/fileset-utils/library.xpl"/>
<p:import href="http://www.daisy.org/pipeline/modules/common-utils/library.xpl"/>
<p:import href="http://www.daisy.org/pipeline/modules/html-utils/library.xpl"/>

<!--=========================================================================-->
<!-- GET ZEDAI FROM FILESET -->
Expand Down Expand Up @@ -138,18 +139,8 @@
</p:add-attribute>
<p:choose>
<p:when test="$chunk='true'">
<p:output port="result" sequence="true">
<p:pipe port="secondary" step="html-chunks"/>
</p:output>
<p:xslt name="html-chunks">
<p:input port="stylesheet">
<p:document href="http://www.daisy.org/pipeline/modules/html-utils/html-chunker.xsl"/>
</p:input>
<p:input port="parameters">
<p:empty/>
</p:input>
</p:xslt>
<p:sink/>
<p:output port="result" sequence="true"/>
<px:html-chunker/>
</p:when>
<p:otherwise>
<p:output port="result" sequence="true"/>
Expand Down

0 comments on commit 7e83d5c

Please sign in to comment.