Re: [xslt] xsltproc memory consumption w/ large DTD / docbook



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

/ Daniel Veillard <veillard@redhat.com> was heard to say:
|  Knowing that the DocBook DTD is an huge beast and can require
| as much as 3-4 Megabytes in the libxml2 DOM tree representation
| your results are perfectly normal.

FWIW, the DTD used by Website is considerably smaller. (Unless the
author is using 'website-full.dtd'.) The normal Website DTD is a
customization of the Simplified DocBook DTD which is only about 100
elements.

It may still be the case that loading 300 copies of the DTD is
problematic.

An alternative strategy would be to validate using RELAX NG (the
latest experimental Website distribution includes the schemas). This
way you can remove the DTD references altogether. And as an added
benefit, you get to use any darn namespace prefixes you like for the
embedded vocabularies (rddl, rss, etc.) that you might be using.

Just make sure that you *do* validate with something.

                                        Be seeing you,
                                          norm

- -- 
Norman Walsh <ndw@nwalsh.com> | Ambition, n. An overmastering desire to
http://nwalsh.com/            | be vilified by enemies while living and
                              | ridiculed by friends when
                              | dead.--Ambrose Bierce
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.7 <http://mailcrypt.sourceforge.net/>

iD8DBQE+OZJqOyltUcwYWjsRApYiAJ4xukUDGCOwdPC0t0ntv6Ayawmm+ACgpC1F
gh6pJG0RWLPAtsIi8V/URB0=
=s1e+
-----END PGP SIGNATURE-----



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]