on 3/23/02 6:07 AM, "Geir Magnusson Jr." <[EMAIL PROTECTED]> wrote:

> On 3/21/02 11:16 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> 
>> jon         02/03/21 20:16:47
>> 
>> Modified:    xdocs    index.xml
>> Log:
>> found out about the ugly xsl:choose
> 
> Is that really true?  I thought I recalled one of my clients using
> if/elseif, but as a I look, I can't find it in the XSLT docs...

Yea, xsl:choose is the alternative. Ie, there would be no way to easily
write something like this:

<xsl:if>
    </xsl:else> <-- ????? Doesn't make sense to a parser
</xsl:if>

I swear, the people who came up with XSL were smoking crack. They probably
created the if statement and didn't think about the fact that there is no
way to do an else, so they came up with a hack which is the xsl:choose
syntax in order to get around the fact that they didn't think about else in
the first place...

-jon


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to