<xsl:template match="[EMAIL PROTECTED]'true']">
        <A href="{page-link-url}"><xsl:value-of select="text"/></A>&#160;
</xsl:template>

-----Original Message-----
From: Tarek M. Nabil [mailto:[EMAIL PROTECTED]
Sent: 19 November 2002 13:04
To: Xalan-J (E-mail)
Subject: If condition


I have the following <page-link> tag in my XML

<page-link enabled="false">
        <text>Next</text>

<page-link-url>/promotion/promotionTypeDetails.jsp?PromTypeID=14&amp;PromBN=
2</page-link-url>
</page-link>

and the corresponding tag in the XSL

<xsl:template match="page-link">
        <A href="{page-link-url}"><xsl:value-of select="text"/></A>&#160;
</xsl:template>

I want to change this so it only outputs the A tag if enabled is true, how
do I do that?


Tarek M. Nabil
Software Engineer
ITWorx
[EMAIL PROTECTED]
Free Zone, Area 7 (B),
Block (J), Nasr City,
Cairo, Egypt
TEL.: 20-2-2766226
http://www.itworx.com


Reply via email to