{"action":"created","issue":{"url":"https://api.github.com/repos/bcgov/bc-laws-api/issues/8","labels_url":"https://api.github.com/repos/bcgov/bc-laws-api/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/bcgov/bc-laws-api/issues/8/comments","events_url":"https://api.github.com/repos/bcgov/bc-laws-api/issues/8/events","html_url":"https://github.com/bcgov/bc-laws-api/issues/8","id":122814736,"number":8,"title":"Create print ready PDF files of BC Laws","user":{"login":"lmullane","id":12040839,"avatar_url":"https://avatars.githubusercontent.com/u/12040839?v=3","gravatar_id":"","url":"https://api.github.com/users/lmullane","html_url":"https://github.com/lmullane","followers_url":"https://api.github.com/users/lmullane/followers","following_url":"https://api.github.com/users/lmullane/following{/other_user}","gists_url":"https://api.github.com/users/lmullane/gists{/gist_id}","starred_url":"https://api.github.com/users/lmullane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmullane/subscriptions","organizations_url":"https://api.github.com/users/lmullane/orgs","repos_url":"https://api.github.com/users/lmullane/repos","events_url":"https://api.github.com/users/lmullane/events{/privacy}","received_events_url":"https://api.github.com/users/lmullane/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bcgov/bc-laws-api/labels/$10","name":"$10","color":"009800"},{"url":"https://api.github.com/repos/bcgov/bc-laws-api/labels/fo","name":"fo","color":"5319e7"},{"url":"https://api.github.com/repos/bcgov/bc-laws-api/labels/help%20wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/bcgov/bc-laws-api/labels/Java","name":"Java","color":"eb6420"},{"url":"https://api.github.com/repos/bcgov/bc-laws-api/labels/XSL","name":"XSL","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-17T20:15:54Z","updated_at":"2015-12-20T01:35:47Z","closed_at":null,"body":"<a rel=\"Inspiration\" href=\"https://github.com/BCDevExchange/docs/blob/master/discussion/projectstates.md\"><img alt=\"An idea being explored and shaped. Open for discussion, but may never go anywhere.\" style=\"border-width:0\" src=\"http://bcdevexchange.org/badge/1.svg\" title=\"An idea being explored and shaped. Open for discussion, but may never go anywhere.\" /></a> \r\n\r\n# THIS IS A TEST\r\n\r\n# Story:\r\n\r\nAs a citizen, I would like to access a typeset PDF document of all the acts and regulations of British Columbia so I can print them.\r\n\r\n \r\n\r\n# Additional detail:\r\n\r\n \r\n\r\nThe Queen’s Printer of British Columbia has converted all legislation in British Columbia to an XML format and given access to this information through an open API. We would like to leverage this XML data to create print ready PDF files. Some work has been done on this by creating and initial print XSL-FO stylesheet.\r\n\r\nXML content will be used in the creation of the print ready PDF through the BCLaws API located here: www.bclaws.ca  and documented here: www.bclaws.ca/documentation\r\n \r\nContent will be converted to PDF using XSL-FO. Modify the draft stylesheet for converting Acts in the [code directory](https://github.com/bcgov/bc-laws-api/tree/master/code)\r\n\r\nThe resulting .fo stylesheet will be used to render the Act into PDF documents using Apache FOP.\r\nThe resulting PDFs should match the font, styles and content of the InDesign files located in the [docs directory](https://github.com/bcgov/bc-laws-api/tree/master/docs)\r\n\r\nAll markup transformation to PDF should be done using XSL-FO.\r\n\r\nAll procedural code should be done using Java.\r\n \r\n\r\n# Acceptance criteria:\r\n\r\n\r\nThe story will be considered complete when the updated stylesheet be used with FOP can to transform the following XML document(s) to match the format of the InDesign files on GitHub:\r\n\r\na.\t[Motor Vehicle Act](http://www.bclaws.ca/civix/content/complete/statreg/1325524918/96318/1768009857/?xsl=/templates/browse.xsl )\r\ni.\tNote that this Act is made up of multiple parts, each part should be combined in order to create the complete print ready PDF.\r\n\r\nb.\t[Administrative Tribunals Act](http://www.bclaws.ca/civix/document/id/complete/statreg/04045_01 )\r\n\r\nc.\t[Motor Vehicle Act Regulation](http://www.bclaws.ca/civix/content/complete/statreg/1325524918/96318/reg96318/1252395447/?xsl=/templates/browse.xsl )\r\n\r\ni.\tNote this Regulation is made up of multiple parts, each part should be combined in order to create the complete print ready PDF.\r\n\r\nd.\t[Court of Appeals Rules Regulation](http://www.bclaws.ca/civix/document/id/complete/statreg/297_2001)\r\n\r\n\r\n\r\n# Please read the [Contributing file](https://github.com/bcgov/bc-laws-api/blob/master/CONTRIBUTING.md) for how to participate.\r\nWe would love to here from you. Please post your questions in the comments below."},"comment":{"url":"https://api.github.com/repos/bcgov/bc-laws-api/issues/comments/166050642","html_url":"https://github.com/bcgov/bc-laws-api/issues/8#issuecomment-166050642","issue_url":"https://api.github.com/repos/bcgov/bc-laws-api/issues/8","id":166050642,"user":{"login":"m-sinclair","id":6541864,"avatar_url":"https://avatars.githubusercontent.com/u/6541864?v=3","gravatar_id":"","url":"https://api.github.com/users/m-sinclair","html_url":"https://github.com/m-sinclair","followers_url":"https://api.github.com/users/m-sinclair/followers","following_url":"https://api.github.com/users/m-sinclair/following{/other_user}","gists_url":"https://api.github.com/users/m-sinclair/gists{/gist_id}","starred_url":"https://api.github.com/users/m-sinclair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-sinclair/subscriptions","organizations_url":"https://api.github.com/users/m-sinclair/orgs","repos_url":"https://api.github.com/users/m-sinclair/repos","events_url":"https://api.github.com/users/m-sinclair/events{/privacy}","received_events_url":"https://api.github.com/users/m-sinclair/received_events","type":"User","site_admin":false},"created_at":"2015-12-20T01:35:47Z","updated_at":"2015-12-20T01:35:47Z","body":"Hi,\r\n\r\nJust to clarify so that I know that I am heading in the right direction.\r\n- I'm using FOP to transform several XML documents into 4 pdfs\r\n- FOP does this by by taking an XSL and transforming that into a FO doc.\r\n- The XSL's that I'm using are 'bcl.xsl, includes,xsl, act.xsl, in.xsl'\r\n\r\nWhen you say \"modify the draft stylesheet\" are you referring to turning that into a fo file? I've noticed that the xsl's are calling several templates that don't exist. Am I creating those or are they missing from the folder? eg. \"getCharSize\"\r\n\r\nMike"}}