xsl-list
[Top] [All Lists]

Re: [xsl] Using xsl:iterate inside <xsl:for-each-group> xslt 3.0

2020-08-19 08:36:44
That one does it perfectly. Thanks.

By replacing the $p in the map:merge(($p … with ., the two maps are merged. Is 
that how this works?

Maps are black boxes to me. Is there a way to “see” inside? With a variable, 
you can do a copy-of to see if everything is okay in there. When I try to copy 
a map I get an error.

Thanks again for all the help. 

     <xsl:apply-templates
       select="for $p in p[@class = 'nl']
               return $groups
                      !
                      map:merge(
                        (.,
                         map { 'p' : $p })
                      )"/>

--~----------------------------------------------------------------
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>