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

Well, I've retested this because I suspected you found a bug in
concatenate(). This was not the case:

* Simple test #1: concatenate("url('", xpath('icons/nice.gif'), "')")
indeed gives a broken picture icon.

* Simple test #2: concatenate("url('", xpath("'icons/nice.gif'"), "')")
works fine.

Reason: icons/nice.gif is not a valid XPath expression
'icons/nice.gif' is a valid XPath expression (a string literal).

The syntax of xpath() is
xpath(quoted_CSS_string_which_contains_an_XPath_expression).

Ideally, it should be xpath(XPath_expression), because all these quotes
are misleading.


Reply via email to