Re: errors during fo:external-graphic processing

Tony Graham <[email protected]> Mon, 12 Sep 2005 10:17:10 +0100
Newsgroups gmane.text.xml.xmlroff.general
Message-ID <[email protected]>
Stefan Seefeld <[email protected]> writes:
> Tony Graham wrote:
>> Committed (with modifications), thank you.
>
> Great, thanks !

Thank you both for pushing for implementing the capability and for doing the
hardest part of the work with your patch.

> I don't know the xsl-fo specs very well, but does the 'src' attribute in
> external-graphic allow any uri type, in particular, any scheme ? In that cases,
> you should probably use libxml2's nanohttp module to load the file content,
> instead of assuming it is a local file.

Yes, it could be a HTTP URI.

I did start looking at nanohttp yesterday (and you'd also have to consider
nanoftp), but I'm not considering holding up the release until they are
added.  We can work on those for the next release.

> Also, I note you have stripped off the content-type attribute with the
> libfo-compat.xsl. What content-types does xmlroff support right now, and

As you pointed out, xmlroff can't parse content-type values.

> how does it detect them ? By file extension ? (I note you are using
> 'gdk_pixbuf_new_from_file' but documentation for that only indicates
> 'The file format is detected automatically.' I think supported formats
> have to be well-documented.

You know as much as I do about supported file formats, since all I know is
that line from the GDK documentation.

I had forgotten that 'content-type' is an extended conformance requirement,
whereas we're still targetting basic conformance, so while 'content-type'
support would be nice to have, it is not yet essential.

I have added comments to the conformance information to indicate that xmlroff
only does local files and the image formats supported by the underlying image
library.

We can add tests to the testsuite to show what common file formats are
supported and what aren't.

Regards,


Tony.



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf