This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] relative graphic uri with entityref
- From: "Mauritz Jeanson" <mj at johanneberg dot com>
- To: <simone dot pacilli at giustizia dot it>, <docbook-apps at lists dot oasis-open dot org>
- Date: Mon, 12 Jul 2004 14:18:02 +0200
- Subject: Re: [docbook-apps] relative graphic uri with entityref
- References: <40F26BFD.1050105@giustizia.it>
- Reply-to: "Mauritz Jeanson" <mj at johanneberg dot com>
----- Original Message -----
From: "Simone Pacilli"
> I tryed to execute what I read in
> http://www.sagehill.net/docbookxsl/GraphicsLocations.html, but the html
> output is never of the type:
>
> <IMG src="graphics/tutorial3.png">
>
> but always of the absolute type like the following
>
> <IMG src="file:/root/.../tutorial3.png">.
>
> I also tryed putting "static-catalog=yes" in my
> CatalogManager.properties but I did not succeed.
>
> Is there a way to use "entityref" and obtain relative uri in html output
> or is it necessary to use "fileref" ?
With "entityref", the filepath is obtained with the unparsed-entity-uri() function, which always returns an absolute URI with Saxon and Xalan. With xsltproc (libxslt 1.1.8), it is relative if the SYSTEM identifier is relative.
According to the XSLT 1.0 specification, the behaviour of Saxon and Xalan is the correct one:
"if the system identifier is a relative URI, it must be resolved into an absolute URI using the URI of the resource containing the entity declaration as the base URI" (http://www.w3.org/TR/xslt#unparsed-entities).
/MJ
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.