WebHelp: Chunking breaks CSS paths

Frank Ralf
Posts: 392
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

WebHelp: Chunking breaks CSS paths

Post by Frank Ralf » Thu Mar 03, 2016 7:26 pm

Hi,

I'm using chunk="to-content" for some topics (oXygen 16.1). The WebHelp gets built, but most of the styling is lost because the paths to the CSS files are wrong, for example <link href="my_styles.css"> instead of <link href="../../my_styles.css">.

I've read the related topics:

- Error when using chunking with the webhelp transformation
- Transformation error with cross-refs in Chunked topics

but haven't found a solution yet. Can this be a bug or am I missing some parameter setting regarding CSS paths in the transformation? Without chunking, the WebHelp transformation works ok.

Kind regards,
Frank
Frank Ralf
parson AG
www.parson-europe.com

bogdan_cercelaru
Posts: 214
Joined: Tue Jul 01, 2014 11:48 am

Re: WebHelp: Chunking breaks CSS paths

Post by bogdan_cercelaru » Fri Mar 04, 2016 10:29 am

Hello,

I've tested using chunk="to-content" for some topics in our sample DITA Map and a custom CSS, but I wasn't able to reproduce the issue that you described.
Please send us an email on support@oxygenxml.com with a sample DITA Map and the corresponding topics.

Regards,
Bogdan
Bogdan Cercelaru
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Frank Ralf
Posts: 392
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

Re: WebHelp: Chunking breaks CSS paths

Post by Frank Ralf » Tue Mar 08, 2016 12:39 pm

Hi Bogdan,

Thanks for checking and your kind offer. I will send you some sample files as soon as possible.

Kind regards,
Frank
Frank Ralf
parson AG
www.parson-europe.com

Frank Ralf
Posts: 392
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

Re: WebHelp: Chunking breaks CSS paths

Post by Frank Ralf » Tue Mar 29, 2016 3:24 pm

Hi Bogdan,

I couldn't reproduce the error with the standard WebHelp transformation either. I've sent you sample files together with their output at the email address given above.

Many thanks for your kind help.

Frank
Frank Ralf
parson AG
www.parson-europe.com

Frank Ralf
Posts: 392
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

Re: WebHelp: Chunking breaks CSS paths

Post by Frank Ralf » Tue Jul 05, 2016 3:54 pm

For the record, here's Bogdan's reply to my mail:

Hello,

I saw that your transformation uses a custom DITA-OT and probably a customization of the standard WebHelp plugin.

You should check your XSL customizations. In the standard DITA WebHelp transformation the CSS and JS paths are generated
by the "jsAndCSS" template found in "${DITA_DIR}/plugins/com.oxygenxml.webhelp/xsl/dita/desktop/common.xsl" file.
This template is called from "${DITA_DIR}/plugins/com.oxygenxml.webhelp/xsl/dita/desktop/fixup.xsl" file.

Regards,
Bogdan
Frank Ralf
parson AG
www.parson-europe.com

Frank Ralf
Posts: 392
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

Re: WebHelp: Chunking breaks CSS paths

Post by Frank Ralf » Wed Jul 06, 2016 2:06 pm

Hi Bogdan,

Thanks to your pointer I found the culprit. When comparing our customized common.xsl with com.oxygenxml.webhelp/xsl/dita/desktop/common.xsl I noticed that the com.oxygenxml.webhelp plugin and other, dependent ones in our framework differed substantially from the original ones. Looks like we branched the framework off of an older DITA-OT version. Updating the plugins solved the reported CSS issue.

Many thanks again for your help!
Frank
Frank Ralf
parson AG
www.parson-europe.com

Post Reply