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

Re: [xsl] Returning item type of variable (problems with maps)


Subject: Re: [xsl] Returning item type of variable (problems with maps)
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Fri, 28 Mar 2014 09:38:16 +0000

On 28 Mar 2014, at 04:46, Dimitre Novatchev <dnovatchev@xxxxxxxxx> wrote:

> On Wed, Mar 26, 2014 at 3:57 PM, David Rudel <fwqhgads@xxxxxxxxx> wrote:
>> Is there a simple way to report the type of a variable for de-bugging
purposes?
>
> Hi David,
>
> You can use the f:type() function from FXSL 2.x
>

Looks as if this might need upgrading to handle new 3.0 types (functions,
maps). Which are a bit more difficult to do using "instance of" tests, because
the set of types to test for isn't easily enumerated.

Michael Kay
Saxonica


Current Thread