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] |
Try the version of common/common.xsl in CVS now. It wasn't recursing like it was supposed to.
Also, if you are using xsltproc, be sure to use a version based on libxml2 version 2.6.11 or later. There was a bug in xml:base processing in versions before that.
Cheers, Mark
Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net
----- Original Message ----- From: "Jeffrey Yasskin" <jyasskin@gmail.com>
To: "Bob Stayton" <bobs@sagehill.net>
Cc: <docbook-apps@lists.oasis-open.org>
Sent: Thursday, September 09, 2004 7:47 AM
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.
-- ____________________________________________________________ Mark Johnson <mrj@debian.org> Debian XML/SGML: <http://debian-xml-sgml.alioth.debian.org> Home Page: <http://dulug.duke.edu/~mark/> GPG fp: DBEA FA3C C46A 70B5 F120 568B 89D5 4F61 C07D E242
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |