in sp_repr_read_file (see my message in the list for why I
didn't commit this change). However payment-outline.svg
still does not load with that change, with no error message.
I found that the reason for this is the check in
sp_document_new:
if (strcmp (sp_repr_name (rroot), "svg:svg") != 0) return
NULL;
For this document, which uses some non-primary SVG DTD, the
repr name of the root node turns out to be "ns:svg", not
"svg:svg", so this check fails. Mental, can you please look
into it? Looks like your namespace defaulting does not
always work.
I fixed this by using
doc = xmlReadFile (localFilename, NULL,
XML_PARSE_RECOVER | XML_PARSE_NOENT | XML_PARSE_DTDLOAD |
XML_PARSE_NONET);
in sp_repr_read_file (see my message in the list for why I
didn't commit this change). However payment-outline.svg
still does not load with that change, with no error message.
I found that the reason for this is the check in
sp_document_new:
if (strcmp (sp_repr_name (rroot), "svg:svg") != 0) return
NULL;
For this document, which uses some non-primary SVG DTD, the
repr name of the root node turns out to be "ns:svg", not
"svg:svg", so this check fails. Mental, can you please look
into it? Looks like your namespace defaulting does not
always work.