[Home] [By Thread] [By Date] [Recent Entries]
Am 18.08.2020 um 18:14 schrieb Terry Ofner tdofner@xxxxxxxxx:
Interesting tangle I am in. I tried the map:merge in both the iterate and apply-templates solutions. I can indeed reference the bpb and pull it into the output.B However, it seems to play havoc with the $groups output. Here is the changed iterate: Yes, sorry, I got lost in my own suggestion, the right code should be <xsl:apply-templates
select="for $p in p[@class = 'nl']
return $groups
!
map:merge(
($groups,
map { 'p' : $p })
)"/>or the same expression for the iterate. $groups is a sequence of maps we want to process for each "p" and including the "p" in each map of the sequence is what we need, not to merge the sequence of maps.
|

Cart



