RE: external-graphic

Hi,

            I tryed this:

          <xsl:variable name="absoluteURI" select="resolve-uri(@src,
base-uri(.))" as="xs:anyURI"/>
          But it didn´t work.
          Two errors:
          Error in expression resolve-uri(@src, base-uri(.)): Unknown system
function: resolve-uri; 
and
          Attribute as is not allowed on this element.

Is there another way to solve this? The file that i need to check is an url.

Thanks,

Alexandre 

Vladimir Rodimyuk wrote:
> 
> 
> Hi Alexandre,
> 
> I think you should use XSLT extension function to perform this check.
> I believe you will find very helpful this post:
> http://www.biglist.com/lists/xsl-list/archives/200506/msg00400.html
> 
> XSL-FO specification does not contain such functionality (and I think
> should not because it describes how the document should look).
> 
> The formatter on the stage of producing PDF checks whether the referenced
> image exists in order to put it into the stream. But it just replaces
> images being missed with default error image.
> 
> Respectfully,
> Volodymyr Rodymyuk
> 
>> -----Original Message-----
>> From: www-xsl-fo-request@w3.org [mailto:www-xsl-fo-request@w3.org] On
>> Behalf Of axdmoraes
>> Sent: Tuesday, September 11, 2007 9:00 PM
>> To: www-xsl-fo@w3.org
>> Subject: external-graphic
>>
>>
>>
>> HI,
>>
>>     is there a way to check if an image exists and if it true i execute
>> external-graphic.
>>     Or external graphic can return a value if it didn´t find the
>> imagefile?
>>
>> Thanks,
>>
>> Alexandre
>> --
>> View this message in context: http://www.nabble.com/external-graphic-
>> tf4424287.html#a12620351
>> Sent from the w3.org - www-xsl-fo mailing list archive at Nabble.com.
>>
> 
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/external-graphic-tf4424287.html#a12641476
Sent from the w3.org - www-xsl-fo mailing list archive at Nabble.com.

Received on Wednesday, 12 September 2007 18:23:57 UTC