[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] strong typed variable with restriction ?
Subject: Re: [xsl] strong typed variable with restriction ? From: Michel Hendriksen <michel.hendriksen@xxxxxxxxx> Date: Wed, 2 Feb 2011 15:42:06 +0100 |
Or return a (fake) result and terminate then? On Wed, Feb 2, 2011 at 2:49 PM, Michael Kay <mike@xxxxxxxxxxxx> wrote: > On 02/02/2011 12:43, Michel Hendriksen wrote: >> >> Or add a message in an xsl:otherwise... >> >> <xsl:message terminate="yes|no"> >> >> <!-- Content:template --> >> >> </xsl:message> >> > > No, that won't solve the problem. If the declared type of the function is > element(), then the otherwise branch (whether explicit or implicit, whether > executed or not) must return an element. > > (It's not like Java, where you can declare a function to return String, and > still return null. If you want to allow a "null" return in XSLT, you need to > declare the result as "xs:string?"). > > Michael Kay > Saxonica
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] strong typed variable wit, Michael Kay | Thread | Re: [xsl] strong typed variable wit, Matthieu Ricaud-Duss |
Re: [xsl] strong typed variable wit, Michael Kay | Date | Re: [xsl] Strategies for complex pa, Dan Haley |
Month |
Keywords