{"action":"created","issue":{"url":"https://api.github.com/repos/expath/xspec/issues/79","repository_url":"https://api.github.com/repos/expath/xspec","labels_url":"https://api.github.com/repos/expath/xspec/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/expath/xspec/issues/79/comments","events_url":"https://api.github.com/repos/expath/xspec/issues/79/events","html_url":"https://github.com/expath/xspec/issues/79","id":148510312,"number":79,"title":"support for saxon 9 b","user":{"login":"magwas","id":756838,"avatar_url":"https://avatars.githubusercontent.com/u/756838?v=3","gravatar_id":"","url":"https://api.github.com/users/magwas","html_url":"https://github.com/magwas","followers_url":"https://api.github.com/users/magwas/followers","following_url":"https://api.github.com/users/magwas/following{/other_user}","gists_url":"https://api.github.com/users/magwas/gists{/gist_id}","starred_url":"https://api.github.com/users/magwas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magwas/subscriptions","organizations_url":"https://api.github.com/users/magwas/orgs","repos_url":"https://api.github.com/users/magwas/repos","events_url":"https://api.github.com/users/magwas/events{/privacy}","received_events_url":"https://api.github.com/users/magwas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-14T23:21:47Z","updated_at":"2016-04-15T10:11:47Z","closed_at":null,"body":"It would be nice to have support for saxon 9 b, for two reasons:\r\n- it is open source\r\n- it supports some second order functions, most importantly saxon:evaluate (with which xspec code would also be simpler)\r\n\r\nAs a workaround I have figured out that the following script as \"saxon\" works, with sacrifying coverage support (it just forgets the first three parameters, and I have saxon 9 b at ~/lib/saxon9.jar):\r\n\r\n   $ cat bin/saxon\r\n   #!/bin/bash\r\n   echo \"this saxon script is specially crafted to make xpspec able to use saxon 9 b\"\r\n   shift\r\n   shift\r\n   shift\r\n   java -cp /usr/share/java/tagsoup-1.2.1.jar -jar ~/lib/saxon9.jar ${*} targetdir=$PWD\r\n"},"comment":{"url":"https://api.github.com/repos/expath/xspec/issues/comments/210401504","html_url":"https://github.com/expath/xspec/issues/79#issuecomment-210401504","issue_url":"https://api.github.com/repos/expath/xspec/issues/79","id":210401504,"user":{"login":"cirulls","id":13256236,"avatar_url":"https://avatars.githubusercontent.com/u/13256236?v=3","gravatar_id":"","url":"https://api.github.com/users/cirulls","html_url":"https://github.com/cirulls","followers_url":"https://api.github.com/users/cirulls/followers","following_url":"https://api.github.com/users/cirulls/following{/other_user}","gists_url":"https://api.github.com/users/cirulls/gists{/gist_id}","starred_url":"https://api.github.com/users/cirulls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cirulls/subscriptions","organizations_url":"https://api.github.com/users/cirulls/orgs","repos_url":"https://api.github.com/users/cirulls/repos","events_url":"https://api.github.com/users/cirulls/events{/privacy}","received_events_url":"https://api.github.com/users/cirulls/received_events","type":"User","site_admin":false},"created_at":"2016-04-15T10:11:47Z","updated_at":"2016-04-15T10:11:47Z","body":"Hi Árpád,\r\n\r\nthanks for providing some sample code for integration, that's always useful. \r\n\r\nAs far as I can read on the [Saxon official page](http://saxon.sourceforge.net/), Saxon-B is an older product (bold is mine):\r\n\r\n> Saxon-HE does not offer all the capabilities that were present in Saxon-B. Most notably, support for Saxon extension functions and other extensions was dropped, as was the capability for writing extension functions that rely on dynamic loading of Java or .NET code (**a new facility for \"integrated extension functions\" is however available**). Users whose code relies on these features of Saxon-B should either purchase the Professional Edition product or stick with Saxon-B: the latest release of Saxon-B is 9.1.0.8, and although **there are no plans to develop it further or maintain it**, it will remain available indefinitely.\r\n\r\nI don't know if it helps, but I wonder if it is possible to achieve what you're doing with extension functions. This page describes how to write extension functions using Saxon 9.2 or better: [http://www.saxonica.com/html/documentation/extensibility/integratedfunctions/)](http://www.saxonica.com/html/documentation/extensibility/integratedfunctions/). Alternatively XSLT 3.0 supports higher-order functions and ```xls:evaluate``` which is [similar to ```saxon:evalute```](http://www.saxonica.com/html/documentation/functions/saxon/evaluate.html). However, XSLT 3.0 currently requires Saxon-PE or Saxon-EE which both need a license. \r\n\r\nI can see how easy it is to extend the shell and batch scripts to support Saxon-B but you need to bear in mind that you're using an older product that is not maintained any more.\r\n\r\nSandro"}}