Between “Switch else PHP” and “Choose otherwise XSLT”

Hi, Still know this switch control on PHP programming?
switch($var){
case $var="" : PHP statement ; break;
case $var="" : PHP statement ; break;
default : other PHP statement ; break;
}

Let’s equal it with XSLTransformer <XSLT:CHOOSE>
Check it out.!
<!-- Estimate that you are in a XML tag data -->
<xsl:choose >
<xsl:when test = "xml:value" >
XHTML statement
</xsl:when>
<xsl:when test = "xml:value" >
XHTML statement
</xsl:when>
<xsl:otherwise >
Other XHTML statement
</xsl:otherwise>
</xsl:choose>

Huehuehue…, Can you find the same thing between them..?
Actually, it’s not too hard to find the same thing, especially for a good programmer.

Yea, You’re right, the same thing what i mean, is structure, cos’ these programms use logicaly control by event on one statement which give another statement. ( do you what i mean..? ) I hope… :D
So, what are diferent if we use <xsl:if> ..?
Hahaha, I thing you are better than me to answered this.
Please tell me.

O ya… what i have been written may be wrong, please correct me too, cos i’m in learn about that.. :D

Leave a Comment