RE: [xep-support] Transform error

From: François Torche <torche@i-minds.be>
Date: Thu Apr 14 2005 - 04:23:43 PDT

Hi,
 
xsl-list@lists.mulberrytech.com is probably a more appropriate ML to post your question.
 
Also, the problem occurs before line 53. So actually, you should post either the entire stylesheet or at least include the lines before 53.
 
regards,
François

________________________________

From: owner-xep-support@renderx.com on behalf of Safranek István
Sent: Wed 13/04/2005 16:24
To: xep-support@renderx.com
Subject: [xep-support] Transform error

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

-------------------
(*) 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 Thu Apr 14 05:03:56 2005

This archive was generated by hypermail 2.1.8 : Thu Apr 14 2005 - 05:03:56 PDT