xsl-list
[Top] [All Lists]

RE: Possible to pass 'empty sequence' to function?

2005-03-31 03:04:16

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  

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--