OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: xml:base and stylesheets


/ Jirka Kosek <jirka@kosek.cz> 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 <ndw@nwalsh.com>      | Someone has changed your life.
http://www.oasis-open.org/docbook/ | Save? (y/n)
Chair, DocBook Technical Committee |

PGP signature



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]