Re: (no subject)

sullivandt <[email protected]>
Newsgroups gmane.text.xml.saxon.help
Message-ID <6Xgq3XtUV0oroCwYtdepKtxJtlaI-U515dfeYeko8knu15RBw-uxJwov-tLGrt1cQq4k7NbwRNhN3eCVKeABLmmF0m8ivfqLTcri5T_f_T4=@danal.com>
The end of the string that starts with "map(... should have two closing parans.

"map(xs:string, array(xs:string))">

Sent with [ProtonMail](https://protonmail.com) Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, August 17, 2020 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.