[Home] [By Thread] [By Date] [Recent Entries]
On 17.11.2017 18:43, rus tle profrustyleafiii@xxxxxxxxxxx wrote:
I am trying toB remove attributeB values in a listB based on a frequency parameter.Such a condition can be easier formulated in XQuery 3 with a window clause https://www.w3.org/TR/xquery/#id-tumbling-windows for tumbling window $w in p/Content start $s when true() end next $n when xs:decimal($n/@value) - xs:decimal($s/@value) ge 30 return ($w[1], subsequence($w, 2)/<Content value=""/>) I think than in XSLT with group-adjacent. As most people use XSLT 2 with Saxon 9 and Saxon also implements XQuery that might be an option that I think is worth mentioning. In XSLT 3 you could even call directly into an XQuery module using above window clause if needed with https://www.w3.org/TR/xpath-functions/#func-load-xquery-module.
|

Cart



