[xsl] XSL theory questions

Subject: [xsl] XSL theory questions
From: Zak McGregor <zak@xxxxxxxxxxxx>
Date: Tue, 29 May 2001 13:46:37 +0200
Hi all

Could anyone please explain a few things to me?

1 - Why the XSL spec does not allow for scoping of variables outside of
logical blocks? Would it have been that dificult to have added a scope
attribute to the <xsl:variable> declaration so that a variable could be
globally scoped?

2 -
<xsl:coose><xsl:when>...</xsl:when><xsl:otherwise>...</xsl:otherwise></xsl:choose>
seems awfully verbose. And slightly redundant, if you consider something
like <xsl:if>...</xsl:if> and the possibility of having similar
functionality within the <xsl:if> elements. Surely it would be easier to
have all tests with <xsl:if> elements, and having that itself inside
another element to get the equivalent of the <xsl:when> funcionality
without having introduced several elements for similar results?

Thanks

Cheers

Zak

--
====================================================================
Zak McGregor
http://www.carfolio.com - Specifications of cars online. Over 7000!
--------------------------------------------------------------------
Of course my password is the same as my pet's name.  
My macaw's name was Q47pY!3, but I change it every 90 days.
====================================================================

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread