Hi Hussein,

concatenate("url('", xpath('icons/nice.gif'), "')") gives a broken 
picture icon while
concatenate("url('", 
xpath("resolve-uri('icons/nice.gif',$styleSheetURL)"), "')") works fine.

I really appreciate your efforts to find the simplest and most elegant 
solution to my problem, thanks a lot.

Best regards,
Lionel Barth

Hussein Shafie a ecrit le 13/09/06 10:14:
> Lionel Barth wrote:
>   
>> It worked perfectly with :
>> concatenate("url('", xpath("resolve-uri('icons/nice.gif',
>> $styleSheetURL)"), "')")
>>
>>     
>
> To my knowledge, when you use url(), your base is the URL of the CSS
> style sheet.
>
> This is not the case with image(), where your base is the URL of the
> document being edited.
>
> Therefore you just need to specify:
>
> concatenate("url('", xpath(XXXX), "')")
>
> where XXX evaluates to an URL relative to the directory containing the
> CSS style sheet.
>
> I'm saying this to allow you to find not only something that works, but
> the simplest and most elegant solution to your problem.
>  
> --
> XMLmind XML Editor Support List
> xmleditor-support at xmlmind.com
> http://www.xmlmind.com/mailman/listinfo/xmleditor-support
>   

Reply via email to