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: [docbook-apps] relative graphic uri with entityref


----- 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


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