The patch worked. Thank you!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sam Brauer : Systems Programmer : [EMAIL PROTECTED]
On Sat, 21 Apr 2001, Tom Kaiser wrote:
> Thanks Sam; please use the attached patch to fix this bug. Let us know
> whether it worked. Apply the patch in the engine subdirectory of the 0.52
> distro.
>
> Tom
>
> On Wed, 18 Apr 2001 14:48:49 -0400 (EDT)
> Sam Brauer <[EMAIL PROTECTED]> wrote:
>
> > After upgrading from 0.51 to 0.52 I found that some of my stylesheets no
> > longer worked. The problem appears is related to the evaluation
> > of arithmetic expressions.
> >
> > Here's the error message I get:
> > expr.cpp:1435: const class Str & Expression::tostringRef() const:
> > Assertion `(functor == EXF_ATOM) && (type == EX_STRING)' failed.
> >
> > Here's a very simplified example that causes the error:
> > XML input document ------------------------------------------------
> > <?xml version='1.0' encoding='UTF-8'?>
> > <page>
> > <item>23</item>
> > </page>
> >
> >
> > XSL stylesheet ------------------------------------------------
> > <?xml version='1.0' encoding='UTF-8'?>
> > <xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
> > version='1.0'>
> >
> > <xsl:template match='page'>
> > <page>
> > item plus one = <xsl:value-of select='item + 1'/>
> > </page>
> > </xsl:template>
> >
> > </xsl:stylesheet>
> >
> >
> > Thanks,
> > Sam Brauer
> >
> >
>