Re: array type declaration not recognized.
Dimitre Novatchev <[email protected]>
| Newsgroups | gmane.text.xml.saxon.help |
|---|---|
| Message-ID | <CAK4KnZcaiCcH0W6LLrJSUOyUteg6K9kkcZhbzQAbkZnov-HxUQ@mail.gmail.com> |
> <xsl:variable name="actions" as="map(xs:string, array(xs:string)"> Must be: <xsl:variable name="actions" as="map(xs:string, array(xs:string)*)*"> On Mon, Aug 17, 2020 at 9:12 AM Ihe Onwuka <[email protected]> wrote: > > 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 -- Cheers, Dimitre Novatchev --------------------------------------- Truly great madness cannot be achieved without significant intelligence. --------------------------------------- To invent, you need a good imagination and a pile of junk ------------------------------------- Never fight an inanimate object ------------------------------------- To avoid situations in which you might make mistakes may be the biggest mistake of all ------------------------------------ Quality means doing it right when no one is looking. ------------------------------------- You've achieved success in your field when you don't know whether what you're doing is work or play ------------------------------------- To achieve the impossible dream, try going to sleep. ------------------------------------- Facts do not cease to exist because they are ignored. ------------------------------------- Typing monkeys will write all Shakespeare's works in 200yrs.Will they write all patents, too? :) ------------------------------------- Sanity is madness put to good use. ------------------------------------- I finally figured out the only reason to be alive is to enjoy it. _______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ [email protected] https://lists.sourceforge.net/lists/listinfo/saxon-help