2007-06-12 11:39:47 +01:00
|
|
|
================================================================
|
|
|
|
Logtalk - Open source object-oriented logic programming language
|
2007-06-24 14:27:35 +01:00
|
|
|
Release 2.30.2
|
2001-06-06 20:40:57 +01:00
|
|
|
|
2007-01-10 12:46:10 +00:00
|
|
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
2007-06-12 11:39:47 +01:00
|
|
|
================================================================
|
2001-06-06 20:40:57 +01:00
|
|
|
|
2002-04-03 14:26:59 +01:00
|
|
|
|
2005-04-23 00:57:45 +01:00
|
|
|
This folder contains supporting files for converting and/or indexing XML
|
|
|
|
documentation files (which are created when compiling objects, categories,
|
|
|
|
or protocols) to PDF files or (X)HTML files using XSL style sheets. The
|
|
|
|
documentation files may also be viewed directly on a web browser that
|
|
|
|
supports the W3C standards XML, XSLT, CSS, and HTML 4 or XHTML 1.0.
|
2001-06-06 20:40:57 +01:00
|
|
|
|
2005-12-24 18:00:21 +00:00
|
|
|
The shell and command-line scripts should be called from the directory
|
|
|
|
containing the XML documenting files that you wish to convert. See the
|
|
|
|
description of each script below for details.
|
2005-04-23 00:57:45 +01:00
|
|
|
|
|
|
|
MAKE SURE THAT THE XSL PROCESSORS YOU INTEND TO USE ARE PROPERLY INSTALLED
|
2005-08-08 13:13:45 +01:00
|
|
|
AND WORKING BEFORE RUNNING THESE SCRIPTS!
|
2002-02-08 19:57:23 +00:00
|
|
|
|
2007-03-28 23:44:31 +01:00
|
|
|
Regarding conversion to (X)HTML, the links to the XSL files on the XML
|
|
|
|
files and the links to the CSS files in the generated HTML files assume
|
2005-12-24 18:00:21 +00:00
|
|
|
that all files reside in the same directory.
|
2001-06-06 20:40:57 +01:00
|
|
|
|
2007-03-28 23:44:31 +01:00
|
|
|
The choice of the default XSL file to use is made in the config files by
|
|
|
|
the '$lgt_default_flag'/2 predicate. You may also choose a different XSL
|
2005-12-24 18:00:21 +00:00
|
|
|
file by using the xslfile/1 compiler flag in the logtalk_compile/2 or
|
2007-03-28 23:44:31 +01:00
|
|
|
logtalk_load/2 calls. The default file is "lgtxml.xsl" (described below).
|
|
|
|
|
|
|
|
The documenting files can be generated either as standalone XML files
|
|
|
|
or contain a reference to either the Logtalk DTD file, "logtalk.dtd",
|
|
|
|
or to the Logtalk XML Schema file, "logtalk.xsd". The reference to the
|
|
|
|
XML specificationfile can be either a local reference or a URI reference.
|
|
|
|
By default, all XML documenting files contain a local reference but that
|
|
|
|
can be changed either in the config files, by setting a Logtalk compiler
|
|
|
|
flag, or by using the xmlsref/1 compiler flag. Choose the option value
|
|
|
|
that works best with your XSLT tools. To choose between the DTD or XSD
|
|
|
|
specifications use the xmlspec/1 compiler flag.
|
2002-09-14 19:14:17 +01:00
|
|
|
|
2005-04-23 00:57:45 +01:00
|
|
|
As Logtalk uses a single namespace for all objects, categories, and protocols,
|
2005-12-24 18:00:21 +00:00
|
|
|
you may want to define an alternate, global compilation directory to store all
|
|
|
|
the XML documenting files, thus ensuring proper working of links to other
|
|
|
|
entities in the generated (X)HTML files. This can be easily accomplished by
|
|
|
|
using the predicate '$lgt_alt_directory'/2, which is defined on the config
|
|
|
|
files, and by setting the altdirs/1 compiler flag to "on". For example:
|
|
|
|
|
|
|
|
'$lgt_alt_directory'(xml, '%LOGTALKUSER/xmldocs/').
|
|
|
|
...
|
|
|
|
'$lgt_default_flag'(altdirs, on).
|
|
|
|
...
|
2005-04-23 00:57:45 +01:00
|
|
|
|
2002-04-03 14:26:59 +01:00
|
|
|
|
2002-02-08 19:57:23 +00:00
|
|
|
Brief description of each file in this folder:
|
2005-12-24 18:00:21 +00:00
|
|
|
|
2001-06-06 20:40:57 +01:00
|
|
|
|
2001-12-05 23:57:48 +00:00
|
|
|
lgtxml.xsl
|
|
|
|
|
2007-03-28 23:44:31 +01:00
|
|
|
XSLT file for viewing XML files directly in a browser. The links
|
|
|
|
in the (internally generated) HTML 4.01 files point to related XML
|
|
|
|
files. UTF-8 encoding is assumed. Edit the file if you use a different
|
|
|
|
encoding.
|
2004-02-09 14:18:27 +00:00
|
|
|
|
|
|
|
|
2004-08-16 17:41:11 +01:00
|
|
|
lgthtml.xsl
|
|
|
|
|
2007-03-28 23:44:31 +01:00
|
|
|
XSLT file to output HTML 4.01 files from the XML files. The links in
|
|
|
|
the generated HTML files point to related HTML files. It can be used
|
|
|
|
to batch convert XML files to HTML files. UTF-8 encoding is assumed.
|
|
|
|
Edit the file if you use a different encoding.
|
2004-08-16 17:41:11 +01:00
|
|
|
|
|
|
|
|
2004-02-09 14:18:27 +00:00
|
|
|
lgtxhtml.xsl
|
|
|
|
|
2007-03-28 23:44:31 +01:00
|
|
|
XSLT file to output XHTML 1.1 files from the XML files. The links in
|
2004-02-09 14:18:27 +00:00
|
|
|
the generated XHTML files point to related XHTML files. It can be used
|
|
|
|
to batch convert XML files to XHTML files. UTF-8 encoding is assumed.
|
|
|
|
Edit the file if you use a different encoding.
|
2001-12-05 23:57:48 +00:00
|
|
|
|
|
|
|
|
2005-12-24 18:00:21 +00:00
|
|
|
lgtpdf.xsl
|
2003-12-30 13:33:51 +00:00
|
|
|
lgtpdfa4.xsl
|
|
|
|
lgtpdfus.xsl
|
2002-02-08 19:57:23 +00:00
|
|
|
|
2004-08-16 17:41:11 +01:00
|
|
|
XSLT files to generate PDF files from the XML files (formatted either
|
2002-02-08 19:57:23 +00:00
|
|
|
for A4 paper or US Letter paper) using XSL Formatting Objects. Tested
|
2005-12-24 18:00:21 +00:00
|
|
|
with the XSL-FO processors Apache FOP 0.20.5 (http://xml.apache.org/fop)
|
|
|
|
and RenderX 4.4 (http://www.renderx.com/).
|
|
|
|
|
|
|
|
The "lgtpdf.xsl" file defines a parameter for the paper format (either
|
|
|
|
A4 or US Letter). The files "lgtpdfa4.xsl" and "lgtpdfus.xsl" import the
|
|
|
|
"lgtpdf.xsl" file and set the paper format parameter to the appropriate
|
|
|
|
value.
|
2001-06-06 20:40:57 +01:00
|
|
|
|
|
|
|
|
2002-09-14 19:14:17 +01:00
|
|
|
ie50.xsl
|
2001-06-06 20:40:57 +01:00
|
|
|
|
2007-03-28 23:44:31 +01:00
|
|
|
XSLT file for viewing XML files in Microsoft Internet Explorer 5.x
|
2002-02-08 19:57:23 +00:00
|
|
|
(using the outdated Microsoft XML Parser; works with both Macintosh
|
|
|
|
and Windows versions). The links in the (internally generated) HTML
|
|
|
|
files point to related XML files. It can be used to browse and view
|
|
|
|
the XML files directly.
|
2001-06-06 20:40:57 +01:00
|
|
|
|
|
|
|
|
|
|
|
logtalk.dtd
|
|
|
|
|
2007-03-28 23:44:31 +01:00
|
|
|
DTD file describing the structure of the XML files generated by
|
2006-12-28 13:03:34 +00:00
|
|
|
Logtalk.
|
2001-12-05 23:57:48 +00:00
|
|
|
|
2001-06-06 20:40:57 +01:00
|
|
|
|
2006-11-07 18:11:49 +00:00
|
|
|
custom.ent
|
|
|
|
|
2007-03-28 23:44:31 +01:00
|
|
|
Document type description defining XML entities for personal data
|
|
|
|
that may be used on Logtalk documenting directives.
|
2006-12-28 13:03:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
logtalk.rng
|
|
|
|
|
2007-03-28 23:44:31 +01:00
|
|
|
RELAX NG file describing the structure of the XML files generated
|
2006-12-28 13:03:34 +00:00
|
|
|
by Logtalk.
|
|
|
|
|
2006-11-07 18:11:49 +00:00
|
|
|
|
2001-06-06 20:40:57 +01:00
|
|
|
logtalk.xsd
|
|
|
|
|
2007-03-28 23:44:31 +01:00
|
|
|
XML Schema file describing the structure of the XML files generated
|
2006-12-28 13:03:34 +00:00
|
|
|
by Logtalk.
|
2001-06-06 20:40:57 +01:00
|
|
|
|
|
|
|
|
|
|
|
logtalk.css
|
|
|
|
|
2007-03-28 23:44:31 +01:00
|
|
|
Cascade style sheet file to render the HTML/XHTML output of the XSL
|
2004-02-09 14:18:27 +00:00
|
|
|
files in a web browser.
|
2001-06-06 20:40:57 +01:00
|
|
|
|
|
|
|
|
2004-08-16 17:41:11 +01:00
|
|
|
lgt2pdf.sh
|
|
|
|
(bash shell script)
|
|
|
|
lgt2pdf.js
|
2005-12-24 18:00:21 +00:00
|
|
|
(JScript command-line script for Windows; requires WSH 5.6 or later
|
|
|
|
version)
|
2004-08-16 17:41:11 +01:00
|
|
|
|
2007-03-28 23:44:31 +01:00
|
|
|
Sample scripts to batch convert XML files to PDF files
|
2004-08-16 17:41:11 +01:00
|
|
|
|
|
|
|
Supported XSL-FO processors:
|
|
|
|
* Apache FOP processor (tested with version 0.20.5)
|
|
|
|
http://xml.apache.org/fop
|
2005-12-24 18:00:21 +00:00
|
|
|
* Lunasil Xinc processor (tested with version 2.02)
|
|
|
|
http://www.lunasil.com/index.html
|
2004-08-16 17:41:11 +01:00
|
|
|
* RenderX XEP processor (tested with version 3.8.1)
|
|
|
|
http://www.renderx.com/
|
|
|
|
|
2007-03-28 23:44:31 +01:00
|
|
|
When using the FOP, you must compile your Logtalk source files using
|
|
|
|
the compiler option xmlsref(standalone) in order to workaround a bug
|
|
|
|
on the XALAN processor used by this processor.
|
2005-12-24 18:00:21 +00:00
|
|
|
|
|
|
|
These script assume that the LOGTALKHOME and LOGTALKUSER environment
|
|
|
|
variables are defined and that the chosen XSL-FO processor is available
|
|
|
|
in the path.
|
2004-08-16 17:41:11 +01:00
|
|
|
|
2007-03-28 23:44:31 +01:00
|
|
|
The scripts should be called from the directory containing the XML
|
|
|
|
files you wish to convert. Call the scripts with the help option for
|
|
|
|
a description of the available optional parameters (type "cscript
|
|
|
|
lgt2pdf.js help" or "lgt2pdf.sh -h"; depending on your Logtalk
|
|
|
|
installation, you may simply need to type "lgt2pdf" in order to run
|
|
|
|
the script).
|
2004-08-16 17:41:11 +01:00
|
|
|
|
|
|
|
|
|
|
|
lgt2html.sh
|
|
|
|
(bash shell script)
|
|
|
|
lgt2html.js
|
2007-03-28 23:44:31 +01:00
|
|
|
(JScript command-line script for Windows; requires WSH 5.6 or
|
|
|
|
later version)
|
2004-08-16 17:41:11 +01:00
|
|
|
|
2007-03-28 23:44:31 +01:00
|
|
|
Sample scripts to batch convert XML files to HTML files. These
|
|
|
|
scripts also generate an "index.html" file which contains links
|
|
|
|
to all the converted files.
|
2004-08-16 17:41:11 +01:00
|
|
|
|
|
|
|
Supported XSLT processors:
|
|
|
|
* libxslt (tested with version 1.1.8)
|
|
|
|
http://xmlsoft.org/XSLT/
|
|
|
|
* Xalan (tested with version 1.7.0)
|
|
|
|
http://xml.apache.org/xalan-c/index.html
|
|
|
|
* Sablotron (tested with version 1.0.1)
|
|
|
|
http://www.gingerall.com/charlie/ga/xml/p_sab.xml
|
2005-04-23 00:57:45 +01:00
|
|
|
* Microsoft MSXSL (only for the Windows JScript script)
|
|
|
|
http://msdn.microsoft.com/XML/XMLDownloads/default.aspx
|
2004-08-16 17:41:11 +01:00
|
|
|
|
2005-12-24 18:00:21 +00:00
|
|
|
These scripts assumes that the LOGTALKHOME and LOGTALKUSER environment
|
|
|
|
variables are defined and that the chosen XSLT processor is available in
|
|
|
|
the path.
|
2004-08-16 17:41:11 +01:00
|
|
|
|
2007-03-28 23:44:31 +01:00
|
|
|
The scripts should be called from the directory containing the XML files
|
2004-08-16 17:41:11 +01:00
|
|
|
you wish to convert. Call the scripts with the help option for a description
|
2004-12-05 21:52:49 +00:00
|
|
|
of the available optional parameters (type "cscript lgt2html.js help" or
|
2005-04-23 00:57:45 +01:00
|
|
|
"lgt2html.sh -h"; depending on your Logtalk installation, you may simply
|
|
|
|
need to type "lgt2html" in order to run the script).
|
|
|
|
|
|
|
|
|
|
|
|
lgt2xml.sh
|
|
|
|
(bash shell script)
|
|
|
|
lgt2xml.js
|
2007-03-28 23:44:31 +01:00
|
|
|
(JScript command-line script for Windows; requires WSH 5.6 or
|
|
|
|
later version)
|
2005-04-23 00:57:45 +01:00
|
|
|
|
2007-03-28 23:44:31 +01:00
|
|
|
Sample scripts for indexing the XML files in the current directory
|
|
|
|
by generating an index.html file which contains links to all the
|
|
|
|
files. In addition, these scripts also copies of the "lgtxml.xsl"
|
|
|
|
and "logtalk.css" files to the current directory, allowing direct
|
|
|
|
visualization of the XML files on a supported web browser.
|
2005-04-23 00:57:45 +01:00
|
|
|
|
2005-12-24 18:00:21 +00:00
|
|
|
These scripts assumes that the LOGTALKHOME and LOGTALKUSER environment
|
|
|
|
variables are defined.
|
2005-04-23 00:57:45 +01:00
|
|
|
|
2007-03-28 23:44:31 +01:00
|
|
|
The scripts should be called from the directory containing the XML files
|
2005-04-23 00:57:45 +01:00
|
|
|
you wish to index. Call the scripts with the help option for a description
|
|
|
|
of the available optional parameters (type "cscript lgt2xml.js help" or
|
|
|
|
"lgt2xml.sh -h"; depending on your Logtalk installation, you may simply
|
|
|
|
need to type "lgt2xml" in order to run the script).
|
2004-08-16 17:41:11 +01:00
|
|
|
|
|
|
|
|
2007-03-28 23:44:31 +01:00
|
|
|
Note that you can write other XSL files for converting the XML files to
|
|
|
|
other formats besides PDF or (X)HTML. You can also write alternative CSS
|
|
|
|
and XSL files to change the appearance of the (X)HTML and PDF files.
|