Giter Club home page Giter Club logo

docx2html.xsl's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

docx2html.xsl's Issues

long time without result of transforming

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

Another issue with the same test documents

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 :-)

Rowspan attribute in table.xsl

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

Errors when transforming with Oxygen/Saxon

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

Command Line

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.