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 without xml:base


Hi,

sorry for the late answer, but I was busy with other things.

On Mittwoch, 5. März 2008, Mansour wrote:
> Thomas, I am having some problems with the generated xml:base, so yes,
> it my case it's harmful. The issue is, I have a directory hierarchy
> like this:
> book/chapter/section/images
>
> In each directory there's a docbook file to be included in the upper
> level  document.  So, I have in section1.xml and XInclude with a
> reference to images/image1.svg, now the issue is the final generated
> "FO" has xml:base "section/images" only.

Do I understood it right: The FO file contain xml:base attributes? Where 
do they came from? I never saw this happen.


> [...]
>
> I am including the whole SVG graphic file in my documents so there's no
> need for xml:base attribute especially if it's behaving this way. I
> looked around for a way to disable this attribute but couldn't find.

That works for SVG, but obviously not with formats like JPEG, PNG, ... :)


> My way around was a little bit weired. Since I am generating the SVG
> graphics from an xml files. I included the xml file and added a
> template to process it in my customization layer. This way it's not
> relying on an external graphics file but definitely it takes longer to
> compile the document. So it's working for me, but the original issue is
> not resolved, which is, the wrong xml:base attribute.

Did you know the parameter "keep.relative.image.uris" and "img.src.path" 
(omitted)? Cited from the webpage[1,2]:

  If non-zero, relative URIs (in, for example fileref attributes) will
  be used in the generated output. Otherwise, the URIs will be made
  absolute with respect to the base URI.

  Note that the stylesheets calculate (and use) the absolute form for
  some purposes, this only applies to the resulting output.

Maybe you should try this first.


Tom

-------
[1] 
http://docbook.sourceforge.net/release/xsl/current/doc/fo/keep.relative.image.uris.html
[2] 
http://docbook.sourceforge.net/release/xsl/current/doc/fo/img.src.path.html

-- 
Thomas Schraitle


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