xsl-list
[Top] [All Lists]

Re: [xsl] passing a sequence as a parameter

2008-02-26 07:25:46
Hi Colin,

On Tue, Feb 26, 2008 at 5:06 PM, Colin Adams
<colinpauladams(_at_)googlemail(_dot_)com> wrote:
Whether or not you can pass a sequence depends upon the processor. You
can do this with Gestalt, as it allows you to pass any XPath
expression. But you can't specify the type on the xsl:param with the
as attribute, which is unfortunate.

I think, it's logical not to have type specification (with, as
attribute) on xsl:param instruction. We pass parameters to the
stylesheet from outside, and making the input environment XSLT/XPath
type aware doesn't appear logical to me.

As currently happening, whatever that is passed to the stylesheet to
xsl:param variables, can be casted in the stylesheet to an appropriate
type. I think, this is the correct design ...


-- 
Regards,
Mukul Gandhi

--~------------------------------------------------------------------
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>
--~--