RE: [xsl] Possible to pass 'empty sequence' to function?

Subject: RE: [xsl] Possible to pass 'empty sequence' to function?
From: "Andrew Welch" <ajwelch@xxxxxxxxxxxxxxx>
Date: Thu, 31 Mar 2005 11:04:16 +0100
M.K:
> It's presumably failing because you declared the type on
> xsl:param not to accept an empty sequence. For example if you
> write <xsl:param name="p" as="xs:string"/> then an empty
> sequence will not be accepted. If you change it to <xsl:param
> name="p" as="xs:string?"/> then an empty sequence is OK.

When is it a good idea to type a variable/param as "xs:string?" - what
benefits does it bring over not specifying the "as" attribute?

thanks
andrew

Current Thread