cyplp at free.fr wrote:
>
> I may find a bug with the css with XXE.
>
> I write a .xxe for use xxe on mac win and linux.
>
> I try to have the same file for the three configurations.
>
> In my .xxe file, i have wrote : <command name="putAttribute"
> parameter="preview 'file:%P%STmp%S%R%Stex%0.png'"/>
>
> and in my css file : mtex[preview^="file"] { content:
> image(attr(preview)); }.
>
> This works fine on unix but on windows I have to write <command
> name="putAttribute" parameter="preview 'file:/%P%STmp%S%R%Stex%0.png'"/>
>
> and this doesn't work on unix :( .
>
> I'm not sure but I think there is a bug here. (Or I forget something)
>
Not a bug.
file:XXX denotes an URL.
"%P" is a file path: something like "C:\foo\bar" on Windows. And
something like "C:\foo\bar" (i.e. backslashes) cannot be part of an URL.
You need to write:
<command name="putAttribute" parameter="preview '%p/Tmp/%R/tex%0.png'"/>
See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/macro_vars.html