Hussein,

It worked perfectly with :
concatenate("url('", xpath("resolve-uri('icons/nice.gif', 
$styleSheetURL)"), "')")

Thanks for your help,
Lionel Barth

Hussein Shafie a ecrit le 11/09/06 18:19:
> Lionel Barth wrote:
>   
>> I should have read the documentation more carefully.
>>     
>
> No problem. We have tons of hard-to-read documentation. It is almost
> impossible not to miss something.
>
>
>
>   
>> Another question : is it possible to express the current configuration
>> directory (the "%C" process variable) in the css files?
>> I try to have a collapsible element that display icons in respect with
>> some attributes as collapsed-content and a regular attribute editor as
>> not collapsed-content. I would like these icons relatives to the
>> configuration directory for easier deployment, someting like :  
>> concatenate("image('", %{C},
>> xpath("name(targeteleme...@targetattr='yes']/@targetAttr)"), ".gif')")
>>
>>     
>
> Disclaimer: I've not tested what follows before sending this email.
> However, unless there is bug in XXE, this should work.
>
>
>
> --> The (undocumented?) XPath variable "$styleSheetURL" should allow you
> to refer the CSS file and hence to your configuration directory.
>
> Example (without concatenate() to make it clearer):
> ---
> xpath("resolve-uri('icons/nice.gif', $styleSheetURL)")
> ---
>
> (resolve-uri() is documented here:
> http://www.xmlmind.com/xmleditor/_distrib/doc/commands/xpathextfunc.html )
>
>
> --> Simpler and more efficient, because in such case your icons will be
> cached, replace:
> ---
> "image('", %{C},
> ---
> by:
> ---
> "url('"
> ---
>
> where url(XXX) (or url("XXX") or url('XXX')) is the standard CSS
> construct. See http://www.w3.org/TR/REC-CSS2/syndata.html#uri
>
>  
> --
> XMLmind XML Editor Support List
> xmleditor-support at xmlmind.com
> http://www.xmlmind.com/mailman/listinfo/xmleditor-support
>   

Reply via email to