root/trunk/xml/NOTES.txt

Revision 4662, 8.9 KB (checked in by pmoura, 5 days ago)

Updated copyright notice.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1================================================================
2Logtalk - Open source object-oriented logic programming language
3Release 2.35.0
4
5Copyright (c) 1998-2009 Paulo Moura.        All Rights Reserved.
6Logtalk is free software.  You can redistribute it and/or modify
7it under the terms of the "Artistic License 2.0" as published by
8The Perl Foundation. Consult the "LICENSE.txt" file for details.
9================================================================
10
11
12This folder contains supporting files for converting and/or indexing XML
13documentation files (which are created when compiling objects, categories,
14or protocols) to PDF files or (X)HTML files using XSL style sheets. The
15documentation files may also be viewed directly on a web browser that
16supports the W3C standards XML, XSLT, CSS, and HTML 4 or XHTML 1.0.
17
18The shell and command-line scripts should be called from the directory
19containing the XML documenting files that you wish to convert. See the
20description of each script below for details.
21
22MAKE SURE THAT THE XSL PROCESSORS YOU INTEND TO USE ARE PROPERLY INSTALLED
23AND WORKING BEFORE RUNNING THESE SCRIPTS!
24
25Regarding conversion to (X)HTML, the links to the XSL files on the XML
26files and the links to the CSS files in the generated HTML files assume
27that all files reside in the same directory.
28
29The choice of the default XSL file to use is made in the config files by
30the '$lgt_default_flag'/2 predicate. You may also choose a different XSL
31file by using the xslfile/1 compiler flag in the logtalk_compile/2 or
32logtalk_load/2 calls. The default file is "lgtxml.xsl" (described below).
33
34The documenting files can be generated either as standalone XML files
35or contain a reference to either the Logtalk DTD file, "logtalk.dtd",
36or to the Logtalk XML Schema file, "logtalk.xsd". The reference to the
37XML specification file can be either a local reference or a URI reference.
38By default, all XML documenting files contain a local reference but that
39can be changed either in the config files, by setting a Logtalk compiler
40flag, or by using the xmlsref/1 compiler flag. Choose the option value
41that works best with your XSLT tools. To choose between the DTD or XSD
42specifications use the xmlspec/1 compiler flag.
43
44As Logtalk uses a single namespace for all objects, categories, and protocols,
45you may want to define an alternate, global compilation directory to store all
46the XML documenting files, thus ensuring proper working of links to other
47entities in the generated (X)HTML files. This can be easily accomplished by
48using the predicate '$lgt_default_flag'/2, which is defined on the config
49files. For example:
50
51    '$lgt_default_flag'(xmldir, 'xml_docs/').
52    ...
53    '$lgt_default_flag'(altdirs, on).
54    ...
55
56
57Brief description of each file in this folder:
58
59
60lgtxml.xsl
61
62    XSLT file for viewing XML files directly in a browser. The links
63    in the (internally generated) HTML 4.01 files point to related XML
64    files. UTF-8 encoding is assumed. Edit the file if you use a different
65    encoding.
66
67
68lgthtml.xsl
69
70    XSLT file to output HTML 4.01 files from the XML files. The links in
71    the generated HTML files point to related HTML files. It can be used
72    to batch convert XML files to HTML files. UTF-8 encoding is assumed.
73    Edit the file if you use a different encoding.
74
75
76lgtxhtml.xsl
77
78    XSLT file to output XHTML 1.1 files from the XML files. The links in
79    the generated XHTML files point to related XHTML files. It can be used
80    to batch convert XML files to XHTML files. UTF-8 encoding is assumed.
81    Edit the file if you use a different encoding.
82
83lgttxt.xsl
84
85    XSLT file to output simple text files from the XML files. UTF-8 encoding
86    is assumed. Edit the file if you use a different encoding.
87
88lgtpdf.xsl
89lgtpdfa4.xsl
90lgtpdfus.xsl
91
92    XSLT files to generate PDF files from the XML files (formatted either
93    for A4 paper or US Letter paper) using XSL Formatting Objects. Tested
94    with the XSL-FO processors RenderX 4.4 (http://www.renderx.com/) and
95    Apache FOP 0.94 (http://xmlgraphics.apache.org/fop/).
96
97    The "lgtpdf.xsl" file defines a parameter for the paper format (either
98    A4 or US Letter). The files "lgtpdfa4.xsl" and "lgtpdfus.xsl" import the
99    "lgtpdf.xsl" file and set the paper format parameter to the appropriate
100    value.
101
102
103ie50.xsl
104
105    XSLT file for viewing XML files in Microsoft Internet Explorer 5.x
106    (using the outdated Microsoft XML Parser; works with both Macintosh
107    and Windows versions). The links in the (internally generated) HTML
108    files point to related XML files. It can be used to browse and view
109    the XML files directly.
110
111
112logtalk.dtd
113
114    DTD file describing the structure of the XML files generated by
115    Logtalk.
116   
117
118custom.ent
119
120    Document type description defining XML entities for personal data
121    that may be used on Logtalk documenting directives.
122
123
124logtalk.rng
125
126    RELAX NG file describing the structure of the XML files generated
127    by Logtalk.
128
129
130logtalk.xsd
131
132    XML Schema file describing the structure of the XML files generated
133    by Logtalk.
134
135
136logtalk.css
137
138    Cascade style sheet file to render the HTML/XHTML output of the XSL
139    files in a web browser.
140
141
142lgt2pdf.sh
143    (bash shell script)
144lgt2pdf.js
145    (JScript command-line script for Windows; requires WSH 5.6 or later
146    version)
147
148    Sample scripts to batch convert XML files to PDF files
149
150    Supported XSL-FO processors:
151        * Apache FOP processor (tested with version 0.94)
152            http://xmlgraphics.apache.org/fop/
153        * Lunasil Xinc processor (tested with version 2.02)
154            http://www.lunasil.com/index.html
155        * RenderX XEP processor (tested with version 3.8.1)
156            http://www.renderx.com/ 
157
158    These script assume that the LOGTALKHOME and LOGTALKUSER environment
159    variables are defined and that the chosen XSL-FO processor is available
160    in the path.
161
162    The scripts should be called from the directory containing the XML
163    files you wish to convert. Call the scripts with the help option for
164    a description of the available optional parameters (type "cscript
165    lgt2pdf.js help" or "lgt2pdf.sh -h"; depending on your Logtalk
166    installation, you may simply need to type "lgt2pdf" in order to run
167    the script).
168
169
170lgt2html.sh
171    (bash shell script)
172lgt2html.js
173    (JScript command-line script for Windows; requires WSH 5.6 or
174    later version)
175
176    Sample scripts to batch convert XML files to HTML files. These
177    scripts also generate an "index.html" file which contains links
178    to all the converted files.
179   
180    Supported XSLT processors:
181        * libxslt (tested with version 1.1.8)
182            http://xmlsoft.org/XSLT/
183        * Xalan (tested with version 1.7.0)
184            http://xml.apache.org/xalan-c/index.html
185        * Sablotron (tested with version 1.0.1)
186            http://www.gingerall.com/charlie/ga/xml/p_sab.xml
187        * Microsoft MSXSL (only for the Windows JScript script)
188            http://msdn.microsoft.com/XML/XMLDownloads/default.aspx
189
190    These scripts assumes that the LOGTALKHOME and LOGTALKUSER environment
191    variables are defined and that the chosen XSLT processor is available in
192    the path.
193
194    The scripts should be called from the directory containing the XML files
195    you wish to convert. Call the scripts with the help option for a description
196    of the available optional parameters (type "cscript lgt2html.js help" or
197    "lgt2html.sh -h"; depending on your Logtalk installation, you may simply
198    need to type "lgt2html" in order to run the script).
199
200
201lgt2xml.sh
202    (bash shell script)
203lgt2xml.js
204    (JScript command-line script for Windows; requires WSH 5.6 or
205    later version)
206
207    Sample scripts for indexing the XML files in the current directory
208    by generating an "index.html" file which contains links to all the
209    files. In addition, these scripts also copies of the "lgtxml.xsl"
210    and "logtalk.css" files to the current directory, allowing direct
211    visualization of the XML files on a supported web browser.
212
213    These scripts assumes that the LOGTALKHOME and LOGTALKUSER environment
214    variables are defined.
215
216    The scripts should be called from the directory containing the XML files
217    you wish to index. Call the scripts with the help option for a description
218    of the available optional parameters (type "cscript lgt2xml.js help" or
219    "lgt2xml.sh -h"; depending on your Logtalk installation, you may simply
220    need to type "lgt2xml" in order to run the script).
221
222
223lgt2txt.sh
224    (bash shell script)
225lgt2txt.js
226    (JScript command-line script for Windows; requires WSH 5.6 or
227    later version)
228
229    Sample scripts to batch convert XML files to text files.
230
231    These scripts assumes that the LOGTALKHOME and LOGTALKUSER environment
232    variables are defined.
233
234    The scripts should be called from the directory containing the XML files
235    you wish to convert. Call the scripts with the help option for a description
236    of the available optional parameters (type "cscript lgt2txt.js help" or
237    "lgt2txt.sh -h"; depending on your Logtalk installation, you may simply
238    need to type "lgt2txt" in order to run the script).
239
240
241Note that you can write other XSL files for converting the XML files to
242other formats besides PDF or (X)HTML. You can also write alternative CSS
243and XSL files to change the appearance of the (X)HTML and PDF files.
Note: See TracBrowser for help on using the browser.