Re: [xsl] strong typed variable with restriction ?

Subject: Re: [xsl] strong typed variable with restriction ?
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Wed, 2 Feb 2011 11:23:47 +0000
>> You get the error because you must have an xsl:otherwise, you can't
>> just have xsl:whens.
>
> I am confused, http://www.w3.org/TR/xslt20/#xsl-choose says
>
> <xsl:choose>
>  <!-- Content: (xsl:when+, xsl:otherwise?) -->
> </xsl:choose>
>
> so in general the xsl:otherwise is optional.

Hmm, has that always been the case?   I definitely remember having to
alter some code to add xsl:otherwise's to the choose blocks....
perhaps it was the same situation (return type on the function) and I
confused the error to mean an otherwise was now required...


--
Andrew Welch
http://andrewjwelch.com

Current Thread