{"action":"created","issue":{"url":"https://api.github.com/repos/fidothe/saxon-xslt/issues/6","labels_url":"https://api.github.com/repos/fidothe/saxon-xslt/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/fidothe/saxon-xslt/issues/6/comments","events_url":"https://api.github.com/repos/fidothe/saxon-xslt/issues/6/events","html_url":"https://github.com/fidothe/saxon-xslt/issues/6","id":99737775,"number":6,"title":"Pass parameters to XML Processor (Schematron)","user":{"login":"pobocks","id":33776,"avatar_url":"https://avatars.githubusercontent.com/u/33776?v=3","gravatar_id":"","url":"https://api.github.com/users/pobocks","html_url":"https://github.com/pobocks","followers_url":"https://api.github.com/users/pobocks/followers","following_url":"https://api.github.com/users/pobocks/following{/other_user}","gists_url":"https://api.github.com/users/pobocks/gists{/gist_id}","starred_url":"https://api.github.com/users/pobocks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pobocks/subscriptions","organizations_url":"https://api.github.com/users/pobocks/orgs","repos_url":"https://api.github.com/users/pobocks/repos","events_url":"https://api.github.com/users/pobocks/events{/privacy}","received_events_url":"https://api.github.com/users/pobocks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-07T22:05:34Z","updated_at":"2015-08-09T22:47:22Z","closed_at":null,"body":"As far as I can tell, there's no way to pass a param to an XSLT that's being compiled or run, except by including it in the XSLT file before running.  The Saxon command-line parser is able to accept variables, so it should be possible, but I'm relatively new to Saxon, and haven't figured out what would need to happen to extend saxon-xslt to do it.\r\n\r\nThe case I'm trying to solve is using this library to run Schematron validators over EAD files.  \r\n\r\nRight now, as a workaround, my only option is to parse, alter, and write the XSL file to a temporary file, which must be in the same directory as the rest of schematron (because it works via includes).  \r\n\r\nThe application in question is available here: https://github.com/harvard-library/schematronium"},"comment":{"url":"https://api.github.com/repos/fidothe/saxon-xslt/issues/comments/129258325","html_url":"https://github.com/fidothe/saxon-xslt/issues/6#issuecomment-129258325","issue_url":"https://api.github.com/repos/fidothe/saxon-xslt/issues/6","id":129258325,"user":{"login":"pobocks","id":33776,"avatar_url":"https://avatars.githubusercontent.com/u/33776?v=3","gravatar_id":"","url":"https://api.github.com/users/pobocks","html_url":"https://github.com/pobocks","followers_url":"https://api.github.com/users/pobocks/followers","following_url":"https://api.github.com/users/pobocks/following{/other_user}","gists_url":"https://api.github.com/users/pobocks/gists{/gist_id}","starred_url":"https://api.github.com/users/pobocks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pobocks/subscriptions","organizations_url":"https://api.github.com/users/pobocks/orgs","repos_url":"https://api.github.com/users/pobocks/repos","events_url":"https://api.github.com/users/pobocks/events{/privacy}","received_events_url":"https://api.github.com/users/pobocks/received_events","type":"User","site_admin":false},"created_at":"2015-08-09T22:47:21Z","updated_at":"2015-08-09T22:47:21Z","body":"Hmm... Actually, since Saxon API means having to split out key and value (especially if eventually supporting other constructor signatures for QName), I think there's a strong case for params as hash. Noko seems to take k=v as a single string.\r\n\r\nAnyway, take a look and lemme know what you think!"}}