Next in thread → Next in month →

Re: xml:base and stylesheets

From
Norman Walsh <>
Date
2006-04-21T20:04:44+00:00
ID
Thread
Re: xml:base and stylesheets
/ Jirka Kosek <> was heard to say:
| Norman Walsh wrote:
|
|> If $keep.relative.image.uris=1, the output HTML has
|> <img src="../images/duck-small.png">
|> where it needs
|> <img src="images/duck-small.png">
|
| Why? I thought that $keep.relative.image.uris should left intact URL in this
| case.

It does. That's why the result is "../images/duck-small.png".

But the problem is that chapter1.xml is located in chaps/ and
output.html isn't. So what's "correct" from the point of view of the
XIncluded file *isn't* correct from the point of view of the generated
HTML.

And of course this can be made more complicated by chunking into a
different hierarchical structure than the input :-/

| I have not yet inspected your code very carefully, but are
| entityrefs handled in a some way? I think that external unparsed
| entity references were the case why fileref/entitref machinery was
| added initially.

I'm not sure how the entityref case can be made relative. As far as I
can tell, unparsed-entity-ref() always returns the absolute URI. I
did, however, fix the bug where I dropped it from the stripping
process accidentally.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <>      | Someone has changed your life.
http://www.oasis-open.org/docbook/ | Save? (y/n)
Chair, DocBook Technical Committee |
Next in thread → Next in month →