This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]