This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] WEBSITE.DTD
- From: Janning Vygen <vygen at gmx dot de>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Fri, 22 Aug 2003 14:34:03 +0200
- Subject: [docbook-apps] WEBSITE.DTD
- Organization: Planwerk 6 /websolutions
Hi folks,
just in case anybody got the same problems than me.
using website xsl stylesheets with xsltproc needs lots of memory
because each document has a dtd which is loaded by xsltproc and kept
in memory.
look for a further discussion:
http://mail.gnome.org/archives/xslt/2003-January/msg00068.html
As mentioned there: you can use the option --novalid in
xsltproc to prevent DTD loading. But be aware of some default values
defined in the DTD.
the stylesheets rely sometimes on them like in toc-tabular.xsl (look
for attribute [@tocskip = 0].
so you get strange result if you build with --novalid if you dont put
tocskip=0 in each of your tocentrys in layout.xml.
Maybe sometimes its better if the stylesheet does not rely on the dtd
and check for [!@tocskip or @tocskip = 0]
But of course, xslt processing without DTD is not a good idea at all
anyway, but ist much faster.
I have build a website of about 100 webpages with 30 K each and on a
128MB machine xsltproc just cant build it because of DTD loading
inside autolayout.xsl. this is not what i expected.
Does other processor have the same problems with memory consumption?
kind regards,
janning
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org