Skip to content

Commit

Permalink
query: format example XSLT - add 'reported'
Browse files Browse the repository at this point in the history
  • Loading branch information
reschke committed Feb 18, 2025
1 parent 297edae commit afd4f7f
Showing 1 changed file with 32 additions and 29 deletions.
61 changes: 32 additions & 29 deletions draft-ietf-httpbis-safe-method-w-body.xml
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ Accept: application/xml, text/csv
<variable name="sd">submit_date</variable>
<template match="/">
<text>year, total, rejected, verified, hdu</text>
<text>year, total, rejected, verified, hdu, reported</text>
<text>&#10;</text>
<variable name="en" select="$json//j:map"/>
<for-each-group select="$en"
Expand All @@ -805,11 +805,14 @@ Accept: application/xml, text/csv
count($errata['Verified'=j:string[@key=$sc]]),
', ',
count($errata['Held for Document Update'=j:string[@key=$sc]]),
', ',
count($errata['Reported'=j:string[@key=$sc]]),
'&#10;')"/>
</for-each-group>
</template>
</transform>]]>
</transform>
]]>
</artwork>
<t>
Response:
Expand All @@ -818,33 +821,33 @@ Accept: application/xml, text/csv
HTTP/1.1 200 OK
Content-Type: text/csv

year, total, rejected, verified, hdu
2000, 14, 0, 14, 0
2001, 72, 1, 70, 1
2002, 124, 8, 104, 12
2003, 63, 0, 61, 2
2004, 89, 1, 83, 5
2005, 156, 10, 96, 50
2006, 444, 54, 176, 214
2007, 429, 48, 188, 193
2008, 423, 52, 165, 206
2009, 331, 39, 148, 144
2010, 538, 80, 232, 222
2011, 367, 47, 170, 150
2012, 348, 54, 149, 145
2013, 341, 61, 169, 106
2014, 342, 73, 180, 72
2015, 343, 79, 145, 89
2016, 295, 46, 122, 82
2017, 303, 46, 120, 84
2018, 350, 61, 118, 98
2019, 335, 47, 131, 94
2020, 387, 68, 117, 123
2021, 321, 44, 148, 63
2022, 358, 37, 198, 40
2023, 262, 38, 121, 33
2024, 322, 33, 125, 23
9999, 1, 0, 0, 1
year, total, rejected, verified, hdu, reported
2000, 14, 0, 14, 0, 0
2001, 72, 1, 70, 1, 0
2002, 124, 8, 104, 12, 0
2003, 63, 0, 61, 2, 0
2004, 89, 1, 83, 5, 0
2005, 156, 10, 96, 50, 0
2006, 444, 54, 176, 214, 0
2007, 429, 48, 188, 193, 0
2008, 423, 52, 165, 206, 0
2009, 331, 39, 148, 144, 0
2010, 538, 80, 232, 222, 4
2011, 367, 47, 170, 150, 0
2012, 348, 54, 149, 145, 0
2013, 341, 61, 169, 106, 5
2014, 342, 73, 180, 72, 17
2015, 343, 79, 145, 89, 30
2016, 295, 46, 122, 82, 45
2017, 303, 46, 120, 84, 53
2018, 350, 61, 118, 98, 73
2019, 335, 47, 131, 94, 63
2020, 387, 68, 117, 123, 79
2021, 321, 44, 148, 63, 66
2022, 358, 37, 198, 40, 83
2023, 262, 38, 121, 33, 70
2024, 322, 33, 125, 23, 141
9999, 1, 0, 0, 1, 0
</artwork>
</section>
</section>
Expand Down

0 comments on commit afd4f7f

Please sign in to comment.