xsl-list
[Top] [All Lists]

[xsl] Map construction

2019-04-18 03:06:50
Hello,

is it legal to construct a map this way :

<xsl:variable name="myMap" as="map(xs:string,xs:string+)">
  <xsl:sequence select="map:entry('key1', ('val11','val12'))"/>
  <xsl:sequence select="map:entry('key2', ('val21','val22'))"/>
</xsl:variable>

Or should I construct a sequence of map:entry, and then apply map:merge on that sequence ?

Thanks in advance,
Christophe
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>