[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: 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/
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]