TEIC / Stylesheets

TEI XSL Stylesheets
231 stars 124 forks source link

"Use a resource collection to copy directories" error when publishing to DOCX #581

Open AlexJitianu opened 1 year ago

AlexJitianu commented 1 year ago

Hello,

One of our users reported this issue. If you try to publish the attached XML file to DOCX you get the "Use a resource collection to copy directories" error. Oxygen 25 comes with TEI Stylesheets 7.53.0. It might be related with the Saxon 11.4 engine which is used in the transformation.

page_20_pdf.zip

Buildfile: D:\projects\eXml\frameworks\tei\xml\tei\stylesheet\docx\build-to.xml

setup:
    [mkdir] Created dir: C:\Users\ALEX_J~1\AppData\Local\Temp\build2130591750

odd:

notodd:
     [echo] unzip Word template
    [unzip] Expanding: D:\projects\eXml\frameworks\tei\xml\tei\stylesheet\profiles\default\docx\template.docx into C:\Users\ALEX_J~1\AppData\Local\Temp\build2130591750
     [echo] remove custom document properties, notes,
     [echo]       footers, headers etc from Word template
   [delete] Deleting C:\Users\ALEX_J~1\AppData\Local\Temp\build2130591750\docProps\custom.xml
   [delete] Deleting C:\Users\ALEX_J~1\AppData\Local\Temp\build2130591750\word\endnotes.xml
   [delete] Deleting C:\Users\ALEX_J~1\AppData\Local\Temp\build2130591750\word\footer1.xml
   [delete] Deleting C:\Users\ALEX_J~1\AppData\Local\Temp\build2130591750\word\footer2.xml
   [delete] Deleting C:\Users\ALEX_J~1\AppData\Local\Temp\build2130591750\word\footer3.xml
   [delete] Deleting C:\Users\ALEX_J~1\AppData\Local\Temp\build2130591750\word\footnotes.xml
   [delete] Deleting C:\Users\ALEX_J~1\AppData\Local\Temp\build2130591750\word\header1.xml
   [delete] Deleting C:\Users\ALEX_J~1\AppData\Local\Temp\build2130591750\word\header2.xml
   [delete] Deleting C:\Users\ALEX_J~1\AppData\Local\Temp\build2130591750\word\header3.xml
   [delete] Deleting C:\Users\ALEX_J~1\AppData\Local\Temp\build2130591750\word\webSettings.xml
     [echo] fix Word .rels file
     [xslt] Processing C:\Users\ALEX_J~1\AppData\Local\Temp\build2130591750\_rels\.rels to C:\Users\ALEX_J~1\AppData\Local\Temp\build2130591750\_rels\.rels_
     [xslt] Loading stylesheet D:\projects\eXml\frameworks\tei\xml\tei\stylesheet\docx\tools\fixdotrels.xsl
     [move] Moving 1 file to C:\Users\ALEX_J~1\AppData\Local\Temp\build2130591750\_rels
     [move] Attempting to rename: C:\Users\ALEX_J~1\AppData\Local\Temp\build2130591750\_rels\.rels_ to C:\Users\ALEX_J~1\AppData\Local\Temp\build2130591750\_rels\.rels
     [echo] Fix Word styles file
     [xslt] Processing C:\Users\ALEX_J~1\AppData\Local\Temp\build2130591750\word\styles.xml to C:\Users\ALEX_J~1\AppData\Local\Temp\build2130591750\word\_styles.xml
     [xslt] Loading stylesheet D:\projects\eXml\frameworks\tei\xml\tei\stylesheet\docx\tools\fixstyle.xsl
     [move] Moving 1 file to C:\Users\ALEX_J~1\AppData\Local\Temp\build2130591750\word
     [move] Attempting to rename: C:\Users\ALEX_J~1\AppData\Local\Temp\build2130591750\word\_styles.xml to C:\Users\ALEX_J~1\AppData\Local\Temp\build2130591750\word\styles.xml
     [echo] Get names of graphics files and write an ant task
     [xslt] Processing C:\Users\alex_jitianu\Desktop\page_20_pdf.xml to C:\Users\ALEX_J~1\AppData\Local\Temp\build2130591750\copy.xml
     [xslt] Loading stylesheet D:\projects\eXml\frameworks\tei\xml\tei\stylesheet\tools\makegraphicsanttask.xsl
     [echo] Copy image files by running ant task

dist:
    [mkdir] Created dir: C:\Users\ALEX_J~1\AppData\Local\Temp\build2130591750\word\media

BUILD FAILED
D:\projects\eXml\frameworks\tei\xml\tei\stylesheet\docx\build-to.xml:35: The following error occurred while executing this line:
D:\projects\eXml\frameworks\tei\xml\tei\stylesheet\common\teianttasks.xml:171: The following error occurred while executing this line:
C:\Users\ALEX_J~1\AppData\Local\Temp\build2130591750\copy.xml:1: Use a resource collection to copy directories.

Total time: 1 second

The process finished with exit code: 1
sydb commented 1 year ago

I have so far been unable to reproduce this.

lguariento commented 1 year ago

This was fixed with more recent versions of oXygen.