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: 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



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