root/tags/lgt2210/xml/NOTES

Revision 1460, 8.9 KB (checked in by pmoura, 4 years ago)

Updated release number to 2.21.0.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1=================================================================
2Logtalk - Object oriented extension to Prolog
3Release 2.21.0
4
5Copyright (c) 1998-2004 Paulo Moura.  All Rights Reserved.
6=================================================================
7
8
9This folder contains supporting files for converting XML documentation
10files (which are created when compiling objects, categories, or protocols)
11to PDF files or (X)HTML files using XSL style sheets. The documentation
12files may also be viewed directly in a web browser that supports the W3C
13standards XML, XSLT, CSS, and HTML 4 or XHTML 1.0.
14
15The scripts provided in this folder are just samples, which you should adapt
16to your working environment. Some scripts expect that all files be in the
17same directory. Some others should be called from the directory containing
18the XML documenting files that you wish to convert. See the description of
19each script below for details. Make sure that the XSL processors you intend
20to use are properly installed before running the scripts.
21
22Regarding conversion to HTML/XHTML, the links to the .xsl files on the
23.xml files and the links to the .css files in the generated .html files
24assume that all files reside in the same directory.
25
26The choice of the default .xsl file to use is made in the config files by
27the '$lgt_default_flag'/2 predicate. You may also choose a different
28.xsl file by using the xsl/1 compiler option in the logtalk_compile/2 or
29logtalk_load/2 calls. The default file is lgtxml.xsl (described below).
30
31The documenting files can be either generated as standalone XML files or
32contain a reference to either the Logtalk DTD file, logtalk.dtd, or to
33the Logtalk XML Schema file, logtalk.xsd. The reference to the XML
34specification file can be either a local reference or a URI reference. By
35default, all .xml documenting files contain a local reference but that
36can be changed either in the config files, by setting a Logtalk compiler
37flag, or by using the doctype/1 compiler option. Choose the option value
38that works best with your XSLT tools. To choose between the .dtd or .xsd
39specifications use the xmlspec/1 compiler option.
40
41
42Brief description of each file in this folder:
43 
44
45lgtxml.xsl
46
47    XSLT file for viewing .xml files directly in in a browser such as Mozilla
48    (version 0.9.2 or later) or Microsoft Internet Explorer 5.5 for Windows
49    (after installing the latest Microsoft XML Parser Release that is needed
50    for XSL standard compliance). The links in the (internally generated)
51    HTML files point to related XML files. UTF-8 encoding is assumed. Edit
52    the file if you use a different encoding.
53
54
55lgthtml.xsl
56
57    XSLT file to output HTML files from the .xml files. The links in the
58    generated HTML files point to related HTML files. It can be used to
59    batch convert XML files to HTML files. UTF-8 encoding is assumed. Edit
60    the file if you use a different encoding.
61
62
63lgtxhtml.xsl
64
65    XSLT file to output XHTML 1.0 files from the .xml files. The links in
66    the generated XHTML files point to related XHTML files. It can be used
67    to batch convert XML files to XHTML files. UTF-8 encoding is assumed.
68    Edit the file if you use a different encoding.
69
70
71lgtpdfa4.xsl
72lgtpdfus.xsl
73
74    XSLT files to generate PDF files from the XML files (formatted either
75    for A4 paper or US Letter paper) using XSL Formatting Objects. Tested
76    with the XSL-FO processors Apache FOP 0.20.5 (http://xml.apache.org/fop),
77    PassiveTeX 1.21 (http://www.tei-c.org.uk/Software/passivetex/), and
78    RenderX 3.7.8 (http://www.renderx.com/).
79
80
81ie50.xsl
82
83    XSLT file for viewing .xml files in Microsoft Internet Explorer 5.x
84    (using the outdated Microsoft XML Parser; works with both Macintosh
85    and Windows versions). The links in the (internally generated) HTML
86    files point to related XML files. It can be used to browse and view
87    the XML files directly.
88
89
90logtalk.dtd
91
92    Document type description describing the structure of the .xml files
93    generated by Logtalk.
94   
95
96logtalk.xsd
97
98    XML Schema describing the structure of the .xml files generated by
99    Logtalk.
100
101
102logtalk.css
103
104    Cascade style sheet file to render the HTML/XHTML output of the .xsl
105    files in a web browser.
106
107
108lgt2pdf.sh
109    (bash shell script)
110lgt2pdf.js
111    (JScript command-line script for Windows; requires WSH 5.6 or later version)
112
113    Sample scripts to batch convert .xml files to .pdf files
114
115    Supported XSL-FO processors:
116        * Apache FOP processor (tested with version 0.20.5)
117            http://xml.apache.org/fop
118        * RenderX XEP processor (tested with version 3.8.1)
119            http://www.renderx.com/ 
120
121    When using the FOP, compile your Logtalk source files using the compiler
122    option doctype(standalone) in order to workaround a bug on the XALAN
123    processor used by this processor.
124
125    These script assumes that the LOGTALKHOME environment variable is defined
126    and that the chosen XSL-FO processor is available in the path.
127    The scripts should be called from the directory containing the .xml files
128    you wish to convert. Call the scripts with the help option for a description
129    of the available optional parameters (type "cscript lgt2pdf.js help" or
130    "lgt2pdf.sh -h").
131
132
133lgt2html.sh
134    (bash shell script)
135lgt2html.js
136    (JScript command-line script for Windows; requires WSH 5.6 or later version)
137
138    Sample scripts to batch convert .xml files to .html files. These scripts
139    also generate an index.html file which contains links to all the converted
140    files.
141   
142    Supported XSLT processors:
143        * libxslt (tested with version 1.1.8)
144            http://xmlsoft.org/XSLT/
145        * Xalan (tested with version 1.7.0)
146            http://xml.apache.org/xalan-c/index.html
147        * Sablotron (tested with version 1.0.1)
148            http://www.gingerall.com/charlie/ga/xml/p_sab.xml
149        * Microsoft MSXSL (only for the JScript script)
150            http://msdn.microsoft.com/library/en-us/dnxml/html/msxsl.asp
151
152    These scripts assumes that the LOGTALKHOME environment variable is defined
153    and that the chosen XSLT processor is available in the path.
154
155    The scripts should be called from the directory containing the .xml files
156    you wish to convert. Call the scripts with the help option for a description
157    of the available optional parameters (type "cscript lgt2pdf.js help" or
158    "lgt2pdf.sh -h").
159
160
161html.sh
162xhtml.sh
163
164    Sample Unix shell scripts to batch convert .xml files to .html files. These
165    scripts also generates an index.html file which contains links to all the
166    converted files. The title of the index.html file can be given as a parameter
167    to the script. Edit the scripts to match your environment before running them.
168    Requires James Clark XT XSLT processor 20020426a or later version
169    (http://www.jclark.com/xml/). You will need either to copy your .xml files to
170    this directory or to copy these files to the directory where the .xml files
171    reside.
172
173
174htmlnt.cmd
175
176    Sample Windows NT batch script to convert .xml files to .html files.
177    The script also generates an index.html file that contains links to all
178    converted files. The title of the index.html can be given as a parameter
179    to the script. Edit the script to match your environment before running
180    it and to chose between HTML or XHTML output. Requires James Clark XT
181    XSLT processor 20020426a or later version (http://www.jclark.com/xml/).
182    You will need either to copy your .xml files to this directory or to copy
183    these files to the directory where the .xml files reside.
184
185
186htmldos.bat
187
188    Sample DOS batch script to convert .xml files to .html files. Edit the
189    script to match your environment before running it and to chose between
190    HTML or XHTML output. Requires James Clark XT XSLT processor 20020426a
191    or later version (http://www.jclark.com/xml/). You will need either to
192    copy your .xml files to this directory or to copy these files to the
193    directory where the .xml files reside.
194
195
196pdf.sh
197
198    Sample Unix shell script to batch convert .xml files to .pdf files.
199    Edit the script to match your environment and paper format preference
200    before running it. Requires Apache FOP processor (http://xml.apache.org/fop).
201    Tested with version 0.20.5 (to workaround a bug on the XALAN processor used
202    by FOP, you should use the compiler option doctype(standalone) when compiling
203    your Logtalk source files). You will need either to copy your .xml files to
204    this directory or to copy these files to the directory where the .xml files
205    reside.
206
207
208pdf.bat
209
210    Sample DOS batch script to convert .xml files to .pdf files.
211    Edit the script to match your environment and paper format preference
212    before running it. Requires Apache FOP processor (http://xml.apache.org/fop).
213    Tested with version 0.20.5 (to workaround a bug on the XALAN processor used
214    by FOP, you should use the compiler option doctype(standalone) when compiling
215    your Logtalk source files). You will need either to copy your .xml files to
216    this directory or to copy these files to the directory where the .xml files
217    reside.
218
219
220Note that you can write other XSL files for converting the XML files to other
221formats besides PDF or (X)HTML. You can also write alternative CSS and XSL
222files to change the appearance of the (X)HTML and PDF files.
Note: See TracBrowser for help on using the browser.