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] Dealing with xml:base when processing ulinks to html


Thanks for the quick answer and for thinking about xml:base in the
next version of the stylesheets.

However, the following tree of documents breaks the relative-uri
template currently in CVS:
--- article.xml ---
<article><xi:include href="a/para.xml"
xmlns:xi="http://www.w3.org/2001/XInclude"/></article>
--- a/para.xml ---
<para>
<xi:include href="b/inlinegraphic.xml"
xmlns:xi="http://www.w3.org/2001/XInclude"/>
</para>
--- a/b/inlinegraphic.xml ---
<inlinegraphic fileref="img.gif"/>
-------
Then running `xsltproc --xinclude <cvs-HEAD/xsl/html/docbook.xsl>
article.xml` returns: "... <p><img
src="b/img.gif"></p></div></body></html>" which isn't the right img
link.

The relevant problem is that @xml:base's value can be a relative URI.
I'm happy to try to fix this if you don't have time.

Jeffrey

> The next release of the XSL stylesheets will resolve xml:base attributes
> inserted by XIncludes, but only for references to graphics files.  The ulink
> url is never processed by the stylesheet because it doesn't know anything
> about the url.
>
> If you want to customize it to do so, you could take a look at the template
> named 'relative-uri' in common/common.xsl in the CVS tree, or wait for the
> next release.


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