You can subscribe to this list here.
2001 
_{Jan}

_{Feb}

_{Mar}

_{Apr}

_{May}

_{Jun}
(5) 
_{Jul}
(103) 
_{Aug}
(139) 
_{Sep}
(120) 
_{Oct}
(108) 
_{Nov}
(83) 
_{Dec}
(83) 

2002 
_{Jan}
(124) 
_{Feb}
(94) 
_{Mar}
(66) 
_{Apr}
(71) 
_{May}
(94) 
_{Jun}
(71) 
_{Jul}
(155) 
_{Aug}
(96) 
_{Sep}
(64) 
_{Oct}
(73) 
_{Nov}
(79) 
_{Dec}
(53) 
2003 
_{Jan}
(82) 
_{Feb}
(76) 
_{Mar}
(98) 
_{Apr}
(142) 
_{May}
(133) 
_{Jun}
(120) 
_{Jul}
(72) 
_{Aug}
(136) 
_{Sep}
(169) 
_{Oct}
(113) 
_{Nov}
(149) 
_{Dec}
(76) 
2004 
_{Jan}
(120) 
_{Feb}
(195) 
_{Mar}
(215) 
_{Apr}
(171) 
_{May}
(189) 
_{Jun}
(221) 
_{Jul}
(107) 
_{Aug}
(107) 
_{Sep}
(94) 
_{Oct}
(145) 
_{Nov}
(116) 
_{Dec}
(198) 
2005 
_{Jan}
(153) 
_{Feb}
(163) 
_{Mar}
(164) 
_{Apr}
(157) 
_{May}
(134) 
_{Jun}
(173) 
_{Jul}
(63) 
_{Aug}
(175) 
_{Sep}
(136) 
_{Oct}
(150) 
_{Nov}
(192) 
_{Dec}
(99) 
2006 
_{Jan}
(94) 
_{Feb}
(109) 
_{Mar}
(191) 
_{Apr}
(146) 
_{May}
(184) 
_{Jun}
(160) 
_{Jul}
(128) 
_{Aug}
(206) 
_{Sep}
(123) 
_{Oct}
(133) 
_{Nov}
(204) 
_{Dec}
(103) 
2007 
_{Jan}
(304) 
_{Feb}
(191) 
_{Mar}
(281) 
_{Apr}
(127) 
_{May}
(102) 
_{Jun}
(147) 
_{Jul}
(153) 
_{Aug}
(156) 
_{Sep}
(52) 
_{Oct}
(119) 
_{Nov}
(138) 
_{Dec}
(128) 
2008 
_{Jan}
(214) 
_{Feb}
(151) 
_{Mar}
(221) 
_{Apr}
(146) 
_{May}
(192) 
_{Jun}
(93) 
_{Jul}
(270) 
_{Aug}
(127) 
_{Sep}
(161) 
_{Oct}
(110) 
_{Nov}
(189) 
_{Dec}
(142) 
2009 
_{Jan}
(123) 
_{Feb}
(136) 
_{Mar}
(139) 
_{Apr}
(138) 
_{May}
(90) 
_{Jun}
(74) 
_{Jul}
(77) 
_{Aug}
(159) 
_{Sep}
(95) 
_{Oct}
(154) 
_{Nov}
(131) 
_{Dec}
(120) 
2010 
_{Jan}
(118) 
_{Feb}
(148) 
_{Mar}
(208) 
_{Apr}
(100) 
_{May}
(99) 
_{Jun}
(129) 
_{Jul}
(115) 
_{Aug}
(72) 
_{Sep}
(124) 
_{Oct}
(133) 
_{Nov}
(64) 
_{Dec}
(101) 
2011 
_{Jan}
(104) 
_{Feb}
(125) 
_{Mar}
(107) 
_{Apr}
(59) 
_{May}
(56) 
_{Jun}
(115) 
_{Jul}
(86) 
_{Aug}
(126) 
_{Sep}
(100) 
_{Oct}
(98) 
_{Nov}
(112) 
_{Dec}
(129) 
2012 
_{Jan}
(110) 
_{Feb}
(124) 
_{Mar}
(150) 
_{Apr}
(96) 
_{May}
(80) 
_{Jun}
(103) 
_{Jul}
(35) 
_{Aug}
(89) 
_{Sep}
(97) 
_{Oct}
(54) 
_{Nov}
(58) 
_{Dec}
(95) 
2013 
_{Jan}
(106) 
_{Feb}
(108) 
_{Mar}
(81) 
_{Apr}
(100) 
_{May}
(122) 
_{Jun}
(93) 
_{Jul}
(77) 
_{Aug}
(73) 
_{Sep}
(166) 
_{Oct}
(88) 
_{Nov}
(61) 
_{Dec}
(142) 
2014 
_{Jan}
(110) 
_{Feb}
(98) 
_{Mar}
(63) 
_{Apr}
(47) 
_{May}
(73) 
_{Jun}
(103) 
_{Jul}
(46) 
_{Aug}

_{Sep}

_{Oct}

_{Nov}

_{Dec}

S  M  T  W  T  F  S 






1
(1) 
2
(6) 
3
(10) 
4
(2) 
5
(3) 
6
(7) 
7
(7) 
8
(5) 
9
(1) 
10
(1) 
11

12
(3) 
13

14
(3) 
15

16
(10) 
17
(3) 
18
(7) 
19
(8) 
20
(8) 
21
(2) 
22
(8) 
23
(4) 
24
(2) 
25
(2) 
26
(3) 
27
(1) 
28
(1) 


From: Michael Kay <mike@sa...>  20130206 23:08:37

On further investigation the tail call seems to be a red herring. In the inner inline function $second, the closure contains two variables $countfun and $x, and the slot numbers for these variable references have not been allocated (properly or at all) so values are being picked up from the wrong place. To be continued... Michael Kay Saxonica On 06/02/2013 22:32, Michael Kay wrote: > > I have added this to the XSLT 3.0 test suite as test case > higherorderfunctions068, and I confirm it is still failing with the > current development build. > > The hypothesis I am exploring is that it is an interaction between > function closures and tail recursion; my suspicion is that when the > stackframe is reused/overwritten for the purpose of tailrecursion, > the values required for the function closure are being corrupted. It's > all pretty complex! > > Michael Kay > Saxonica > > On 06/02/2013 03:14, Abel Braaksma wrote: >> When I define the following continuation version of the Fibonacci >> sequencein XSLT 3: >> >> <xsl:function name="f:fib"> >> <xsl:param name="n" as="xs:integer" /> >> <xsl:param name="countfun" as="function(*)" /> >> >> <xsl:sequence select=" >> if ($n = 1 or $n = 2) >> then $countfun(1) >> else let $first := >> function($x as xs:integer) as function(*) >> { >> let $second := function($y as xs:integer) as >> function(*) >> { >> $countfun($x + $y) >> } >> return f:fib($n  2, $second) >> } >> return f:fib($n  1, $first)" /> >> </xsl:function> >> >> and I call it as follows: >> >> <xsl:valueof select="f:fib(10, function($a as xs:integer){$a})" /> >> >> the expected result is 55. However, I receive the following error: >> >> Engine name: SaxonEE 9.4.0.4 >> Severity: fatal >> Description: Required item type of second argument of anonymous >> function is function(); supplied value has item type xs:integer >> Start location: 36:0 >> URL: http://www.w3.org/TR/xslt20/#errXTTE0790 >> >> The function is inspired by this snippet http://fssnip.net/eU, though >> other functional languages have similar examples. The idea behind the >> excercise is to eliminate the double recursive exit pointof the >> function by creating a continuation function. However, either the >> error is confusing(I don't see any anonymous function call with >> afunction argument) or something else is happening. >> >> I also tried the fully typed version, and an untyped version. Here's >> the fully typed variant: >> >> <xsl:function name="f:fib" as="xs:integer"> >> <xsl:param name="n" as="xs:integer" /> >> <xsl:param name="countfun" as="function(xs:integer) as xs:integer" /> >> >> <xsl:sequence select=" >> if ($n = 1 or $n = 2) >> then $countfun(1) >> else let $first := >> function($x as xs:integer) as xs:integer >> { >> let $second := function($y as xs:integer) as >> xs:integer >> { >> $countfun($x + $y) >> } >> return f:fib($n  2, $second) >> } >> return f:fib($n  1, $first)" /> >> </xsl:function> >> >> >> Any idea what I'm missing here, or is this perhaps an error with Saxon? >> >> Thanks, >> Abel >> >> >> >> >>  >> Free NextGen Firewall Hardware Offer >> Buy your Sophos nextgen firewall before the end March 2013 >> and get the hardware for free! Learn more. >> http://p.sf.net/sfu/sophosd2dfeb >> >> >> _______________________________________________ >> saxonhelp mailing list archived athttp://saxon.markmail.org/ >> saxonhelp@... >> https://lists.sourceforge.net/lists/listinfo/saxonhelp > > > >  > Free NextGen Firewall Hardware Offer > Buy your Sophos nextgen firewall before the end March 2013 > and get the hardware for free! Learn more. > http://p.sf.net/sfu/sophosd2dfeb > > > _______________________________________________ > saxonhelp mailing list archived at http://saxon.markmail.org/ > saxonhelp@... > https://lists.sourceforge.net/lists/listinfo/saxonhelp 
From: Michael Kay <mike@sa...>  20130206 22:32:28

I have added this to the XSLT 3.0 test suite as test case higherorderfunctions068, and I confirm it is still failing with the current development build. The hypothesis I am exploring is that it is an interaction between function closures and tail recursion; my suspicion is that when the stackframe is reused/overwritten for the purpose of tailrecursion, the values required for the function closure are being corrupted. It's all pretty complex! Michael Kay Saxonica On 06/02/2013 03:14, Abel Braaksma wrote: > When I define the following continuation version of the Fibonacci > sequencein XSLT 3: > > <xsl:function name="f:fib"> > <xsl:param name="n" as="xs:integer" /> > <xsl:param name="countfun" as="function(*)" /> > > <xsl:sequence select=" > if ($n = 1 or $n = 2) > then $countfun(1) > else let $first := > function($x as xs:integer) as function(*) > { > let $second := function($y as xs:integer) as > function(*) > { > $countfun($x + $y) > } > return f:fib($n  2, $second) > } > return f:fib($n  1, $first)" /> > </xsl:function> > > and I call it as follows: > > <xsl:valueof select="f:fib(10, function($a as xs:integer){$a})" /> > > the expected result is 55. However, I receive the following error: > > Engine name: SaxonEE 9.4.0.4 > Severity: fatal > Description: Required item type of second argument of anonymous > function is function(); supplied value has item type xs:integer > Start location: 36:0 > URL: http://www.w3.org/TR/xslt20/#errXTTE0790 > > The function is inspired by this snippet http://fssnip.net/eU, though > other functional languages have similar examples. The idea behind the > excercise is to eliminate the double recursive exit pointof the > function by creating a continuation function. However, either the > error is confusing(I don't see any anonymous function call with > afunction argument) or something else is happening. > > I also tried the fully typed version, and an untyped version. Here's > the fully typed variant: > > <xsl:function name="f:fib" as="xs:integer"> > <xsl:param name="n" as="xs:integer" /> > <xsl:param name="countfun" as="function(xs:integer) as xs:integer" /> > > <xsl:sequence select=" > if ($n = 1 or $n = 2) > then $countfun(1) > else let $first := > function($x as xs:integer) as xs:integer > { > let $second := function($y as xs:integer) as > xs:integer > { > $countfun($x + $y) > } > return f:fib($n  2, $second) > } > return f:fib($n  1, $first)" /> > </xsl:function> > > > Any idea what I'm missing here, or is this perhaps an error with Saxon? > > Thanks, > Abel > > > > >  > Free NextGen Firewall Hardware Offer > Buy your Sophos nextgen firewall before the end March 2013 > and get the hardware for free! Learn more. > http://p.sf.net/sfu/sophosd2dfeb > > > _______________________________________________ > saxonhelp mailing list archived at http://saxon.markmail.org/ > saxonhelp@... > https://lists.sourceforge.net/lists/listinfo/saxonhelp 
From: Michael Kay <mike@sa...>  20130206 12:56:30

I'll look into it when I have a little more time  I'm in in XQuery meetings today and tomorrow, and this one will require concentrated study! I suspect what is happening is that the function that the error message is talking about is an internally generated one. For example, Saxon generally handles function closures by creating an internal function with extra arguments representing the variables in the closure. Michael Kay Saxonica On 06/02/2013 11:37, Abel Braaksma wrote: > I've rewritten the continuationpassing style function in a slightly > more readable form, but the error is the same. The weird thing about > this is, there is no anonymous function that takes two arguments. It > is my guess that something with the closures is not going entirely the > way it should: > > <xsl:function name="f:fib"> > <xsl:param name="n" as="xs:integer" /> > <xsl:param name="countfun" as="function(*)" /> > > <xsl:sequence select=" > if ($n = 1 or $n = 2) > then $countfun($n) > else > f:fib($n  1, function($x) { > f:fib ($n  2, function($y) { > $countfun($x + $y) > }) > })" /> > </xsl:function> > > Thanks, > Abel > > > On 622013 4:14, Abel Braaksma wrote: >> When I define the following continuation version of the Fibonacci >> sequencein XSLT 3: >> >> <xsl:function name="f:fib"> >> <xsl:param name="n" as="xs:integer" /> >> <xsl:param name="countfun" as="function(*)" /> >> >> <xsl:sequence select=" >> if ($n = 1 or $n = 2) >> then $countfun(1) >> else let $first := >> function($x as xs:integer) as function(*) >> { >> let $second := function($y as xs:integer) as >> function(*) >> { >> $countfun($x + $y) >> } >> return f:fib($n  2, $second) >> } >> return f:fib($n  1, $first)" /> >> </xsl:function> >> >> and I call it as follows: >> >> <xsl:valueof select="f:fib(10, function($a as xs:integer){$a})" /> >> >> the expected result is 55. However, I receive the following error: >> >> Engine name: SaxonEE 9.4.0.4 >> Severity: fatal >> Description: Required item type of second argument of anonymous >> function is function(); supplied value has item type xs:integer >> Start location: 36:0 >> URL: http://www.w3.org/TR/xslt20/#errXTTE0790 >> >> The function is inspired by this snippet http://fssnip.net/eU, though >> other functional languages have similar examples. The idea behind the >> excercise is to eliminate the double recursive exit pointof the >> function by creating a continuation function. However, either the >> error is confusing(I don't see any anonymous function call with >> afunction argument) or something else is happening. >> >> I also tried the fully typed version, and an untyped version. Here's >> the fully typed variant: >> >> <xsl:function name="f:fib" as="xs:integer"> >> <xsl:param name="n" as="xs:integer" /> >> <xsl:param name="countfun" as="function(xs:integer) as xs:integer" /> >> >> <xsl:sequence select=" >> if ($n = 1 or $n = 2) >> then $countfun(1) >> else let $first := >> function($x as xs:integer) as xs:integer >> { >> let $second := function($y as xs:integer) as >> xs:integer >> { >> $countfun($x + $y) >> } >> return f:fib($n  2, $second) >> } >> return f:fib($n  1, $first)" /> >> </xsl:function> >> >> >> Any idea what I'm missing here, or is this perhaps an error with Saxon? >> >> Thanks, >> Abel >> >> >> >> >>  >> Free NextGen Firewall Hardware Offer >> Buy your Sophos nextgen firewall before the end March 2013 >> and get the hardware for free! Learn more. >> http://p.sf.net/sfu/sophosd2dfeb >> >> >> _______________________________________________ >> saxonhelp mailing list archived athttp://saxon.markmail.org/ >> saxonhelp@... >> https://lists.sourceforge.net/lists/listinfo/saxonhelp > > > >  > Free NextGen Firewall Hardware Offer > Buy your Sophos nextgen firewall before the end March 2013 > and get the hardware for free! Learn more. > http://p.sf.net/sfu/sophosd2dfeb > > > _______________________________________________ > saxonhelp mailing list archived at http://saxon.markmail.org/ > saxonhelp@... > https://lists.sourceforge.net/lists/listinfo/saxonhelp 
From: Abel Braaksma <abel.braaksma@xs...>  20130206 11:37:27

I've rewritten the continuationpassing style function in a slightly more readable form, but the error is the same. The weird thing about this is, there is no anonymous function that takes two arguments. It is my guess that something with the closures is not going entirely the way it should: <xsl:function name="f:fib"> <xsl:param name="n" as="xs:integer" /> <xsl:param name="countfun" as="function(*)" /> <xsl:sequence select=" if ($n = 1 or $n = 2) then $countfun($n) else f:fib($n  1, function($x) { f:fib ($n  2, function($y) { $countfun($x + $y) }) })" /> </xsl:function> Thanks, Abel On 622013 4:14, Abel Braaksma wrote: > When I define the following continuation version of the Fibonacci > sequencein XSLT 3: > > <xsl:function name="f:fib"> > <xsl:param name="n" as="xs:integer" /> > <xsl:param name="countfun" as="function(*)" /> > > <xsl:sequence select=" > if ($n = 1 or $n = 2) > then $countfun(1) > else let $first := > function($x as xs:integer) as function(*) > { > let $second := function($y as xs:integer) as > function(*) > { > $countfun($x + $y) > } > return f:fib($n  2, $second) > } > return f:fib($n  1, $first)" /> > </xsl:function> > > and I call it as follows: > > <xsl:valueof select="f:fib(10, function($a as xs:integer){$a})" /> > > the expected result is 55. However, I receive the following error: > > Engine name: SaxonEE 9.4.0.4 > Severity: fatal > Description: Required item type of second argument of anonymous > function is function(); supplied value has item type xs:integer > Start location: 36:0 > URL: http://www.w3.org/TR/xslt20/#errXTTE0790 > > The function is inspired by this snippet http://fssnip.net/eU, though > other functional languages have similar examples. The idea behind the > excercise is to eliminate the double recursive exit pointof the > function by creating a continuation function. However, either the > error is confusing(I don't see any anonymous function call with > afunction argument) or something else is happening. > > I also tried the fully typed version, and an untyped version. Here's > the fully typed variant: > > <xsl:function name="f:fib" as="xs:integer"> > <xsl:param name="n" as="xs:integer" /> > <xsl:param name="countfun" as="function(xs:integer) as xs:integer" /> > > <xsl:sequence select=" > if ($n = 1 or $n = 2) > then $countfun(1) > else let $first := > function($x as xs:integer) as xs:integer > { > let $second := function($y as xs:integer) as > xs:integer > { > $countfun($x + $y) > } > return f:fib($n  2, $second) > } > return f:fib($n  1, $first)" /> > </xsl:function> > > > Any idea what I'm missing here, or is this perhaps an error with Saxon? > > Thanks, > Abel > > > > >  > Free NextGen Firewall Hardware Offer > Buy your Sophos nextgen firewall before the end March 2013 > and get the hardware for free! Learn more. > http://p.sf.net/sfu/sophosd2dfeb > > > _______________________________________________ > saxonhelp mailing list archived at http://saxon.markmail.org/ > saxonhelp@... > https://lists.sourceforge.net/lists/listinfo/saxonhelp 
From: Andrew Welch <andrew.welch@gm...>  20130206 09:04:22

On 6 February 2013 08:12, Andrew Welch <andrew.j.welch@...> wrote: > On 5 February 2013 21:27, Michael Kay <mike@...> wrote: >> If the input is validated against a schema, then the type annotation of >> the @type attribute will affect the semantics of the comparison. Is >> there a schema involved? > > That was might first thought... but no input validation is involved. > I'll try and produce a postable example today. You were right.... I had an importschema in the xslt for resultvalidation in oXygen (production is still HE...) I removed the resultvalidation (in the process of narrowing down) however I left in the importschema and by default oXygen has lax input validation turned on... and this was an fpml 5.4 to fpml 5.4 transform, so the input was also being successfully and silently validated. Sorry for the noise  Andrew Welch http://andrewjwelch.com 
From: Andrew Welch <andrew.welch@gm...>  20130206 08:12:24

On 5 February 2013 21:27, Michael Kay <mike@...> wrote: > If the input is validated against a schema, then the type annotation of > the @type attribute will affect the semantics of the comparison. Is > there a schema involved? That was might first thought... but no input validation is involved. I'll try and produce a postable example today.  Andrew Welch http://andrewjwelch.com 
From: Abel Braaksma <abel.braaksma@xs...>  20130206 03:14:50

When I define the following continuation version of the Fibonacci sequencein XSLT 3: <xsl:function name="f:fib"> <xsl:param name="n" as="xs:integer" /> <xsl:param name="countfun" as="function(*)" /> <xsl:sequence select=" if ($n = 1 or $n = 2) then $countfun(1) else let $first := function($x as xs:integer) as function(*) { let $second := function($y as xs:integer) as function(*) { $countfun($x + $y) } return f:fib($n  2, $second) } return f:fib($n  1, $first)" /> </xsl:function> and I call it as follows: <xsl:valueof select="f:fib(10, function($a as xs:integer){$a})" /> the expected result is 55. However, I receive the following error: Engine name: SaxonEE 9.4.0.4 Severity: fatal Description: Required item type of second argument of anonymous function is function(); supplied value has item type xs:integer Start location: 36:0 URL: http://www.w3.org/TR/xslt20/#errXTTE0790 The function is inspired by this snippet http://fssnip.net/eU, though other functional languages have similar examples. The idea behind the excercise is to eliminate the double recursive exit pointof the function by creating a continuation function. However, either the error is confusing(I don't see any anonymous function call with afunction argument) or something else is happening. I also tried the fully typed version, and an untyped version. Here's the fully typed variant: <xsl:function name="f:fib" as="xs:integer"> <xsl:param name="n" as="xs:integer" /> <xsl:param name="countfun" as="function(xs:integer) as xs:integer" /> <xsl:sequence select=" if ($n = 1 or $n = 2) then $countfun(1) else let $first := function($x as xs:integer) as xs:integer { let $second := function($y as xs:integer) as xs:integer { $countfun($x + $y) } return f:fib($n  2, $second) } return f:fib($n  1, $first)" /> </xsl:function> Any idea what I'm missing here, or is this perhaps an error with Saxon? Thanks, Abel 