Modify

Opened 5 years ago

Closed 5 years ago

#5895 closed defect (fixed)

xsltproc arguments in the wrong order

Reported by: seemant_trac@… Owned by: lei
Priority: normal Component: PageToDocIntegration
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

The plugin claims the document is empty (and the files in /tmp show the word file to be empty). It turns out that xsltproc on my system is using the following versions of stuff (if it matters):

Using libxml 20703, libxslt 10124 and libexslt 813
xsltproc was compiled against libxml 20703, libxslt 10124 and libexslt 813
libxslt 10124 was compiled against libxml 20703
libexslt 813 was compiled against libxml 20703

To fix the error, I simply changed the order of the arguments in the call to xsltproc:

        cmd = '%s %s --html -o %s %s %s' % (

on line 137, and now the plugin works as expected.

Attachments (0)

Change History (2)

comment:1 Changed 5 years ago by didley@…

I got a similar message

 Trac detected an internal error:

Exception: Error executing command (return code = 4): Warning: program compiled against libxml 207 using older 206
file:///c%3A/dokume~1/admini~1/lokale~1/temp/page2docjc2jrn/word_l-x5h-:1: parser error : Document is empty

file:///c%3A/dokume~1/admini~1/lokale~1/temp/page2docjc2jrn/word_l-x5h-:1: parser error : Start tag expected, '<' not found

cannot parse c:\dokume~1\admini~1\lokale~1\temp\page2docjc2jrn\word_l-x5h-

I changed the argument also to

cmd = '%s %s --html -o %s %s %s' % (

Now it works.

Thanx seemant_trac@…

comment:2 Changed 5 years ago by markm

  • Resolution set to fixed
  • Status changed from new to closed

Yikes - I wish I had seen all these errors earlier. Now fixed.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.