⚲
Project
Profile
Help
Tour this page
Frequent Planio Questions
Learning Resources
Sign in
Register
Switch Planio account
Open in Planio App
Share current page
Search
:
Projects
All Projects
Help
Tour this page
Frequent Planio Questions
Learning Resources
Sign in
Register
Switch Planio account
Open in Planio App
Share current page
Saxon
»
SaxonJS
Overview
Roadmap
Issues
Blog
Documents
Forums
Files
Download (594 Bytes)
Failed to compile stylesheet: Focus for child axis is abs...
» group-sales-sum-product.xsl
Martin Honnen
, 2020-06-28 16:04
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
version=
"3.0"
xmlns:xs=
"http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes=
"#all"
>
<xsl:output
method=
"json"
indent=
"yes"
/>
<xsl:template
match=
"."
>
<xsl:map>
<xsl:for-each-group
select=
"?sales?*"
group-by=
"?product"
>
<xsl:sort
select=
"current-grouping-key()"
/>
<xsl:map-entry
key=
"current-grouping-key()"
select=
"sum(current-group()?quantity)"
/>
</xsl:for-each-group>
</xsl:map>
</xsl:template>
</xsl:stylesheet>
« Previous
1
2
3
Next »
(1-1/3)
Loading...