The Geneva Document Generator

From MircWiki
Revision as of 16:37, 1 November 2010 by Johnperry (talk | contribs) (New page: The Geneva application can create documents and transmit them to Repositories. The documents are created from XML templates. Each document has a unique template that includes both static c...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The Geneva application can create documents and transmit them to Repositories. The documents are created from XML templates. Each document has a unique template that includes both static content and references to information that is part of the registration which triggers the creation of the document. This article describes how to create templates.

Documents are CDA objects. All the files necessary to create a document must be contained in a directory unique to the document.

Documents may or may not contain Base64-encoded PDFs. The document generator creates the PDF from a file called pdfSource.xml in the document's directory. If the file is not present, no PDF is created. The pdfSource.xml file is transformed by the pdfSourceToFO.xsl program (located in the Geneva/docxsl directory). The result is a Formatting Objects XML document which is then transformed to a PDF.

The CDA is created from a file called cdaSource.xml, located in the document's directory. The cdaSource.xml file is transformed by the cdaSourceToCDA.xsl program (located in the Geneva/docxsl directory). The result is an XML document which is then transformed into the XML for transmission to the Repository.

Both the pdfSourceToFO.xsl program and the cdaSourceToCDA.xsl program are passed many parameters from the registration. Each program recognizes XML elements that insert the values of the parameters into the output object.