[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
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:
Only one sequence type is allowed and function overloading with different types doesn't work. So does a simple solution exist here?
[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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Is there any way to ident, David Carlisle | Thread | Re: [xsl] Declaring more than one t, David Carlisle |
Re: [xsl] saxon:try(), Colin Adams | Date | Re: [xsl] Declaring more than one t, David Carlisle |
Month |