|
This web-site copy of the readme.html file is posted to provide information regarding the scope and use of this software. 1. IntroductionThis package supports the editing of OASIS [OASIS] genericode [genericode] files and OASIS context value association [CVA] files (which reference genericode files) using OpenOffice 3 [OOo]. It also includes the validation and formatting of the resulting genericode and CVA XML [XML 1.0] documents. These two specifications are maintained by the OASIS Code List Representation Technical Committee [CLRTC]. Installing these two packages as XML Filters in OpenOffice 3 enables the user to create new or edit existing genericode and CVA files. The supplemental validation and rendering processes are supported using either drag-and-drop or a command-line interface in Windows. Some sample genericode and CVA files from the OASIS Universal Business Language 2.0 [UBL 2.0] package are included for demonstration. For limitations please review Section 9, “Help, future plans and other documentation”. 1.1. Restrictions of useRedistribution in source or binary forms in any way is strictly prohibited. There is no charge for the purchase of this code but the use of this code, unless specifically permitted in writing by Crane Softwrights Ltd., is restricted to bona-fide users of Crane Softwrights Ltd. book: Practical Code List Implementation [Crane Books]. THE AUTHOR MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS CODE FOR ANY PURPOSE. THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2. InstallationNo special preparation of OpenOffice 3 is required for the first time installing these filters. Subsequent installations of these filters should follow uninstalling the installed version of the filters. 2.1. Uninstalling the installed version of these filtersAt this time of writing there are problems sometimes exhibited in OpenOffice 3 when trying to install a new version of one
of these filters on top of an old version of the same filter (that have been reported to the OpenOffice developers The following steps will effectively remove the significant remnants of an old installation, and must be performed once for each of the two filters:
Start OpenOffice 3 and open a new document or spreadsheet. Click the menu item "Tools" / "XML Filter Settings...", select (for example) the "Genericode by Crane Softwrights Ltd" filter and press the button "Edit...": Select the "Transformation" tab and press the "Browse..." button for the "XSLT for export" selection: Right click on the stylesheet name and delete the stylesheet (note that if you hold down the shift key this will permanently delete the file rather than sending it to the recycle bin): Press the "Cancel" button to return to the Transformation tab and repeat for the "Template for import" entry (note that it is not necessary to do this for the "XSLT for import" entry): Press the "Cancel" button to return to the "Transformation" tab, and then press "Cancel to return to the "XML Filter Settings" dialogue box. Press the "Delete..." key to delete the filter: Don't forget to do the same steps for the second of the two filters, in this example that would be the "CVA by Crane Softwrights Ltd" filter. Note at this point it is often true that the filter entries still show in the "XML Filter Settings" dialogue box even though you have requested they be deleted. Pressing "Close" and reopening the dialogue box using the menu item "Tools" / "XML Filter Settings..." will show the list without the deleted entries. 2.2. Installing the two filtersStart OpenOffice 3 and open a new document or spreadsheet. Click the menu item "Tools" / "XML Filter Settings..." to get to the filter dialogue. Each filter is installed separately using the following procedure (illustrated for the "Genericode by Crane Softwrights Ltd" filter but the same steps are taken for the "CVA by Crane Softwrights Ltd" filter). Press the button "Open Package..." without regard for any existing filter that may happen to be selected: Navigate to the directory in which you unzipped the distribution file and select Repeat this "Open Package..." step using 3. Opening genericode filesYou can open up an existing genericode file (subject to the limitations described in Section 9, “Help, future plans and other documentation”) or create a new genericode file. 3.1. Opening an existing genericode fileOpen an existing genericode file from within OpenOffice the using the "File/Open..." menu item and selecting files of type "Genericode (*.gc)". This file type entry is sometimes difficult to find in the very long list of document types, but can quickly be selected by pressing the "G" key until the type is given. When using the drop-down list, this entry is found in the long section of spreadsheet file types beginning with "ODF Spreadsheet (*.ods)". The file extension of the genericode file does not have to be " Review Section 9, “Help, future plans and other documentation” when opening a genericode file results in an empty spreadsheet. 3.2. Creating a new genericode file from scratchSelecting the menu item File/New/Templates and Documents" brings up the "Templates and Documents - Templates" dialogue. Double-click on the "Genericode by Crane Softwrights Ltd" entry to bring up the "Templates and Documents - Genericode by Crane Softwrights Ltd" dialogue. Double-click on the "genericode" entry to bring up a copy of the genericode template. 4. Opening CVA filesYou can open up an existing context value association file (subject to the limitations described in Section 9, “Help, future plans and other documentation”) or create a new context value association file. 4.1. Opening an existing context value association fileOpen an existing context value association file from within OpenOffice the using the "File/Open..." menu item and selecting files of type "Context Value Association (*.cva)". This file type entry is sometimes difficult to find in the very long list of document types, but can quickly be selected by pressing the "C" key until the type is given. When using the drop-down list, this entry is found in the long section of spreadsheet file types beginning with "ODF Spreadsheet (*.ods)". The file extension of the genericode file does not have to be " Review Section 9, “Help, future plans and other documentation” when opening a genericode file results in an empty spreadsheet. 4.2. Creating a new context value association file from scratchSelecting the menu item File/New/Templates and Documents" brings up the "Templates and Documents - Templates" dialogue. Double-click on the "CVA by Crane Softwrights Ltd" entry to bring up the "Templates and Documents - CVA by Crane Softwrights Ltd" dialogue. Double-click on the "contextValueAssociation" entry to bring up a copy of the CVA template. 5. Using OpenOffice format for intermediate resultsThere is very little validation going on in OpenOffice 3 when creating the content of a genericode file. The export does as much as it can with the information at hand, but some incomplete information may be lost when using the genericode format. After saving the document in genericode format, you can also choose to save a copy in Open Document Spreadsheet [ODF] format which will preserve everything that has been entered. 6. Saving and reloading the file to effect changesThere are a number of actions that take place when a genericode or context value association file is loaded into OpenOffice 3 using these filters, and there are editing steps that are only engaged when the file being edited is reloaded after a save operation. This technique avoids the need to install macros in the template, as some users of OpenOffice are expressly prohibited from engaging macros. When during the editing process you need to move, insert or delete column definitions, or when needing to increase the quantity of repeated constructs allowed by a cardinality of "0..n" or "1..n", this is engaged by saving and reloading the file being edited. Be careful to save first before attempting a reload, as if you cancel your changes during a reload process you will lose your work. To save the document use the "Save" or "Save as..." entry in the "File" menu, avoiding at this time the use of the "Reload" entry: To engage the changes after saving, use the "Reload" entry in the "File" menu: 7. Validating genericode and context value association filesIn the installation directory are the Windows batch files " The validation uses the corresponding W3C Schema [W3C Schema] expression of constraints of each document type, checked with Norm Walsh's 8. Rendering XML filesIn the installation directory is the Windows batch file " The rendering uses the Saxon [Saxon] invocation of XSLT 1.0 [XSLT 1.0], and works with any XML instance in which the stylesheet association processing instruction is used. Note that when using the Windows Explorer interface, generating the HTML file in this way sometimes does not trigger a refresh of the File Manager window. Pressing F5 will refresh the directory listing in the window. Note also that simply editing the genericode or context value association file does not recreate the HTML rendition. To get an up-to-date rendition one must recreate the HTML after saving any changes to the edited file. 9. Help, future plans and other documentationGetting an empty spreadsheet when trying to open a genericode file in OpenOffice is evidence of an installation problem. Please review Section 2, “Installation” for details regarding uninstalling the old filter and reinstalling a new filter. All other documentation for this package is found under the "Help" tab of either the If you should encounter any problems within the document areas of functionality, we welcome your feedback to improve the application
for you and other users. Please contact us at 10. Bibliography[Assoc] James Clark Associating Style Sheets with XML documents Version 1.0 1999-06-29 [CVA] G. Ken Holman Context Value Association files [CLRTC] G. Ken Holman, Chair Code List Representation Technical Committee [Crane Books] Crane Softwrights Ltd. Crane's book sales page [genericode] Tony Coates genericode, OASIS Code List Representation Technical Committee repository [ODF] Open Document Formathttp://www.oasis-open.org/committees/office/ [OOo] Open Office http://www.openoffice.org [Saxon] Michael Kay Saxon [UBL 2.0] Jon Bosak, Tim McGrath, G. Ken Holman Universal Business Language (UBL) Version 2.0, OASIS UBL Technical Committee 2006 [W3C Schema] XML Schema Part 0: Primer, XML Schema Part 1: Structures, XML Schema Part 2: Datatypes 2004-10-28 [Xerces] The Apache XML Project Xerces [xjparse] Norman Walsh xjparse [XML 1.0] Extensible Markup Language (XML) 1.0 (Fourth Edition) 2006-08-16 [XSLT 1.0] James Clark XSL Transformations (XSLT) Version 1.0 1999-11-16 |
![]() CRANE
SOFTWRIGHTS LTD. BOX 266, KARS, ONTARIO CANADA K0A-2E0 +1 (613) 489-0999 (Voice) +1 (613) 489-0995 (Fax) TRAINING RSS XML |
Link traversal: This web site relies heavily on client-side redirection. If certain links do not work for you, please ensure you have this behaviour enabled in your browser.
Small print: All use of this web site and all business conducted with Crane Softwrights Ltd. is subject to the legal disclaimers detailed at http://www.CraneSoftwrights.com/legal ... please contact us if you have any questions. All trademarks, servicemarks, registered trademarks, and registered servicemarks are the property of their respective owners.
Link legend: links that are marked with this dotted underline will open up a new browser window, otherwise the same browser window is used for the link target.