Project

Profile

Help

Internal error evaluating template at line 34 in module

Added by Thomas Mäsing over 9 years ago

Hi,

for transforming complex source dcocuments I got a "Internal error evaluating template at line 34 in module" exception. Less complex source documents are working.

I used the following code snippets:

<xsl:template match="oe:item"> fo:block <fo:marker marker-class-name="productdata"> <fo:block font-weight="bold"> fo:block <xsl:value-of select="@primaryKey"/> </fo:block> fo:block <xsl:value-of select="key('resources', 'valid-from')/@value"/> xsl:text: </xsl:text> <xsl:value-of select="@validFrom"/> </fo:block> </fo:block> </fo:marker> </fo:block> <xsl:apply-templates select="/oe:openEngine/oe:exportMetadata/oe:spreadsheet/oe:sheet"> <xsl:with-param name="item" select="."/> </xsl:apply-templates> <xsl:if test="position() != last()"> <fo:block break-after="page"/> </xsl:if> </xsl:template>

<xsl:function name="custom:checkPropertyNotEmpty"> <xsl:param name="col"/> <xsl:param name="item"/> <xsl:variable name="key" select="$col/@key"/> xsl:choose <xsl:when test="$item/oe:property[@columnKey = $key]/oe:value">true</xsl:when> <xsl:when test="$item/oe:property[@columnKey = $key]/oe:binary/@binaryKey">true</xsl:when> <xsl:when test="normalize-space($item//*[@columnKey = $key])">true</xsl:when> xsl:otherwisefalse</xsl:otherwise> </xsl:choose> </xsl:function>

           <xsl:apply-templates select="oe:column[custom:checkPropertyNotEmpty(., $item) = 'true']">
                <xsl:with-param name="item" select="$item"/>
                <xsl:with-param name="level" select="0"/>
            </xsl:apply-templates>
            <xsl:apply-templates select="oe:sheet/oe:column[custom:checkPropertyNotEmpty(., $item) = 'true']">
                <xsl:with-param name="item" select="$item"/>
                <xsl:with-param name="level" select="0"/>
            </xsl:apply-templates>

Any ideas what is going wrong?

Thanks and best regards Thoams


Replies (1)

RE: Internal error evaluating template at line 34 in module - Added by Michael Kay over 9 years ago

This message covers a wide range of internal failures, so we would need either (a) a full stack trace of the exception, or (b) a source document to reproduce the problem -- preferably both.

Feel free to raise this directly on the bug tracker when you have more information, since "Internal error" definitely implies a bug.

    (1-1/1)

    Please register to reply