[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Re: XPath expression that yields the same resulta
Am 30.05.2019 um 23:46 schrieb Costello, Roger L. costello@xxxxxxxxx:
the groups in an XSLT variable:
B B B B B B B <xsl:variable name="groups" as="array(element(row))*"> B B B B B B B B B B B <xsl:for-each-group select="$rows" composite="yes" group-by="ARPT__IDENT, TRM__IDENT"> B B B B B B B B B B B B B B B <xsl:sequence select="array { current-group() }"/> B B B B B B B B B B B </xsl:for-each-group> B B B B B B B </xsl:variable> https://xsltfiddle.liberty-development.net/jyRYYiQ/1 That will probably perform better than the pure XPath expression based grouping (that does nothing more than apply the old XQuery 1.0 "grouping" technique to collect distinct-values first as a means to select items of each group).
|
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
|