OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] XInclude and Graphics


What version of libxml2 are you using?  This looks like a bug in xmllint
that was fixed awhile ago.  The xml:base that xmllint inserts in the
<section> element is wrong, as it should be relative to the xml:base in its
containing chapter element.  I think this was fixed in 2.6.15.  Unless it is
broken again.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Georges Schmitz" <georges.schmitz@heitec.de>
To: "docbook-apps" <docbook-apps@lists.oasis-open.org>
Sent: Monday, June 20, 2005 8:30 AM
Subject: [docbook-apps] XInclude and Graphics


> In my main file (stored in "D:\BAZL\doc\de\ml") I include a chapter with
> XInclude:
>
>   <xi:include href="../central/invoice/ch-invoice.xml" ...
>
> ch-invoice.xml is stored in "D:\BAZL\doc\de\central\invoice". The same
> directory contains sections, that are included in this chapter again
> with XIncludes:
>
>   <xi:include href="s-central-open-invoices.xml" ...
>
> In this sections, I use graphics:
>
>   <imagedata fileref="images/open-invoice-pos-detail.png" ...
>
> ------------
>
> Resolving all XIncludes with xmllint, my document looks like the
> following:
>
>   <chapter xml:base="../central/invoice/ch-invoice.xml">
>     <title>Fakturierung</title>
>     ...
>     <section xml:base="../central/invoice/s-central-open-invoices.xml">
>       <title>Verwaltung der offenen Rechnungen</title>
>       ...
>       <imagedata fileref="images/open-invoice-pos-detail.png"
>
>
> But the stylesheet produces the resulting FO output:
>
>   <fo:external-graphic
> src="url(../central/central/invoice/images/open-invoice-pos-detail.png)"
/>
>
> with "central/" included 2 times.
>
> Where does this error come from? I'm not sure, if the xml:base attribute
> of the resolved section should not simply be
>
>   <section xml:base="s-central-open-invoices.xml">
>
> (calculated from the included chapter) or if the current file is the
> determining factor (the latter would make more sense in my eyes).
>
> So is this a stylesheet bug?
>
> Thanks for explaining me,
> Georges
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>
>
>




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]