Page 1 of 1

SVG Doc Type Declaration issues

Posted: Fri Aug 27, 2021 6:59 pm
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">

Re: SVG Doc Type Declaration issues

Posted: Mon Aug 30, 2021 4:06 pm
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

Re: SVG Doc Type Declaration issues

Posted: Mon Aug 30, 2021 6:38 pm
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