[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] Declaring more than one type for a parameter in xsl:function?
Subject: [xsl] Declaring more than one type for a parameter in xsl:function?
From: Georges Schmitz <georges.schmitz@xxxxxxxxx>
Date: Wed, 09 Jan 2008 11:44:57 +0100
|
Hi,
I'm working with a xsl:function that should accept to different sequence
types in the same parameter (e.g. element a or b), or even an element
node and an atomic value like xs:string.
Pseudo example:
<xsl:function name="myf:funct" as="xs:string">
<xsl:param name="t" as="element(a) | element(b)"/>
...
or
<xsl:function name="myf:funct" as="xs:string">
<xsl:param name="t" as="element(b) | xs:string"/>
...
Only one sequence type is allowed and function overloading with
different types doesn't work. So does a simple solution exist here?
Thanks in advance,
Georges
|