Syntax help

Hello Tessiturians. I'm trying to make the date display as TBD for certain perfs in our email confirmation, and I know I'm screwing up the syntax. Can anybody correct me? What I've tried is below.

 

 

<xsl:if test="perf_no &lt; 5457">

                        <xsl:value-of select="$dt" />

                        <br/>                    </xsl:if>

                    <xsl:if test="perf_no &gt; 5456 and perf_no&lt;5463">

                        TBD<BR/>

</xsl:if>

 



[edited by: Amanda Freeman at 2:00 PM (GMT -6) on 12 Oct 2011]
  • Amanda, I think you are missing another </xsl:if> at the very end.

     

    Sabina

     

    From: Tessitura Technical Forum [mailto:forums-technical@tessituranetwork.com] On Behalf Of Amanda Freeman
    Sent: Wednesday, October 12, 2011 10:28 AM
    To: Sabina Spilkin
    Subject: [Tessitura Technical Forum] Syntax help

     

    Hello Tessiturians. I'm trying to make the date display as TBD for certain perfs in our email confirmation, and I know I'm screwing up the syntax. Can anybody correct me? What I've tried is below.

     

    <xsl:if test="perf_no &lt; 5457">

                            <xsl:value-of select="$dt" />

                            <br/>                    </xsl:if>

                        <xsl:if test="perf_no &gt; 5456 and perf_no&lt;5463">

                            TBD<BR/>




    This message was sent automatically to you by www.tessituranetwork.com because you subscribed to the Tessitura Technical Forum. You may reply to this message to post to the Technical forum or visit the site to search, read and post to the forums. In the interest of keeping the forum posts from becoming cluttered, we encourage you to delete previous message text from your reply before sending. Thank you!

  • Oh, actually, now that I look at it...I do have one I just forgot to paste it into my original post.

     

    Any other theories?



    [edited by: Amanda Freeman at 5:02 PM (GMT -6) on 12 Oct 2011]
  • Couldn't be something silly like a spacing issue.

    perf_no &lt; 5463 rather than perf_no&lt;5463

    Alternative may be to assign to a date_disp variable using the choose functionality (case statement)

    Mark

     

  • Thanks all, for your suggestions.

    I'm pretty sure I've got the syntax for the conditional correct, but now I'm getting an error that the variable pkgno is out of scope. Not sure how I did that. The only change was related to what to display for the perf dt.

    Any more suggestions? Thanks, Tessiturians.



    [edited by: Amanda Freeman at 6:57 PM (GMT -6) on 21 Oct 2011]