[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Using xsl:iterate inside <xsl:for-each-group> xslt
Am 18.08.2020 um 16:09 schrieb Terry Ofner tdofner@xxxxxxxxx:
Is it possible to reference elements in p[@class=bnlb] (to the left of the ! $groups) in the iterate? Or to pass a parameter including the item number of the p[@class=bnlb] to the iterate. The selected node of the iterate is <p=class=bDirectionsb>. <xsl:template match="set[p[@class = 'nl']]">
<xsl:iterate select="p[@class = 'nl'] ! map:merge(($groups, map { 'p' : . }))"> then the expression ?p inside the iterate selects the property named "p" of the map which holds the "p" element. The map functions are in the namespace http://www.w3.org/2005/xpath-functions/map so you need to declare e.g. xmlns:map="http://www.w3.org/2005/xpath-functions/map" in your stylesheet to use map:merge.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|