metanorma / mn-native-pdf

Development repository for mn2pdf with Metanorma document samples
3 stars 2 forks source link

Error: No rule to make target `documents/un-ECE_AGAT_2020_INF1.html', needed by `documents.rxl'. #645

Closed Intelligent2013 closed 2 months ago

Intelligent2013 commented 6 months ago

From https://github.com/metanorma/mn-native-pdf/actions/runs/7941367939/job/21683643021:

Run make all published
...
### skipping documents/iec-rice-fr.presentation.html
cp mn-samples-iec/documents/iec-rice-fr.html sources/iec-rice-fr.html
cp sources/iec-rice-fr.html documents/iec-rice-fr.html
make: *** No rule to make target 'documents/un-ECE_AGAT_2020_INF1.html', needed by 'documents.rxl'.  Stop.
rm sources/iso-amendment-rice-amd-en.cd.html sources/iso-amendment-rice-amd-en.np.html sources/iso-amendment-rice-amd-en.final.html sources/iec-rice-en.html sources/iso-amendment-rice-amd-en.prf.html sources/iec-rice-fr.html sources/iso-is-rice-fr.html sources/iso-amendment-rice-amd-fr.html sources/iso-amendment-rice-amd-en.wd.html sources/iso-amendment-rice-amd-en.damd.html sources/iso-amendment-rice-amd-en.fdamd.html sources/iso-amendment-rice-amd-en.awi.html

Two weeks ago the process ended successfully: https://github.com/metanorma/mn-native-pdf/actions/runs/7789354974/job/21240766368

Intelligent2013 commented 6 months ago

The file ECE_AGAT_2020_INF1.html is missing in: https://github.com/metanorma/mn-samples-un/tree/gh-pages/documents image

I'll add the workaround item in the Makefile.

Intelligent2013 commented 6 months ago

Only one .html successfully generated: image

So I'll comment all UN document temporarily.

Intelligent2013 commented 6 months ago

Issue added: https://github.com/metanorma/isodoc/issues/560 Need revert back the changes here after fixing. On hold.

Intelligent2013 commented 2 months ago

Another issue occurs:

Input: XML (sources/un-ECE_TRADE_C_CEFACT_2019_26.presentation.xml)
Input: XSL (/home/runner/work/mn-native-pdf/mn-native-pdf/xslt/un.plenary-attachment.xsl)
Output: PDF (documents/un-ECE_TRADE_C_CEFACT_2019_26.presentation.pdf)

[INFO] Generation of XSL-FO with information about the table's widths ...
[INFO] Generation of Intermediate Format with information about the table's widths ...
[INFO] Rendering into intermediate format ...
[INFO] Intermediate format. Rendered page #1.
[INFO] Intermediate format. Rendered page #2.
[INFO] Intermediate format. Rendered page #3.
[INFO] Intermediate format. Rendered page #4.
[INFO] Intermediate format. Rendered page #5.
[INFO] Processing of Intermediate Format with information about the table's widths (table_if.xsl) ...
[INFO] Generated successfully!
[INFO] Generation XML with table's widths ...
[INFO] Generated successfully!
[INFO] XSL-FO file preparation...
Transforming to PDF...
Rendered page #1.
"fo:block" is not a valid child of "fo:table-body"! (See position 17:791)
org.apache.fop.fo.ValidationException: null:17:791: "fo:block" is not a valid child of "fo:table-body"! (See position 17:791)
javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: null:17:791: "fo:block" is not a valid child of "fo:table-body"! (See position 17:791)
    at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:502)
Intelligent2013 commented 2 months ago

Fixed.