Urquhart, Russ wrote:
> I'm trying to update the css to display the image, where the file is
> contained in a sibling folder.
>  
> For the current folder, the specific image is in the ./Image folder.
>  
> I currently have:
>  
> graphic,
> InlineGraphic,
> ImageObject {
>  text-align: center;
>     content: image("./" attr(href), attr(width), attr(height), smooth);
> }
>  
> Where the value of href is something like Image/graphic.gif, i had
> thought this would pass image ./Image/graphic.gif which is correct.
> Instead i still get an unknown format error.
>  
> Is this the correct way to do this?
>  

* Adjacent items like "./" attr(href) are not automatically concatenated.

* Prepending "./" to attribute href is not useful. Please simply specify:

---
content: image(attr(href), attr(width), attr(height), smooth);
---

* If someday, you really need to concatenate a string to the value of
attribute href, something like this would work fine:

---
content: image(xpath("concat('./', @href)"), attr(width), attr(height));
---

But once again, prepending "./" to attribute href is not useful.


Reply via email to