SVG Doc Type Declaration issues

Post here questions and problems related to editing and publishing DITA content.
mross
Posts: 15
Joined: Wed Oct 03, 2018 10:36 pm

SVG Doc Type Declaration issues

Post by mross »

We have SVG exported from Draw.io as a flow chart that has links to external web urls.

Draw.io exports the svg with this doc type declaration:
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg10.dtd">

ISSUE: Oxygen 23.1 webhelp and CSS to PDF doesn't generate the image at all, but the base html5 transform does.

If I change the doc type declaration to that of a new SVG created out of Oxygen 23.1 as:
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010 ... /svg10.dtd">

Then the webhelp and CSS to PDF generates the SVG.

Our framework has the SVG doc type enabled. I see that the Oxygen SVG folder contains the dtds for svg10.dtd and svg11.dtd

How do I get Oxygen to process the default Draw.io doc type declaration:
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg10.dtd">
marius
Posts: 39
Joined: Thu Mar 05, 2009 11:44 am

Re: SVG Doc Type Declaration issues

Post by marius »

Hello,

I exported a flow chart I've created from draw.io, and the doc type declaration I get is:

Code: Select all

<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
which is different from the one you get.
After adding this svg in a dita topic and running the default DITA Map WebHelp Responsive transformation scenario I see no issue in the WebHelp output, the svg image appears just fine.
Can you post here a small svg sample which is not generated by the WebHelp transformation?

Regards,
Marius
Marius Ciolacu
Syncro Soft / Oxygen XML
mross
Posts: 15
Joined: Wed Oct 03, 2018 10:36 pm

Re: SVG Doc Type Declaration issues

Post by mross »

In draw.io or draw.net on export, it looks like I had to enable the setting to "Include a copy of my diagram" for it to work in webhelp.
Thanks
Post Reply