This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
expression/README.quickstart

92 lines
1.9 KiB
Plaintext
Raw Permalink Normal View History

======================
Expression Quick Start
======================
2004-02-11 19:42:14 +01:00
Requirements
------------
Debian (sarge and sid) packages:
2004-02-11 19:42:14 +01:00
libxml2-python2.3
libxslt1-python2.3
python2.3-pyopenssl
For DBXML support, add this to /etc/apt/sources.list
deb http://www.lesdeveloppementsdurables.org/debian/ sarge dbxml2 python-bsddb3
then install package libdbxml-python
Minimal knownledge of the following specifications:
XForms (proposed replacement for HTML forms)
http://www.w3.org/MarkUp/Forms
XML Schema (alternative to DTDs)
http://www.w3.org/XML/Schema
XPath (API to query XML nodes)
http://www.w3.org/TR/xpath
XSLT
http://www.w3.org/TR/xslt
For Tidy <http://tidy.sourceforge.net/> support, add packages:
libtidy
python2.3-ctypes
and install Python library uTidyLib <http://utidylib.berlios.de/>:
python setup.py install --prefix /usr/local
For SVG support, you need package svg2png, add this to /etc/apt/sources.list:
deb http://cairographics.org/packages/debian/ unstable/
2004-02-11 19:42:14 +01:00
CVS Checkout
------------
2004-05-19 11:23:45 +02:00
export CVSROOT=':pserver:anonymous@cvs.labs.libre-entreprise.org:/cvsroot/expression'
cvs login
2004-05-19 11:23:45 +02:00
cvs -z3 checkout expression
2004-02-11 19:42:14 +01:00
Registering XML catalog directories
-----------------------------------
As root (or a member of group "staff" so you can write below /usr/local):
for d in entities schema misc
do
ln -s $PWD/xml/$d /usr/local/share/xml/$d/expression
done
Added XHTML DTDs & entities as XML catalogs. These catalogs are handled the Debian way <http://debian-xml-sgml.alioth.debian.org/>. Q: Why do you use manage XML catalogs the standard way instead of libxml2 way? A: Because the Debian way is the standard (Oasis) way and it is partially incompatible with libxml2 way. Q: Why do you use XML catalogs? A: Because I needed to store XHTML entities definitions in the local filesystem. Q: Why do you need to store XHTML DTDs & entities definitions in the local filesystem? A: For speed reasons. Otherwise calls to libxml2 function xmlReadDoc with option XML_PARSE_DTDLOAD require HTTP calls to get the DTD and its entities. Q: Why do you need to use xmlReadDoc function with option XML_PARSE_DTDLOAD? A: Otherwise, the parsing of XHTML files fails when the files contain entities like &eacute;, etc. Q: Why are entities definitions needed? You don't need entities substitution when parsing XML & XHTML files. A: Because after spending several hours testing and reading libxml2 documentation, I discovered that even when not substituting entities, libxml2 needs to know their definitions (the reason is it stores both entities declarations and substitutions inside XML tree. See http://xmlsoft.org/entities.html). Q: Why do you use xmlReadDoc instead of xmlParseDoc? A: Because after spending several hours testing and reading libxml2 documentation, I discovered that xmlParse functions are deprecated. Q: Why don't you use htmlParseDoc (or htmlReadDoc) anymore to read XHTML files? They worked well with entities without requiring DTDs. A: Because html(Parse|Read)Doc ignore namespace declarations. Q: Why don't you ignore namespace declarations when parsing XHTML files? A: Because XHTML files are XML files. And we need to differentiate XML tags with and without namespaces. Q: Why did you repair XHTML namespaces handling today. A: Because Fred asked for it yesterday: "je crée un fichier xml, je ne spécifie pas de namespace, pq l'attribution à l'holder et à l'élément du namespace xhtml ?". Q: Did you spent the whole day programming this small feature request? A: No, I also wrote this FAQ.
2004-05-24 01:13:05 +02:00
As root:
./install-catalogs
2004-02-11 19:42:14 +01:00
Launching the server
--------------------
ln -s src expression
2004-07-12 12:49:34 +02:00
./expression-server -h
./expression-server -F -ldebug --debug --no-email -f config-simple.xml
2004-02-11 19:42:14 +01:00
2004-02-11 19:42:14 +01:00
Testing
-------
2004-02-11 19:42:14 +01:00
Go to http://localhost:1997/
You should see a nice test page.
2004-02-11 19:42:14 +01:00
Learning
--------
Some documentation at http://expression.entrouvert.org/documentation.xml
and under docs/
2004-02-11 19:42:14 +01:00
Complaining
-----------
2004-02-11 19:42:14 +01:00
Subscribe and send complaints to the project's development mailing list.
2004-05-19 11:23:45 +02:00
http://lists.labs.libre-entreprise.org/mailman/listinfo/expression-devel