idml2xml

Library to convert IDML to Hub XML or to extract tagging from an IDML file

Repository
Git URL https://github.com/transpect/idml2xml.git
SVN URL https://github.com/transpect/idml2xml
Base URI http://transpect.io/idml2xml/

Source ⬇

idml2xml:hub

Import

<p:import href="http://transpect.io/idml2xml/xpl/idml2hub.xpl"/>

Dependencies

Synopsis

<idml2xml:hub xmlns:idml2xml="http://transpect.io/idml2xml">
  <p:input port="xslt-stylesheet"/>
  <p:input port="custom-font-maps" sequence="true" primary="false"/>
  <p:output port="zip-manifest"/>
  <p:output port="Document"/>
  <p:output port="DocumentStoriesSorted"/>
  <p:output port="tagged"/>
  <p:output port="report" sequence="true"/>
  <p:output port="result" primary="true"/>
  <p:option name="idmlfile"/>
  <p:option name="hub-version" required="false" select="'1.2'"/>
  <p:option name="srcpaths" required="false" select="'no'"/>
  <p:option name="all-styles" required="false" select="'no'"/>
  <p:option name="discard-tagging" required="false" select="'yes'"/>
  <p:option name="process-embedded-images" required="false" select="'yes'"/>
  <p:option name="preserve-original-image-refs" required="false" select="'no'"/>
  <p:option name="fixed-layout" required="false" select="'no'"/>
  <p:option name="numeric-font-weight-values" required="false" select="'no'"/>
  <p:option name="hub-other-elementnames-whitelist" required="false" select="''"/>
  <p:option name="output-items-not-on-workspace" required="false" select="'no'"/>
  <p:option name="build-MathML-from-MathTools" required="false" select="'yes'"/>
  <p:option name="debug" required="false" select="'no'"/>
  <p:option name="debug-dir-uri" required="false" select="'debug'"/>
  <p:option name="status-dir-uri" required="false" select="'status'"/>
  <p:option name="fail-on-error" required="false" select="'yes'"/>
  <p:option name="mathtype2mml" required="false" select="'yes+wmf'"/>
  <p:option name="mathtype-source-pi" required="false" select="'no'"/>
  <p:option name="item-not-on-workspace-pt-tolerance" required="false" select="'0.01'"/>
</idml2xml:hub>

idml2xml:modify

Import

<p:import href="http://transpect.io/idml2xml/xpl/idml_modify/idml_modify.xpl"/>

Dependencies

Synopsis

<idml2xml:modify xmlns:idml2xml="http://transpect.io/idml2xml">
  <p:input port="xslt"/>
  <p:input port="xpl"/>
  <p:input port="params" primary="true"/>
  <p:input port="external-sources" sequence="true"/>
  <p:input port="options"/>
  <p:output port="result" primary="true"/>
  <p:output port="modified-idml"/>
  <p:option name="idmlfile" required="true"/>
  <p:option name="debug" required="false" select="'no'"/>
  <p:option name="debug-dir-uri" required="false" select="resolve-uri('debug')"/>
  <p:option name="idml-target-uri" required="false" select="''"/>
  <p:option name="srcpaths" required="false" select="'no'"/>
  <p:option name="hub-version" required="false" select="'1.2'"/>
  <p:option name="status-dir-uri" required="false" select="'status'"/>
  <p:option name="disable-images" required="false" select="'no'"/>
</idml2xml:modify>

idml2xml:single-doc-sorted

The purpose of this XProc pipeline is to produce a single xml document with sorted text frames for schematron checks.

Import

<p:import href="http://transpect.io/idml2xml/xpl/idml_single-doc-sorted.xpl"/>

Dependencies

Synopsis

<idml2xml:single-doc-sorted xmlns:idml2xml="http://transpect.io/idml2xml">
  <p:input port="xslt-stylesheet"/>
  <p:input port="xslt-stylesheet-docsorted2html"/>
  <p:output port="result" primary="true"/>
  <p:output port="result-html"/>
  <p:output port="zip-manifest"/>
  <p:output port="xslt-params"/>
  <p:output port="report" sequence="true"/>
  <p:option name="idmlfile" required="true"/>
  <p:option name="srcpaths" required="false" select="'yes'"/>
  <p:option name="discard-tagging" required="false" select="'no'"/>
  <p:option name="output-items-not-on-workspace" required="false" select="'no'"/>
  <p:option name="debug" required="false" select="'no'"/>
  <p:option name="debug-dir-uri" required="false" select="'debug'"/>
  <p:option name="status-dir-uri" required="false" select="'debug/status'"/>
  <p:option name="fail-on-error" select="'no'"/>
</idml2xml:single-doc-sorted>

idml2xml:single-doc

Import

<p:import href="http://transpect.io/idml2xml/xpl/idml_single-doc.xpl"/>

Dependencies

Synopsis

<idml2xml:single-doc xmlns:idml2xml="http://transpect.io/idml2xml">
  <p:input port="xslt-stylesheet"/>
  <p:output port="result" primary="true"/>
  <p:output port="zip-manifest"/>
  <p:output port="xslt-params"/>
  <p:output port="report" sequence="true"/>
  <p:option name="idmlfile"/>
  <p:option name="hub-version" required="false" select="'1.2'"/>
  <p:option name="srcpaths" required="false" select="'no'"/>
  <p:option name="all-styles" required="false" select="'no'"/>
  <p:option name="discard-tagging" required="false" select="'no'"/>
  <p:option name="process-embedded-images" required="false" select="'yes'"/>
  <p:option name="fixed-layout" required="false" select="'no'"/>
  <p:option name="numeric-font-weight-values" required="false" select="'no'"/>
  <p:option name="preserve-original-image-refs" required="false" select="'no'"/>
  <p:option name="hub-other-elementnames-whitelist" required="false" select="''"/>
  <p:option name="output-items-not-on-workspace" required="false" select="'no'"/>
  <p:option name="debug" required="false" select="'no'"/>
  <p:option name="debug-dir-uri" required="false" select="'debug'"/>
  <p:option name="status-dir-uri" required="false" select="'debug/status'"/>
  <p:option name="item-not-on-workspace-pt-tolerance" required="false" select="'0'"/>
  <p:option name="fail-on-error" select="'no'"/>
</idml2xml:single-doc>

idml2xml:single2tagged

Import

<p:import href="http://transpect.io/idml2xml/xpl/idml_single2tagged.xpl"/>

Dependencies

Synopsis

<idml2xml:single2tagged xmlns:idml2xml="http://transpect.io/idml2xml">
  <p:input port="source" primary="true"/>
  <p:input port="xslt-stylesheet"/>
  <p:input port="xslt-params"/>
  <p:output port="report" sequence="true"/>
  <p:output port="result" primary="true"/>
  <p:output port="DocumentStoriesSorted"/>
  <p:output port="GenerateTagging"/>
  <p:output port="ExtractTagging"/>
  <p:output port="AutoCorrect"/>
  <p:option name="debug" required="false" select="'no'"/>
  <p:option name="debug-dir-uri" required="false" select="resolve-uri('debug')"/>
  <p:option name="fail-on-error" select="'yes'"/>
</idml2xml:single2tagged>

idml2xml:tagged2hub

Import

<p:import href="http://transpect.io/idml2xml/xpl/idml_tagged2hub.xpl"/>

Dependencies

Synopsis

<idml2xml:tagged2hub xmlns:idml2xml="http://transpect.io/idml2xml">
  <p:input port="source" primary="true"/>
  <p:input port="xslt-stylesheet"/>
  <p:input port="xslt-params"/>
  <p:input port="custom-font-maps" sequence="true" primary="false"/>
  <p:output port="report" sequence="true"/>
  <p:output port="result" primary="true"/>
  <p:option name="debug" required="false" select="'no'"/>
  <p:option name="debug-dir-uri" required="false" select="resolve-uri('debug')"/>
  <p:option name="fail-on-error" required="false" select="'yes'"/>
  <p:option name="hub-version" required="false" select="'1.2'"/>
  <p:option name="process-embedded-images" required="false" select="'yes'"/>
  <p:option name="mathtype2mml" required="false" select="'yes'"/>
  <p:option name="mathtype-source-pi" required="false" select="'no'"/>
</idml2xml:tagged2hub>

idml2xml:mathtype2mml

Import

<p:import href="http://transpect.io/idml2xml/xpl/mathtype2mml.xpl"/>

Dependencies

Synopsis

<idml2xml:mathtype2mml xmlns:idml2xml="http://transpect.io/idml2xml">
  <p:input port="source" primary="true"/>
  <p:input port="params"/>
  <p:input port="custom-font-maps" sequence="true" primary="false"/>
  <p:output port="result" primary="true"/>
  <p:output port="report" sequence="true"/>
  <p:option name="debug" required="false" select="'no'"/>
  <p:option name="debug-dir-uri" required="false" select="resolve-uri('debug')"/>
  <p:option name="active" required="false" select="'yes'"/>
  <p:option name="sources" required="false" select="$mathtype2mml"/>
  <p:option name="source-pi" required="false" select="'no'"/>
</idml2xml:mathtype2mml>

GitHub sync date: 2024-04-23+02:00