ottoville / docx2html.xsl Goto Github PK
View Code? Open in Web Editor NEWThis project is aim to create perfect conversion from docx fileformat to html.
License: GNU General Public License v3.0
This project is aim to create perfect conversion from docx fileformat to html.
License: GNU General Public License v3.0
my env:
win10 operation system;
Oxygen XML Editor 20.1, xslt processor: saxon-he 9.8.0.12
many_para.docx
It take over 10 minutes to transform the docx file, then I terminate oxygen.
Here I upload the docx file. thanks. Maybe it will apear in other version oxygen editor.
Anther question, is it really write in xlst 2.0, when i modify it to 1.0, it also can run with simple docx file.
many_para.docx
I tried the new xsl files you provided in the last issue (with the same documents I provided).
I now get:
Static error in {concat('p>span { ')} in expression in xsl:value-of/@select on line 203 column 48 of docx2html.xsl: XPST0017: System function concat() cannot be called with one argument Static error in {concat('span { ')} in expression in xsl:value-of/@select on line 216 column 46 of docx2html.xsl: XPST0017: System function concat() cannot be called with one argument Errors were reported during stylesheet compilation
Would I be able to get some help?
Many thanks :-)
Please help me understand the following code in table.xsl:
<xsl:choose>
<xsl:when test="$nextrestart='no'">
<xsl:attribute name="rowspan">
<xsl:value-of select="count(../following-sibling::w:tr/w:tc/w:tcPr/w:vMerge)+1"/>
</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="../following-sibling::w:tr[position() < $nextrestart]/*[position()=$curpos]/w:tcPr/w:vMerge">
<xsl:variable name="thisrowposition" select="count(./preceding-sibling::w:tr) + 1 - $rowposition"/>
<xsl:value-of select="$thisrowposition"/>
|
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
Why in the xsl:otherwise condition "rowspan" attribute is not defined?
For what is there symbol " | " ?
I watched Source code v0.6
I tried using docxtohtml to transform a document with Oxygen/Saxon, and received the following errors:
Error in expression w:p[w:pPr/w:numPr and count(./preceding-sibling::w:p[w:pPr/w:numPr/w:numId/@w:val=current()/w:pPr/w:numPr/w:numId/@w:val]) > 0 ]: The current() function may not be used in a pattern
Error in expression w:p[w:pPr/w:numPr and not(./preceding-sibling::w:p[w:pPr/w:numPr/w:numId/@w:val=current()/w:pPr/w:numPr/w:numId/@w:val])]: The current() function may not be used in a pattern
Hi there, I'm using Saxon HE via the Java JVM and using docx2html.
I've got errors logged in this gist.
Any help appreciated!
I can not figure out how to add support for shade and tint color modifications.
https://msdn.microsoft.com/en-us/library/documentformat.openxml.drawing.shade(v=office.14).aspx
https://msdn.microsoft.com/en-us/library/documentformat.openxml.drawing.tint(v=office.14).aspx
Hi otto,
Hope you are doing good!
I have a doubt in 'docx2html.xsl' my target is to convert .docx file to html in command line. I download your codes and placed in my local system. If i try execute your code in command line using saxon i will get below error message. can you guide me how to solve this issue and get html file. Its very urgent so please help me.
I'm awaiting your positive reply.
Src-GCN_1900020.docx
My command line arguments:
C:\Users\304197>java -jar D:\Saxon\saxon9he.jar -s:D:\Test\CUP\Feedback\20\Math\Src-GCN_1900020\word\document.xml -xsl:D:\Test\W2H\DOCX2HTML.XSL-master\docx2html.xsl -o:D:\Test\CUP\Feedback\20\Math\Src-GCN_1900020.html
Errors
Error at xsl:value-of on line 203 column 48 of docx2html.xsl:
XPST0017 XPath syntax error at char 0 on line 203 in {concat('p>span { ')}:
System function concat() cannot be called with one argument
Error at xsl:value-of on line 216 column 46 of docx2html.xsl:
XPST0017 XPath syntax error at char 0 on line 216 in {concat('span { ')}:
System function concat() cannot be called with one argument
Failed to compile stylesheet. 2 errors detected.
Thanks,
Mhd Jameer
Mobile and Whatapp: +91 9042433322
Please help me with the issue in lines 221 & 222.
I am not familiar with resolve-uri() and base-uri().
the links are like:
C:\Users<CompName>\Desktop\a\word_rels\document.xml.rels
C:\Users<CompName>\Desktop\a\word\styles.xml
Thanks in Advance
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.