transpect / hub2docx-lib

BSD 2-Clause "Simplified" License
1 stars 1 forks source link

using this module -> hub2docx-lib getting issue while converting xml to docx #5

Open eshanroxx opened 3 years ago

eshanroxx commented 3 years ago

I have setup transpect and trying to run the below command but getting issue

.\calabash\calabash.bat -i source=table.xml -o result=table.docx .\hub2docx\xpl\hub2docx.xpl file=normal.docx

E:\IFU_POC\Transpect_io_Setup>java -cp E:/IFU_POC/Transpect_io_Setup/calabash//../a9s/common/saxon/;E:/IFU_POC/Transpect_io_Setup/calabash//../saxon/saxon9ee.jar;E:/IFU_POC/Transpect_io_Setup/calabash//../saxon/saxon9pe.jar;E:/IFU_POC/Transpect_io_Setup/calabash//../saxon/saxon9he.jar;E:/IFU_POC/Transpect_io_Setup/calabash/saxon/saxon9he.jar;E:/IFU_POC/Transpect_io_Setup/calabash//extensions/transpect/rng-extension;E:/IFU_POC/Transpect_io_Setup/calabash//extensions/transpect/rng-extension/lib/;E:/IFU_POC/Transpect_io_Setup/calabash/distro/lib/;E:/IFU_POC/Transpect_io_Setup/calabash/distro/lib/xmlresolver-1.0.4.jar;E:/IFU_POC/Transpect_io_Setup/calabash/distro/lib/commons-fileupload-1.3.3.jar;E:/IFU_POC/Transpect_io_Setup/calabash/distro/lib/classindex-3.3.jar;E:/IFU_POC/Transpect_io_Setup/calabash/distro/lib/htmlparser-1.4.jar;E:/IFU_POC/Transpect_io_Setup/calabash//extensions/calabash/lib/xmlcalabash1-sendmail-1.1.4.jar;E:/IFU_POC/Transpect_io_Setup/calabash//extensions/calabash/lib/javax.mail.jar;E:/IFU_POC/Transpect_io_Setup/calabash/distro/xmlcalabash-1.2.1-99.jar;E:/IFU_POC/Transpect_io_Setup/calabash//extensions/transpect/;E:/IFU_POC/Transpect_io_Setup/calabash//extensions/transpect/javascript-extension;E:/IFU_POC/Transpect_io_Setup/calabash//extensions/transpect/javascript-extension/lib/;E:/IFU_POC/Transpect_io_Setup/calabash//extensions/transpect/epubcheck-extension/;E:/IFU_POC/Transpect_io_Setup/calabash//extensions/transpect/epubcheck-extension/lib/;E:/IFU_POC/Transpect_io_Setup/calabash//extensions/transpect/image-transform-extension;E:/IFU_POC/Transpect_io_Setup/calabash//extensions/transpect/image-transform-extension/lib/;E:/IFU_POC/Transpect_io_Setup/calabash//extensions/transpect/image-props-extension;E:/IFU_POC/Transpect_io_Setup/calabash//extensions/transpect/image-props-extension/lib/;E:/IFU_POC/Transpect_io_Setup/calabash//extensions/transpect/unzip-extension;E:/IFU_POC/Transpect_io_Setup/calabash//extensions/transpect/mathtype-extension;E:/IFU_POC/Transpect_io_Setup/calabash//extensions/transpect/mathtype-extension/lib/;E:/IFU_POC/Transpect_io_Setup/calabash//extensions/transpect/mathtype-extension/ruby/bindata-2.3.5/lib;E:/IFU_POC/Transpect_io_Setup/calabash//extensions/transpect/mathtype-extension/ruby/mathtype-0.0.7.5/lib;E:/IFU_POC/Transpect_io_Setup/calabash//extensions/transpect/mathtype-extension/ruby/nokogiri-1.7.0.1-java/lib;E:/IFU_POC/Transpect_io_Setup/calabash//extensions/transpect/mathtype-extension/ruby/ruby-ole-1.2.12.1/lib;E:/IFU_POC/Transpect_io_Setup/calabash//extensions/transpect/svn-extension;E:/IFU_POC/Transpect_io_Setup/calabash//lib/javax.activation.jar -Dfile.encoding=UTF8 -Dsun.jnu.encoding=UTF-8 -Dxml.catalog.files="file:///E:/IFU_POC/Transpect_io_Setup/calabash/xmlcatalog/catalog.xml" -Djdk.xml.entityExpansionLimit=2147483647 -Xmx1024m -Xss1024k com.xmlcalabash.drivers.Main -E org.xmlresolver.Resolver -U org.xmlresolver.Resolver -c E:/IFU_POC/Transpect_io_Setup/calabash/extensions/transpect/transpect-config.xml -i source=table.xml -o result=table.docx .\hub2docx\xpl\hub2docx.xpl file=normal.docx Message: Mode: hub:default INFO : xproc-util/xslt-mode/xpl/xslt-mode.xpl:116:27:hub2docx root element: hub INFO : xproc-util/xslt-mode/xpl/xslt-mode.xpl:116:27:ERROR: title parent not expected: info Message: hub2docx root element: hubERROR: title parent not expected: info Message: [FATAL ERROR]: XSLT mode 'hub:default' failed due to conversion errors. Recovering from errors and proceeding with original input. Message: Mode: hub:clean Message: Mode: hub:merge Message: An empty sequence is not allowed as the value of variable $document-xml-base-modified Message: [FATAL ERROR]: XSLT mode 'hub:merge' failed due to conversion errors. Recovering from errors and proceeding with original input. ERROR: err:XD0007:null ERROR: If sequence is not specified on p:output, or has the value false, then it is a dynamic error if the step does not produce exactly one document on the declared port.

gimsieke commented 3 years ago

The error message says “title parent not expected: info” so you might need to move the title from within info to the element that contains info.

eshanroxx commented 3 years ago

Thanks for the update, please suggest where should I make the change.

gimsieke commented 3 years ago

In your DocBook/Hub XML

eshanroxx commented 3 years ago

ok thanks for the update -> now I have removed the from my Hub XML that is source=table.xml but getting below new error, please suggest next step:</p> <p>Message: Mode: hub:default INFO : xproc-util/xslt-mode/xpl/xslt-mode.xpl:116:27:hub2docx root element: hub Message: hub2docx root element: hub Message: [FATAL ERROR]: XSLT mode 'hub:default' failed due to conversion errors. Recovering from errors and proceeding with original input. Message: Mode: hub:clean Message: Mode: hub:merge Message: An empty sequence is not allowed as the value of variable $document-xml-base-modified Message: [FATAL ERROR]: XSLT mode 'hub:merge' failed due to conversion errors. Recovering from errors and proceeding with original input. ERROR: err:XD0007:null ERROR: If sequence is not specified on p:output, or has the value false, then it is a dynamic error if the step does not produce exactly one document on the declared port.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/gimsieke"><img src="https://avatars.githubusercontent.com/u/122601?v=4" />gimsieke</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>I can’t tell without looking at the XML and/or the debugging output. You can specify <code>debug=yes</code> and <code>debug-dir-uri=file:///c:/temp/debug</code> and look for an <code>*.error.xml</code> file. Or you can attach or send us the XML input (letexml at le-tex.de).</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/eshanroxx"><img src="https://avatars.githubusercontent.com/u/76098981?v=4" />eshanroxx</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>Below is the XML which I am using as input or please suggest how to attach the XML here?</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/eshanroxx"><img src="https://avatars.githubusercontent.com/u/76098981?v=4" />eshanroxx</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>This XML file does not appear to have any style information associated with it. The document tree is shown below. <?xml-model href="<a href="http://www.le-tex.de/resource/schema/hub/1.1/hub.rng">http://www.le-tex.de/resource/schema/hub/1.1/hub.rng</a>" type="application/xml" schematypens="<a href="http://relaxng.org/ns/structure/1.0">http://relaxng.org/ns/structure/1.0</a>"?> <?xml-model href="<a href="http://www.le-tex.de/resource/schema/hub/1.1/hub.rng">http://www.le-tex.de/resource/schema/hub/1.1/hub.rng</a>" type="application/xml" schematypens="<a href="http://purl.oclc.org/dsdl/schematron">http://purl.oclc.org/dsdl/schematron</a>"?></p> <hub xmlns:css="http://www.w3.org/1996/css" xmlns:htmltable="http://transpect.io/htmltable" xmlns:html2hub="http://transpect.io/html2hub" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://docbook.org/ns/docbook"> <info> <keywordset role="hub"> <keyword role="hierarchized">false</keyword> <keyword role="formatting-deviations-only">false</keyword> <keyword role="marked-identifiers">false</keyword> <keyword role="processed-lists">true</keyword> <keyword role="titles-associated-with-floats">false</keyword> <keyword role="layout-attributes-permitted-on-phrase">false</keyword> <keyword role="used-rules-only">false</keyword> <keyword role="source-paths">false</keyword> <keyword role="archive-dir-uri"/> <keyword role="source-type">xhtml11</keyword> <keyword role="source-basename">table.html</keyword> <keyword role="source-dir-uri">file:/E:/IFU_POC/Transpect_io_Setup/</keyword> <keyword role="toc-title"/> </keywordset> </info> <informaltable role="Basic_Table"> <tgroup xmlns:ns0="http://www.w3.org/1996/css" cols="2" css:border-collapse="collapse" css:padding-top="4pt" css:padding-left="4pt" css:padding-bottom="4pt" css:padding-right="4pt" css:border-top-width="1pt" css:border-top-style="solid" css:border-top-color="#000000" css:border-left-width="1pt" css:border-left-style="solid" css:border-left-color="#000000" css:border-bottom-width="1pt" css:border-bottom-style="solid" css:border-bottom-color="#000000" css:border-right-width="1pt" css:border-right-style="solid" css:border-right-color="#000000" css:margin-top="4pt" css:margin-bottom="-4pt" ns0:width="220pt"> <thead> <colgroup> <colspec css:width="57.85pt"/> <colspec css:width="162.10000000000002pt"/> </colgroup> <row> <entry role="None" css:border-top-color="#000000" css:border-top-width="0.5pt" css:border-top-style="solid" css:border-right-color="#FFFFFF" css:border-right-width="0.5pt" css:border-right-style="solid" css:border-bottom-color="#000000" css:border-bottom-width="0.5pt" css:border-bottom-style="solid" css:border-left-color="#000000" css:border-left-width="0.75pt" css:border-left-style="solid" css:width="57.85pt" ns0:padding-top="4pt" ns0:padding-left="4pt" ns0:padding-bottom="4pt" ns0:padding-right="4pt" ns0:background-color="#000000" ns0:vertical-align="middle" colname="1"> <para role="NEW_DFU_STYLES_Table_Heading" css:color="#FFFFFF" css:font-weight="bold" css:font-style="normal" css:font-size="6pt" css:letter-spacing="0.06em" css:text-transform="uppercase" css:margin-left="0pt" css:margin-right="0pt" css:text-indent="0pt" css:hyphens="auto" css:margin-top="0pt" css:margin-bottom="0pt" css:text-decoration-line="none" css:page-break-before="auto" css:text-align="center" css:direction="ltr" css:line-height="6pt" css:font-family="Myriad Pro" css:font-stretch="condensed" css:text-align-last="center"> <phrase remap="b" css:font-weight="bold">PRODUCT VERSIONS</phrase> </para> </entry> <entry role="None" css:border-top-color="#000000" css:border-top-width="0.5pt" css:border-top-style="solid" css:border-right-color="#000000" css:border-right-width="0.5pt" css:border-right-style="solid" css:border-bottom-color="#000000" css:border-bottom-width="0.5pt" css:border-bottom-style="solid" css:border-left-color="#FFFFFF" css:border-left-width="0.5pt" css:border-left-style="solid" css:width="162.10000000000002pt" ns0:padding-top="4pt" ns0:padding-left="4pt" ns0:padding-bottom="4pt" ns0:padding-right="4pt" ns0:background-color="#000000" ns0:vertical-align="middle" colname="2"> <para role="NEW_DFU_STYLES_Table_Heading" css:color="#FFFFFF" css:font-weight="bold" css:font-style="normal" css:font-size="6pt" css:letter-spacing="0.06em" css:text-transform="uppercase" css:margin-left="0pt" css:margin-right="0pt" css:text-indent="0pt" css:hyphens="auto" css:margin-top="0pt" css:margin-bottom="0pt" css:text-decoration-line="none" css:page-break-before="auto" css:text-align="center" css:direction="ltr" css:line-height="6pt" css:font-family="Myriad Pro" css:font-stretch="condensed" css:text-align-last="center"> <phrase remap="b" css:font-weight="bold">FEATURES</phrase> </para> </entry> </row> </thead> <tbody> <colgroup> <colspec css:width="57.85pt"/> <colspec css:width="162.10000000000002pt"/> </colgroup> <row> <entry role="None" css:border-top-color="#000000" css:border-top-width="0.25pt" css:border-top-style="solid" css:border-right-color="#000000" css:border-right-width="0.25pt" css:border-right-style="solid" css:border-bottom-color="#000000" css:border-bottom-width="0.25pt" css:border-bottom-style="solid" css:border-left-color="#000000" css:border-left-width="0.75pt" css:border-left-style="solid" css:width="57.85pt" ns0:padding-top="4pt" ns0:padding-left="4pt" ns0:padding-bottom="4pt" ns0:padding-right="4pt" ns0:vertical-align="middle" colname="1"> <para role="Table_Body" css:color="#000000" css:font-weight="normal" css:font-style="normal" css:font-size="6pt" css:letter-spacing="0em" css:text-transform="none" css:margin-left="1.4pt" css:margin-right="0pt" css:text-indent="0pt" css:hyphens="manual" css:margin-top="0pt" css:margin-bottom="3.6pt" css:text-decoration-line="none" css:page-break-before="auto" css:text-align="left" css:direction="ltr" css:line-height="7pt" css:font-family="Myriad Pro" css:font-stretch="condensed">MightySat Rx</para> </entry> <entry role="None" css:border-top-color="#000000" css:border-top-width="0.25pt" css:border-top-style="solid" css:border-right-color="#000000" css:border-right-width="0.75pt" css:border-right-style="solid" css:border-bottom-color="#000000" css:border-bottom-width="0.25pt" css:border-bottom-style="solid" css:border-left-color="#000000" css:border-left-width="0.25pt" css:border-left-style="solid" css:width="162.10000000000002pt" ns0:padding-top="4pt" ns0:padding-left="4pt" ns0:padding-bottom="4pt" ns0:padding-right="4pt" ns0:vertical-align="middle" colname="2"> <para role="Table_Body" css:color="#000000" css:font-weight="normal" css:font-style="normal" css:font-size="6pt" css:letter-spacing="0em" css:text-transform="none" css:margin-left="1.4pt" css:margin-right="0pt" css:text-indent="0pt" css:hyphens="manual" css:margin-top="0pt" css:margin-bottom="3.6pt" css:text-decoration-line="none" css:page-break-before="auto" css:text-align="left" css:direction="ltr" css:line-height="7pt" css:font-family="Myriad Pro" css:font-stretch="condensed"> Measures and displays arterial oxygen saturation (SpO <phrase ns0:transform="scale(0.8)">2</phrase> ), Pulse Rate (PR), and Perfusion Index (PI). </para> </entry> </row> <row> <entry role="None" css:border-top-color="#000000" css:border-top-width="0.25pt" css:border-top-style="solid" css:border-right-color="#000000" css:border-right-width="0.25pt" css:border-right-style="solid" css:border-bottom-color="#000000" css:border-bottom-width="0.25pt" css:border-bottom-style="solid" css:border-left-color="#000000" css:border-left-width="0.75pt" css:border-left-style="solid" css:width="57.85pt" ns0:padding-top="4pt" ns0:padding-left="4pt" ns0:padding-bottom="4pt" ns0:padding-right="4pt" ns0:vertical-align="middle" colname="1"> <para role="Table_Body" css:color="#000000" css:font-weight="normal" css:font-style="normal" css:font-size="6pt" css:letter-spacing="0em" css:text-transform="none" css:margin-left="1.4pt" css:margin-right="0pt" css:text-indent="0pt" css:hyphens="manual" css:margin-top="0pt" css:margin-bottom="3.6pt" css:text-decoration-line="none" css:page-break-before="auto" css:text-align="left" css:direction="ltr" css:line-height="7pt" css:font-family="Myriad Pro" css:font-stretch="condensed">MightySat Rx, Bluetooth</para> </entry> <entry role="None" css:border-top-color="#000000" css:border-top-width="0.25pt" css:border-top-style="solid" css:border-right-color="#000000" css:border-right-width="0.75pt" css:border-right-style="solid" css:border-bottom-color="#000000" css:border-bottom-width="0.25pt" css:border-bottom-style="solid" css:border-left-color="#000000" css:border-left-width="0.25pt" css:border-left-style="solid" css:width="162.10000000000002pt" ns0:padding-top="4pt" ns0:padding-left="4pt" ns0:padding-bottom="4pt" ns0:padding-right="4pt" ns0:vertical-align="middle" colname="2"> <para role="Table_Body" css:color="#000000" css:font-weight="normal" css:font-style="normal" css:font-size="6pt" css:letter-spacing="0em" css:text-transform="none" css:margin-left="1.4pt" css:margin-right="0pt" css:text-indent="0pt" css:hyphens="manual" css:margin-top="0pt" css:margin-bottom="3.6pt" css:text-decoration-line="none" css:page-break-before="auto" css:text-align="left" css:direction="ltr" css:line-height="7pt" css:font-family="Myriad Pro" css:font-stretch="condensed"> Measures and displays arterial oxygen saturation (SpO <phrase ns0:transform="scale(0.8)">2</phrase> ), Pulse Rate (PR), and Perfusion Index (PI). </para> <para role="Table_Body" css:color="#000000" css:font-weight="normal" css:font-style="normal" css:font-size="6pt" css:letter-spacing="0em" css:text-transform="none" css:margin-left="1.4pt" css:margin-right="0pt" css:text-indent="0pt" css:hyphens="manual" css:margin-top="0pt" css:margin-bottom="3.6pt" css:text-decoration-line="none" css:page-break-before="auto" css:text-align="left" css:direction="ltr" css:line-height="7pt" css:font-family="Myriad Pro" css:font-stretch="condensed">Optional Bluetooth LE radio for transfer of parameter data to a compatible smart device.</para> </entry> </row> <row> <entry role="None" css:border-top-color="#000000" css:border-top-width="0.25pt" css:border-top-style="solid" css:border-right-color="#000000" css:border-right-width="0.25pt" css:border-right-style="solid" css:border-bottom-color="#000000" css:border-bottom-width="0.75pt" css:border-bottom-style="solid" css:border-left-color="#000000" css:border-left-width="0.75pt" css:border-left-style="solid" css:width="57.85pt" ns0:padding-top="0pt" ns0:padding-left="4pt" ns0:padding-bottom="0pt" ns0:padding-right="4pt" ns0:vertical-align="middle" colname="1"> <para role="Table_Body" css:color="#000000" css:font-weight="normal" css:font-style="normal" css:font-size="6pt" css:letter-spacing="0em" css:text-transform="none" css:margin-left="1.4pt" css:margin-right="0pt" css:text-indent="0pt" css:hyphens="manual" css:margin-top="0pt" css:margin-bottom="3.6pt" css:text-decoration-line="none" css:page-break-before="auto" css:text-align="left" css:direction="ltr" css:line-height="7pt" css:font-family="Myriad Pro" css:font-stretch="condensed">MightySat Rx, Bluetooth, and PVI</para> </entry> <entry role="None" css:border-top-color="#000000" css:border-top-width="0.25pt" css:border-top-style="solid" css:border-right-color="#000000" css:border-right-width="0.75pt" css:border-right-style="solid" css:border-bottom-color="#000000" css:border-bottom-width="0.75pt" css:border-bottom-style="solid" css:border-left-color="#000000" css:border-left-width="0.25pt" css:border-left-style="solid" css:width="162.10000000000002pt" ns0:padding-top="0pt" ns0:padding-left="4pt" ns0:padding-bottom="0pt" ns0:padding-right="4pt" ns0:vertical-align="middle" colname="2"> <para role="Table_Body" css:color="#000000" css:font-weight="normal" css:font-style="normal" css:font-size="6pt" css:letter-spacing="0em" css:text-transform="none" css:margin-left="1.4pt" css:margin-right="0pt" css:text-indent="0pt" css:hyphens="manual" css:margin-top="0pt" css:margin-bottom="3.6pt" css:text-decoration-line="none" css:page-break-before="auto" css:text-align="left" css:direction="ltr" css:line-height="7pt" css:font-family="Myriad Pro" css:font-stretch="condensed"> Measures and displays arterial oxygen saturation (SpO <phrase ns0:transform="scale(0.8)">2</phrase> ), Pulse Rate (PR), Perfusion Index (PI), and optional Pleth Variability Index (PVI). </para> <para role="Table_Body" css:color="#000000" css:font-weight="normal" css:font-style="normal" css:font-size="6pt" css:letter-spacing="0em" css:text-transform="none" css:margin-left="1.4pt" css:margin-right="0pt" css:text-indent="0pt" css:hyphens="manual" css:margin-top="0pt" css:margin-bottom="3.6pt" css:text-decoration-line="none" css:page-break-before="auto" css:text-align="left" css:direction="ltr" css:line-height="7pt" css:font-family="Myriad Pro" css:font-stretch="condensed">Optional Bluetooth LE radio for transfer of parameter data to a compatible smart device.</para> </entry> </row> </tbody> </tgroup> </informaltable> </hub> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/gimsieke"><img src="https://avatars.githubusercontent.com/u/122601?v=4" />gimsieke</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>This is not XML. When I tried to attach an XML file using drag&drop, Github told me that they don’t support that file type. But they support zip. So you can zip the XML and attach it.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/eshanroxx"><img src="https://avatars.githubusercontent.com/u/76098981?v=4" />eshanroxx</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p><a href="https://github.com/transpect/hub2docx-lib/files/5702055/table.zip">table.zip</a></p> <p>I have attached the table.xml in zip format, please have a look.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/eshanroxx"><img src="https://avatars.githubusercontent.com/u/76098981?v=4" />eshanroxx</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p><a href="https://github.com/transpect/hub2docx-lib/files/5702313/debug.zip">debug.zip</a> Attached is the debugging output, please have a look</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/gimsieke"><img src="https://avatars.githubusercontent.com/u/122601?v=4" />gimsieke</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>Hmm, the debug message was misleading. That’s due to a Calabash bug. It sometimes swallows Saxon’s real error messages and displays other XSLT messages that were emitted before the error occurred.</p> <p>The issue with hub2docx.xpl is that it is not meant to be run standalone. It is evaluated by <a href="https://github.com/transpect/docx_modify-lib/blob/master/xpl/docx_modify.xpl">docx_modify.xpl</a>. </p> <p>In a current project where all three docx modules (hub2docx, docx2hub, and docx_modify) are available, an invocation looks like this (using a docx template that belongs to the project):</p> <pre><code class="language-bash">calabash/calabash.sh -i xslt=docxtools/hub2docx/xsl/hub2docx.xsl -i xpl=docxtools/hub2docx/xpl/hub2docx.xpl -i external-sources=../tmp/table.xml docxtools/docx_modify/xpl/docx_modify.xpl file=a9s/common/hub2docx/template/hobots.docx</code></pre> <p>I’ll attach the result for you.</p> <p>Please note that apparently white space will be forwarded to the docx verbatim. This means it needs to be normalized in the input.</p> <p><a href="https://github.com/transpect/hub2docx-lib/files/5703836/hobots.mod.docx">hobots.mod.docx</a></p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/eshanroxx"><img src="https://avatars.githubusercontent.com/u/76098981?v=4" />eshanroxx</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>Thanks for sharing and update 👍 </p> <p>I am using window batch option .\calabash\calabash.bat so should I use the command in the same way as you did with calabash/calabash.sh</p> <p>Also please share the template hobots.docx -> a9s/common/hub2docx/template/hobots.docx</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/gimsieke"><img src="https://avatars.githubusercontent.com/u/122601?v=4" />gimsieke</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>You should be able to use any docx file as template.</p> <p>If you use the .bat file, the other parameters should stay the same. You need to adapt the paths according to where you checked out the modules, for example omit <code>docxtools/</code>.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/eshanroxx"><img src="https://avatars.githubusercontent.com/u/76098981?v=4" />eshanroxx</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>Thanks for the response and update.</p> <p>I have executed below .bat commands and normal.docx as a template. <a href="https://github.com/transpect/hub2docx-lib/files/5708651/normal.docx">normal.docx</a> Command seems executed successfully as the result table.docx - I am getting nothing means blank doc file as attached <a href="https://github.com/transpect/hub2docx-lib/files/5708662/table.docx">table.docx</a></p> <p>.\calabash\calabash.bat -o result=table.docx xslt=.\hub2docx-lib\xsl\hub2docx.xsl xpl=.\hub2docx-lib\xpl\hub2docx.xpl -i external-sources=table.xml .\docx_modify-lib\xpl\docx_modify.xpl file=normal.docx debug=yes</p> <p>Please suggest where I am missing. Attached is the huv2docx-Command_execution_result.txt <a href="https://github.com/transpect/hub2docx-lib/files/5708690/huv2docx-Command_execution_result.txt">huv2docx-Command_execution_result.txt</a></p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/gimsieke"><img src="https://avatars.githubusercontent.com/u/122601?v=4" />gimsieke</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>In the log, I see the line:</p> <pre><code>INFO : docx_modify-lib/xpl/docx_modify.xpl:482:81:docx_modify: modified docx will be stored in file:/E:/IFU_POC/Transpect_io_Setup/normal.mod.docx</code></pre> <p>Do you see the file normal.mod.docx?</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/eshanroxx"><img src="https://avatars.githubusercontent.com/u/76098981?v=4" />eshanroxx</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>Thanks now I am able to see the desired result on normal.mod.docx which I provided as a template.</p> <p>How can I save the result as table.docx ?</p> <p>bat command executed: .\calabash\calabash.bat -i xslt=./hub2docx-lib/xsl/hub2docx.xsl -i xpl=./hub2docx-lib/xpl/hub2docx.xpl -i external-sources=table.xml .\docx_modify-lib\xpl\docx_modify.xpl file=normal.docx debug=yes</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/gimsieke"><img src="https://avatars.githubusercontent.com/u/122601?v=4" />gimsieke</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>You can add the parameter <code>docx-target-uri=file:/E:/IFU_POC/Transpect_io_Setup/table.docx</code></p> <p>Or you can rename the resulting file afterwards.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/eshanroxx"><img src="https://avatars.githubusercontent.com/u/76098981?v=4" />eshanroxx</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>Can I directly convert any html to docx?</p> <p>If yes please suggest the process.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/gimsieke"><img src="https://avatars.githubusercontent.com/u/122601?v=4" />gimsieke</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>You can’t feed HTML into hub2docx. You could first transform <a href="https://github.com/transpect/html2hub">HTML to Hub</a> and then feed it into hub2docx. But this pipeline needs to be set up; it needs configuration that corresponds to the HTML input and the desired docx style names. Setting this up for you is far beyond what we can do as support on Github. In principle we can do this as paid-for consulting, but at the moment we don’t have any capacity to accept additional projects.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/eshanroxx"><img src="https://avatars.githubusercontent.com/u/76098981?v=4" />eshanroxx</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>Ok Thanks for information, Can you please help me in setup of transpect.io XML calabash in the form of java programming.</p> <p>Currently it is in bat file or command line form but I want to convert hubxml to docx using java programming in any IDE or editors.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/eshanroxx"><img src="https://avatars.githubusercontent.com/u/76098981?v=4" />eshanroxx</a> commented <strong> 3 years ago</strong> </div> <div class="markdown-body"> <p>Hi Gimsieke,</p> <p>Can you please let me know how to do setup of transpect.io XML calabash in the form of java programming?</p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>