[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] xml:base and DocBook stylesheets
Hi Elliotte, Some xml:base problems may be due to the stylesheets, and some may be due to bugs in the way the XInclude parser adds xml:base attributes (I've reported several over the last couple of years on libxml2). I could track this down if you submit a bug report on sourceforge with a compact set of files that demonstrate the problem, and let me know how you are processing the files. Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "Elliotte Harold" <elharo@metalab.unc.edu> To: <docbook-apps@lists.oasis-open.org> Sent: Thursday, August 10, 2006 12:09 PM Subject: [docbook-apps] xml:base and DocBook stylesheets > My toolchain includes documents from various directories using XInclude. > xml:base attributes are applied as necessary to keep relative URIs > pointing at the right locations. This all seems to work well enough with > the XSL-FO stylesheets. I.e. the pictures show up in the right places in > the PDF output. However, with HTML and XHTML output this fails. IN > particular, in the XHTML output, I'm seeing images like this: > > <img > src="file:/Users/elharo/Projects/workspace/CS905/build/week13////Users/elharo/Projects/workspace/CS905/build/awt.gif" > width="107"/> > > That should be > file:/Users/elharo/Projects/workspace/CS905/build/week13/awt.gif > > > The DocBook input looks like this > > <chapter > xml:base="file:///Users/elharo/Projects/workspace/CS905/build/week13/week13.xml"> > ... > <imagedata fileref="awt.gif" width="107px" depth="140px"/> > ... > </chapter> > > > My guess is that the stylesheets are not properly handling cases like > this when keep.relative.image.uris is 0. It appears to be resolving the > relative URLs against the document's base URI rather than the actual base > URI specified by xml:base. Thoughts? > > > -- > Elliotte Rusty Harold elharo@metalab.unc.edu > Java I/O 2nd Edition Just Published! > http://www.cafeaulait.org/books/javaio2/ > http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]