[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
Well, xsltproc is based on the libraries in libxml2, so they are tied together somewhat. I just tested it with libxml2 2.6.12 and libxslt 1.1.9, and they work fine. Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "Mark Johnson" <mrj@debian.org> To: "Bob Stayton" <bobs@sagehill.net> Cc: "Jeffrey Yasskin" <jyasskin@gmail.com>; <docbook-apps@lists.oasis-open.org> Sent: Thursday, September 09, 2004 11:16 AM Subject: Re: [docbook-apps] Dealing with xml:base when processing ulinks to html > Bob Stayton wrote: > > 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. > > But xsltproc is part of libxslt, not libxml2, so I'm not sure which > version is appropriate. > > 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 >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]