[xep-support] Transform error

From: Safranek IstvŠn <safranek.istvan@postabank.hu>
Date: Wed Apr 13 2005 - 07:24:54 PDT

Hi!

I'm totally new to XEP, and I have a transforming error:

c:\XEP>java -jar lib/saxon.jar -o FOLERT_minta.fo FOLERT_minta.xml FOLERT_minta.xsl
Error at xsl:choose on line 53 of file:/c:/XEP/FOLERT_minta.xsl:
  Only xsl:when and xsl:otherwise are allowed here
Error at xsl:choose on line 53 of file:/c:/XEP/FOLERT_minta.xsl:
  Only xsl:when and xsl:otherwise are allowed here
Error at xsl:choose on line 53 of file:/c:/XEP/FOLERT_minta.xsl:
  Only xsl:when and xsl:otherwise are allowed here
Transformation failed: Failed to compile stylesheet. 3 errors detected.

Here is the 53th and the following lines from the FOLERT_minta.xsl file:

      <xsl:choose>
        <xsl:when test="dd_ccy != settle_ccy">
          <para beforespace="5" fontsize="10" alignment="3">
            <xsl:value-of select="dd_amt"/>
                <xsl:value-of select="dd_ccy"/>,
            <xsl:value-of select="HUF_foly"/>
                <xsl:value-of select="buy_rate"/>
            <xsl:value-of select="dd_ccy"/>
            <xsl:value-of select="acct_59"/>
                <xsl:value-of select="settle_ccy"/>
                <xsl:value-of select="dd_date"/>
          </para>
          <para fontsize="10" alignment="3">
            <xsl:value-of select="billed_amt"/>
                <xsl:value-of select="billed_ccy"/>
                <xsl:value-of select="sell_rate"/>
            <xsl:value-of select="billed_ccy"/>
                <xsl:value-of select="HUF_ktg"/>
          </para>
          <para fontsize="10" alignment="3">
          </para>
        </xsl:when>
        <xsl:otherwise>
          <para beforespace="5" fontsize="10" alignment="3">
            <xsl:value-of select="dd_amt"/>
                <xsl:value-of select="dd_ccy"/>
            <xsl:value-of select="acct_59"/>
                <xsl:value-of select="settle_ccy"/>
            <xsl:value-of select ="dd_date"/>
          </para>
          <para fontsize="10" alignment="3">
            <xsl:value-of select="billed_amt"/>
                <xsl:value-of select="billed_ccy"/>
          </para>
        </xsl:otherwise>
      </xsl:choose>

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html
Received on Wed Apr 13 07:59:03 2005

This archive was generated by hypermail 2.1.8 : Wed Apr 13 2005 - 07:59:05 PDT