Page 1 of 1

A css mess part 1

Posted: Wed Jan 03, 2018 2:42 pm
by Timber
Hi!

Almost a private forum for me. :)

I guess there will be others later on . This seems like a kind of pioneering work anyway.

My previous task included modifying the original css files since adding a project css simply wasn't enough in some cases.

I tried to be careful and change everything the way it was, but now when I am trying to create a new project PDF, nothing comes out. Transformation is successful but there is a small error prompt telling that "There was an error opening the document. The file is damaged and could not be repaired".

One thing to try would be to get the original 19.1. edit and print folders so that everything would definitely be like in the original. But here is the log file (shortened) anyway:

Code: Select all

Executing:
"c:\program files\oxygen xml author 19\jre/bin/java" -Xmx384m "---snip---


transform.topic2fo.index:
[index-preprocess] [INFO] IBM ICU4J Collator is not found. Default Java Collator will be used
[index-preprocess] [INFO] IBM ICU4J Collator is not found. Default Java Collator will be used

css.transform.topic2fo:

css.transform.topic2pdf:

css.publish.map.pdf:

css.dita2pdf2:

merged2pdf:
     [echo] Type: chemistry
     [echo] The args input C:\Users\timo.laaksosaari\Documents\DITAToo\Workspace\Megatrex 4240\megatrex4240.ditamap.

xslt.pipeline.generic.processing:
     [xslt] Processing C:\Users\timo.laaksosaari\Documents\DITAToo\Workspace\Megatrex 4240\temp\pdf-css\stage1.xml to C:\Users\timo.laaksosaari\Documents\DITAToo\Workspace\Megatrex 4240\temp\pdf-css\stage1.xml.pp
     [xslt] Loading stylesheet C:\Program Files\Oxygen XML Author 19\frameworks\dita\DITA-OT2.x\plugins\com.oxygenxml.pdf.css\xsl\post-process.xsl

xslt.pipeline.aggregate.comments.replies:
   [delete] Deleting: C:\Users\timo.laaksosaari\Documents\DITAToo\Workspace\Megatrex 4240\out\pdf-css\megatrex4240.pdf
     [echo] @import 'file:/C:/Program%20Files/Oxygen%20XML%20Author%2019/frameworks/dita/css/edit/style-basic.css';
     [echo] @import 'file:/C:/Program%20Files/Oxygen%20XML%20Author%2019/frameworks/dita/css/webauthor/profiling.css';
     [echo] @import 'file:/C:/Program%20Files/Oxygen%20XML%20Author%2019/frameworks/dita/css/webauthor/profiling.css';
     [echo] @import 'file:/C:/Program%20Files/Oxygen%20XML%20Author%2019/frameworks/dita/css/edit/Megatrex01.css';
     [echo] @import 'file:/C:/Program Files/Oxygen XML Author 19/frameworks/dita/css/print/p-dita.css';
     [echo] @import 'file:///C:/Program Files/Oxygen XML Author 19/frameworks/dita/css/print/p-dita-customization.css';
     [copy] Copying 1 file to C:\Users\timo.laaksosaari\Documents\DITAToo\Workspace\Megatrex 4240\out\pdf-css

prince:

ahouse:

chemistry:
     [echo] =============================
     [echo] Oxygen PDF Chemistry script: C:\Program Files\Oxygen XML Author 19\frameworks/dita/DITA-OT2.x/../../../oxygenChemistry.bat
     [echo] Processing: C:\Users\timo.laaksosaari\Documents\DITAToo\Workspace\Megatrex 4240\temp\pdf-css\stage1.xml.pp
     [echo] Output file: C:\Users\timo.laaksosaari\Documents\DITAToo\Workspace\Megatrex 4240\out\pdf-css/megatrex4240.pdf
     [echo] =============================
     [exec] Starting Chemistry installed in C:\Program Files\Oxygen XML Author 19\
     [exec] Java executable: "C:\Program Files\Oxygen XML Author 19\\jre\bin\java.exe";
     [exec]
     [exec] C:\Users\timo.laaksosaari\Documents\DITAToo\Workspace\Megatrex 4240>"C:\Program Files\Oxygen XML Author 19\\jre\bin\java.exe"  -Xmx384m -cp "C:\Program Files\Oxygen XML Author 19\lib\oxygen-pdf-chemistry.jar;C:\Program Files\Oxygen XML Author 19\classes;C:\Program;C:\Program;C:\Program;C:\Program;C:\Program;C:\Program;C:\Program;C:\Program;C:\Program;C:\Program;C:\Program;C:\Program;C:\Program;C:\Program;C:\Program;C:\Program;C:\Program;C:\Program Files\Oxygen XML Author 19\lib\*" com.oxygenxml.chemistry.OxygenPDFChemistry -install-dir C:\Program Files\Oxygen XML Author 19\ -css "C:\Users\timo.laaksosaari\Documents\DITAToo\Workspace\Megatrex 4240\temp\pdf-css/main.css" -in "C:\Users\timo.laaksosaari\Documents\DITAToo\Workspace\Megatrex 4240\temp\pdf-css\stage1.xml.pp" -out "C:\Users\timo.laaksosaari\Documents\DITAToo\Workspace\Megatrex 4240\out\pdf-css/megatrex4240.pdf" -http-proxy-port ${http.proxyPort} -http-proxy-host ${http.proxyHost} -dump-styled-content -dump-fo
     [exec] INFO com.oxygenxml.chemistry.stages.PageSizeParser - The page size: landscape does not specify width and height. The values inherited from other pages or the default page size will be used.
     [exec] INFO com.oxygenxml.chemistry.stages.PageSizeParser - The page size: portrait does not specify width and height. The values inherited from other pages or the default page size will be used.
     [exec] INFO com.oxygenxml.chemistry.OxygenPDFChemistry - Dumping styled content to: C:\Users\timo.laaksosaari\Documents\DITAToo\Workspace\Megatrex 4240\out\pdf-css\megatrex4240.style.xml
     [exec] INFO com.oxygenxml.chemistry.OxygenPDFChemistry - Dumping FO content to: C:\Users\timo.laaksosaari\Documents\DITAToo\Workspace\Megatrex 4240\out\pdf-css\megatrex4240.fo
     [exec] WARN org.apache.fop.apps.FOUserAgent - The font directory C:\Users\timo.laaksosaari\Documents\DITAToo\Workspace\Megatrex 4240\fonts could not be found.
     [exec] WARN org.apache.fop.apps.FOUserAgent - Border and padding for fo:region-body "xsl-region-body" should be '0' (See 6.4.14 in XSL 1.1); non-standard values are allowed if relaxed validation is enabled.  (See position 1:899)
     [exec] WARN org.apache.fop.apps.FOUserAgent - Border and padding for fo:region-body "xsl-region-body" should be '0' (See 6.4.14 in XSL 1.1); non-standard values are allowed if relaxed validation is enabled.  (See position 1:1393)
     [exec] WARN org.apache.fop.apps.FOUserAgent - Border and padding for fo:region-body "xsl-region-body" should be '0' (See 6.4.14 in XSL 1.1); non-standard values are allowed if relaxed validation is enabled.  (See position 1:2351)
     [exec] WARN org.apache.fop.apps.FOUserAgent - Border and padding for fo:region-body "xsl-region-body" should be '0' (See 6.4.14 in XSL 1.1); non-standard values are allowed if relaxed validation is enabled.  (See position 1:2841)
     [exec] WARN org.apache.fop.apps.FOUserAgent - Border and padding for fo:region-body "xsl-region-body" should be '0' (See 6.4.14 in XSL 1.1); non-standard values are allowed if relaxed validation is enabled.  (See position 1:3824)
     [exec] WARN org.apache.fop.apps.FOUserAgent - Border and padding for fo:region-body "xsl-region-body" should be '0' (See 6.4.14 in XSL 1.1); non-standard values are allowed if relaxed validation is enabled.  (See position 1:4319)
     [exec] WARN org.apache.fop.apps.FOUserAgent - Border and padding for fo:region-body "xsl-region-body" should be '0' (See 6.4.14 in XSL 1.1); non-standard values are allowed if relaxed validation is enabled.  (See position 1:5297)
     [exec] WARN org.apache.fop.apps.FOUserAgent - Border and padding for fo:region-body "xsl-region-body" should be '0' (See 6.4.14 in XSL 1.1); non-standard values are allowed if relaxed validation is enabled.  (See position 1:5791)
     [exec] WARN org.apache.fop.apps.FOUserAgent - Border and padding for fo:region-body "xsl-region-body" should be '0' (See 6.4.14 in XSL 1.1); non-standard values are allowed if relaxed validation is enabled.  (See position 1:6784)
     [exec] WARN org.apache.fop.apps.FOUserAgent - Border and padding for fo:region-body "xsl-region-body" should be '0' (See 6.4.14 in XSL 1.1); non-standard values are allowed if relaxed validation is enabled.  (See position 1:7281)
     [exec] WARN org.apache.fop.apps.FOUserAgent - Border and padding for fo:region-body "xsl-region-body" should be '0' (See 6.4.14 in XSL 1.1); non-standard values are allowed if relaxed validation is enabled.  (See position 1:8231)
     [exec] WARN org.apache.fop.apps.FOUserAgent - Border and padding for fo:region-body "xsl-region-body" should be '0' (See 6.4.14 in XSL 1.1); non-standard values are allowed if relaxed validation is enabled.  (See position 1:8733)
     [exec] WARN org.apache.fop.apps.FOUserAgent - Border and padding for fo:region-body "xsl-region-body" should be '0' (See 6.4.14 in XSL 1.1); non-standard values are allowed if relaxed validation is enabled.  (See position 1:9696)
     [exec] WARN org.apache.fop.apps.FOUserAgent - Border and padding for fo:region-body "xsl-region-body" should be '0' (See 6.4.14 in XSL 1.1); non-standard values are allowed if relaxed validation is enabled.  (See position 1:10187)
     [exec] INFO org.apache.fop.apps.FOUserAgent - Rendered page #1.
     [exec] FATAL com.oxygenxml.chemistry.OxygenPDFChemistry - Error: com.oxygenxml.chemistry.stages.StageException "null:384:339: Missing attribute on fo:basic-link: Either external-destination or internal-destination must be specified. (See position 384:339)
     [exec] Recoverable error on line 384 column 339
     [exec]  Content around the error:
     [exec]   SXCH0003: org.apache.fop.fo.ValidationException: Missing attribute on fo:basic-link:
     [exec] 380:                 </fo:block></fo:block-container>
     [exec] 381:             </fo:block></fo:block-container>
     [exec]   Either external-destination or internal-destination must be specified. (See position
     [exec] 382:             <fo:block-container font-weight="normal" margin-bottom="0.5em" margin-left="2em" margin-top="0.5em"><fo:block end-indent="0" start-indent="0">
     [exec]   384:339): null:384:339: Missing attribute on fo:basic-link: Either external-destination or
     [exec]   internal-destination must be specified. (See position 384:339)
     [exec] 383:                 <fo:block-container border-bottom-color="transparent" border-bottom-width="2pt" border-bottom-style="none" border-left-color="transparent" border-left-width="2pt" border-left-style="none" border-right-color="transparent" border-right-width="2pt" border-right-style="none" border-top-color="transparent" border-top-width="2pt" border-top-style="none" margin-bottom="0" margin-left="0" margin-right="0" margin-top="0" padding-bottom="0" padding-left="0" padding-right="0" padding-top="0"><fo:block end-indent="0" start-indent="0">
     [exec] 384:                     <fo:block-container border-top-color="rgb(229 , 229 , 0)" margin-bottom="0.1em" margin-left="0.1em" margin-right="0.1em" margin-top="0.1em" padding-top="0.3em" text-align-last="justify"><fo:block end-indent="0" start-indent="0"><fo:basic-link show-destination="new" indicate-destination="true" external-destination=""><fo:inline color="navy" font-weight="bold"><fo:basic-link show-destination="new" indicate-destination="true" external-destination="">7.7</fo:basic-link><fo:basic-link show-destination="new" indicate-destination="true" external-destination=""> </fo:basic-link></fo:inline></fo:basic-link><fo:basic-link show-destination="new" indicate-destination="true" external-destination="">Air
     [exec] 385:                         Supply Unit
     [exec] 386:                         Parts</fo:basic-link><fo:basic-link show-destination="new" indicate-destination="true" external-destination=""><fo:inline><fo:basic-link show-destination="new" indicate-destination="true" external-destination=""><fo:leader leader-pattern="dots"/></fo:basic-link><fo:basic-link show-destination="new" indicate-destination="true" external-destination=""><fo:page-number-citation ref-id=""/></fo:basic-link></fo:inline></fo:basic-link></fo:block></fo:block-container>
     [exec] 387:                 </fo:block></fo:block-container>
     [exec] 388:             </fo:block></fo:block-container>
     [exec] "
     [exec] com.oxygenxml.chemistry.stages.StageException: null:384:339: Missing attribute on fo:basic-link: Either external-destination or internal-destination must be specified. (See position 384:339)
     [exec]  Content around the error:
     [exec] 380:                 </fo:block></fo:block-container>
     [exec] 381:             </fo:block></fo:block-container>
     [exec] 382:             <fo:block-container font-weight="normal" margin-bottom="0.5em" margin-left="2em" margin-top="0.5em"><fo:block end-indent="0" start-indent="0">
     [exec] 383:                 <fo:block-container border-bottom-color="transparent" border-bottom-width="2pt" border-bottom-style="none" border-left-color="transparent" border-left-width="2pt" border-left-style="none" border-right-color="transparent" border-right-width="2pt" border-right-style="none" border-top-color="transparent" border-top-width="2pt" border-top-style="none" margin-bottom="0" margin-left="0" margin-right="0" margin-top="0" padding-bottom="0" padding-left="0" padding-right="0" padding-top="0"><fo:block end-indent="0" start-indent="0">
     [exec] 384:                     <fo:block-container border-top-color="rgb(229 , 229 , 0)" margin-bottom="0.1em" margin-left="0.1em" margin-right="0.1em" margin-top="0.1em" padding-top="0.3em" text-align-last="justify"><fo:block end-indent="0" start-indent="0"><fo:basic-link show-destination="new" indicate-destination="true" external-destination=""><fo:inline color="navy" font-weight="bold"><fo:basic-link show-destination="new" indicate-destination="true" external-destination="">7.7</fo:basic-link><fo:basic-link show-destination="new" indicate-destination="true" external-destination=""> </fo:basic-link></fo:inline></fo:basic-link><fo:basic-link show-destination="new" indicate-destination="true" external-destination="">Air
     [exec] 385:                         Supply Unit
     [exec] 386:                         Parts</fo:basic-link><fo:basic-link show-destination="new" indicate-destination="true" external-destination=""><fo:inline><fo:basic-link show-destination="new" indicate-destination="true" external-destination=""><fo:leader leader-pattern="dots"/></fo:basic-link><fo:basic-link show-destination="new" indicate-destination="true" external-destination=""><fo:page-number-citation ref-id=""/></fo:basic-link></fo:inline></fo:basic-link></fo:block></fo:block-container>
     [exec] 387:                 </fo:block></fo:block-container>
     [exec] 388:             </fo:block></fo:block-container>
     [exec]
     [exec]    at com.oxygenxml.chemistry.stages.Stage_6_FOP.process(Stage_6_FOP.java:244)
     [exec]    at com.oxygenxml.chemistry.OxygenPDFChemistry.process(OxygenPDFChemistry.java:434)
     [exec]    at com.oxygenxml.chemistry.OxygenPDFChemistry.process(OxygenPDFChemistry.java:163)
     [exec]    at com.oxygenxml.chemistry.OxygenPDFChemistry.main(OxygenPDFChemistry.java:135)
     [exec] Caused by: org.apache.fop.fo.ValidationException: Missing attribute on fo:basic-link: Either external-destination or internal-destination must be specified. (See position 384:339)
     [exec]    at org.apache.fop.events.ValidationExceptionFactory.createException(ValidationExceptionFactory.java:38)
     [exec]    at org.apache.fop.events.EventExceptionManager.throwException(EventExceptionManager.java:58)
     [exec]    at org.apache.fop.events.DefaultEventBroadcaster$1.invoke(DefaultEventBroadcaster.java:173)
     [exec]    at com.sun.proxy.$Proxy2.missingLinkDestination(Unknown Source)
     [exec]    at org.apache.fop.fo.flow.BasicLink.bind(BasicLink.java:95)
     [exec]    at org.apache.fop.fo.FObj.processNode(FObj.java:126)
     [exec]    at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:291)
     [exec]    at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:179)
     [exec]    at net.sf.saxon.event.ContentHandlerProxy.startContent(Unknown Source)
     [exec]    at net.sf.saxon.event.NamespaceReducer.startContent(NamespaceReducer.java:216)
     [exec]    at net.sf.saxon.event.ComplexContentOutputter.startContent(ComplexContentOutputter.java:714)
     [exec]    at net.sf.saxon.event.ReceivingContentHandler.startElement(ReceivingContentHandler.java:370)
     [exec]    at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
     [exec]    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
     [exec]    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
     [exec]    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
     [exec]    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
     [exec]    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
     [exec]    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
     [exec]    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
     [exec]    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
     [exec]    at net.sf.saxon.event.Sender.sendSAXSource(Sender.java:451)
     [exec]    at net.sf.saxon.event.Sender.send(Sender.java:179)
     [exec]    at net.sf.saxon.jaxp.IdentityTransformer.transform(IdentityTransformer.java:375)
     [exec]    at com.oxygenxml.chemistry.stages.Stage_6_FOP.process(Stage_6_FOP.java:225)
     [exec]    ... 3 more

dita2pdf-css:

clean-temp:

BUILD SUCCESSFUL
Total time: 28 seconds

The process finished with exit code: 0

Re: A css mess part 1

Posted: Thu Jan 04, 2018 1:27 pm
by Radu
Hi,

Just to update this thread, Timo had a couple of links to PDFs in the DITA Map and somehow they triggered this problem, I will continue to help him via email.

Regards,
Radu