Oxygen XML Editor
 
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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
 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor