array type declaration not recognized.

Ihe Onwuka <[email protected]>
Newsgroups gmane.text.xml.saxon.help
Message-ID <CALfs7+w1hU30p3K=mmohFbjych+wbq8AbRMUxJAnKMWS7CKExA@mail.gmail.com>
On Mon, Aug 17, 2020 at 12:10 PM Ihe Onwuka <[email protected]> wrote:

> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
>                 xmlns:map="http://www.w3.org/2005/xpath-functions/map"
>         version="3.0" expand-text="yes" exclude-result-prefixes="xs map">
>
>    <xsl:variable name="actions" as="map(xs:string, array(xs:string)">
>       <xsl:map>
>            <xsl:map-entry key="'person'" select="['boy','girl']"/>
>       </xsl:map>
>    </xsl:variable>
>
>    <xsl:template
> name="xsl:initial-template">{map:get($actions,'boy')}</xsl:template>
> </xsl:stylesheet>
>
> This stylesheet errors but should not
>
> Error in xsl:variable/@as on line 5 column 70 of test.xsl:
>   XPST0003  expected ")", found "<eof>"
> Errors were reported during stylesheet compilation
>
>
>

_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[email protected]
https://lists.sourceforge.net/lists/listinfo/saxon-help
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.