It seem to be OK in 0.50.

Pavel

Steve Tinney wrote:

> Forgive me for not having installed 0.50 yet, but I just came across
> this bug in 0.44 and thought it worth reporting anyway in case it is
> still there.
> 
> The following should produce 'b', but dumps core with the following
> assertion under Linux:
> 
> Sablotron$ sabcmd test.xsl test.xml
> sabcmd: expr.cpp:1558: char * Expression::tostringCharPtr(): Assertion
> `(functor == EXF_ATOM) && (type == EX_STRING)' failed.
> Aborted (core dumped)
> 
> test.xsl:
> 
> <xsl:stylesheet version="1.0" 
>   xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> 
> <xsl:template match="a">
>   <xsl:value-of select="substring-before(@x, '.')"/>
> </xsl:template>
> 
> </xsl:stylesheet>
> 
> test.xml:
> 
> <a x="b.c"/>
> 
> Wrapping the attribute in an explicit string() is good as a workaround.
> 
> Thanks for Sablotron!
> 
>  Steve


-- 
Pavel Hlavnicka
Ginger Alliance Ltd.
Prague; Czech Republic

Reply via email to