Dominique,

you're right, it's a bug. We'll look into it.

Tom

Dominique ROUSSEAU wrote:

> I have the following :
> 
> ### The XML
> $ cat t.xml 
> <?xml version="1.0"?>
> <form>
>         <variables>
>                 <variable name="test1" value="Mon test 1"/>
>         </variables>
> 
>         <field name="test1"/>
> </form>
> 
> ### The XSL
> $ cat t2.xsl
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 
> <xsl:output
>         method="html"
>         indent="yes"
>         encoding="iso-8859-1"
> />
> 
> <xsl:template match="field">
>   <xsl:variable name="local_value">
>     <xsl:value-of select="//variable[@name=current()/@name]/@value"/>
>   </xsl:variable>
> </xsl:template>
> 
> </xsl:stylesheet>
> 
> 
> when I run these on sablotron, I get :
> 
> $ sabcmd t2.xsl t.xml
> sabcmd: expr.cpp:3470: int Expression::optimizePositional(): Assertion
> `!"invalid predicate type"' failed.
> Aborted
> 
> Any idea ?
> 
> Thanks
> 
> Dom
> 

Reply via email to