[4suite] Re: [XML-SIG] ANN: 4Suite and 4SuiteServer 0.11.1 beta 2
Uche Ogbuji
uche.ogbuji@fourthought.com
Sun, 17 Jun 2001 07:09:20 -0600
Dieter Maurer wrote:
> Uche Ogbuji writes:
> > More fixes, more features, this is it before the 0.11.1 release, hopefully
> > Monday. Please help us test and exercise things.
> I updated my 4Suite CVS, built and installed and tried to run a book chapter.
> That's what I get:
>
>
>>lindm: 4xslt -o chap3a.html book.xml book.xsl
>>Traceback (most recent call last):
>> File "/usr/local/lib/python2.1/site-packages/_xmlplus/xslt/Processor.py", line 157, in runUri
>> src = self._docReader.fromUri(uri, stripElements=self._getWsStripElements())
>> File "/usr/local/lib/python2.1/site-packages/Ft/Lib/ReaderBase.py", line 76, in fromUri
>> rt = self.fromStream(stream, newBaseUri, ownerDoc, stripElements)
>> File "/usr/local/lib/python2.1/site-packages/Ft/Lib/pDomletteReader.py", line 184, in fromStream
>> expat.ErrorString(self.parser.ErrorCode))
>>FtException: XML parse error at line 36, column 0: error in processing external entity reference
>>Source document (book.xml): XML parse error at line 36, column 0: error in processing external entity reference
Thanks for the reminder, but I'm unable to reproduce this. Now I've had problems reproducing
bugs triggered by nwalsh's stylesheets before until I did things just a certain way,
so let me tell you just what I did so you can tell me where I took a
wrong turn.
I added a print to the pDomletteReader entityRef handler in order to
trace things down:
--- Lib/ReaderBase.py 2001/06/12 17:45:36 1.18
+++ Lib/ReaderBase.py 2001/06/17 13:06:23
@@ -334,6 +334,7 @@
_entity_stack= None
def entityRef(self, context, base, sysid, pubid):
+ print "entityRef", context, base, sysid, pubid
stream = self.resolveEntity(pubid, _combineSysid(base, sysid))
if self._entity_stack is None: self._entity_stack = []
Then I copied the book.xml you posted earlier to a directory. Then I
created an empty chap3.xml file in the same directory.
This is the result of running the nwalsh docbook html stylesheet
(the "db" dir is the root directory of the 1.39 docbook stylesheets)
$ 4xslt book.xml db/html/docbook.xsl
entityRef ca /usr/local/lib/xslt/db/common/l10n.xml ca.xml None
entityRef cs /usr/local/lib/xslt/db/common/l10n.xml cs.xml None
entityRef da /usr/local/lib/xslt/db/common/l10n.xml da.xml None
entityRef de /usr/local/lib/xslt/db/common/l10n.xml de.xml None
entityRef el /usr/local/lib/xslt/db/common/l10n.xml el.xml None
entityRef en /usr/local/lib/xslt/db/common/l10n.xml en.xml None
entityRef es /usr/local/lib/xslt/db/common/l10n.xml es.xml None
entityRef et /usr/local/lib/xslt/db/common/l10n.xml et.xml None
entityRef fi /usr/local/lib/xslt/db/common/l10n.xml fi.xml None
entityRef fr /usr/local/lib/xslt/db/common/l10n.xml fr.xml None
entityRef hu /usr/local/lib/xslt/db/common/l10n.xml hu.xml None
entityRef id /usr/local/lib/xslt/db/common/l10n.xml id.xml None
entityRef it /usr/local/lib/xslt/db/common/l10n.xml it.xml None
entityRef ja /usr/local/lib/xslt/db/common/l10n.xml ja.xml None
entityRef ko /usr/local/lib/xslt/db/common/l10n.xml ko.xml None
entityRef nl /usr/local/lib/xslt/db/common/l10n.xml nl.xml None
entityRef no /usr/local/lib/xslt/db/common/l10n.xml no.xml None
entityRef pl /usr/local/lib/xslt/db/common/l10n.xml pl.xml None
entityRef pt /usr/local/lib/xslt/db/common/l10n.xml pt.xml None
entityRef pt_br /usr/local/lib/xslt/db/common/l10n.xml pt_br.xml None
entityRef ro /usr/local/lib/xslt/db/common/l10n.xml ro.xml None
entityRef ru /usr/local/lib/xslt/db/common/l10n.xml ru.xml None
entityRef sk /usr/local/lib/xslt/db/common/l10n.xml sk.xml None
entityRef sl /usr/local/lib/xslt/db/common/l10n.xml sl.xml None
entityRef sr /usr/local/lib/xslt/db/common/l10n.xml sr.xml None
entityRef sv /usr/local/lib/xslt/db/common/l10n.xml sv.xml None
entityRef zh_cn /usr/local/lib/xslt/db/common/l10n.xml zh_cn.xml None
entityRef zh_tw /usr/local/lib/xslt/db/common/l10n.xml zh_tw.xml None
<html><head><meta http-equiv='Content-Type' content='text/html;
charset=ISO-8859-1'><title>Building Dynamic WebSites with
Zope</title><meta name='generator' content='DocBook XSL Stylesheets
V1.39'></head><body bgcolor='white' text='black' link='#0000FF'
vlink='#840084' alink='#0000FF'><div id='id169223036' class='book'><div
class='titlepage'><div><h1 class='title'><a
name='id169223036'></a>Building Dynamic WebSites with
Zope</h1></div><div><h2 class='subtitle'>Concepts, Components,
Programming</h2></div><div><h3 class='author'>Dieter
Maurer</h3></div><div><p class='copyright'>Copyright © 2001 <a
href='mailto:dieter@handshake.de' target='_top'>Dr. Dieter Maurer</a>,
Eichendorffstr. 23, D-66386 St. Ingbert, Germany</p></div><div><div
class='legalnotice'><p>Permission to use, copy, modify and distribute
under the terms of
the <a href='http://opencontent.org/opl.shtml' target='_top'>Open
Content License Version 1.0</a> is hereby granted.
</p><div class='important' style='margin-left: 0.5in; margin-right:
0.5in;'><h3 class='title'><a
name='id169292172'></a>Important</h3><p>Note that this book is provided
as is, without any warranty whatsoever, as specified by the Open Content
License.</p></div></div></div><hr></div><div class='toc'><p><b>Table of
Contents</b></p><dl><dt>1 <a
href='#id169293956'>Introduction</a></dt><dt>2 <a
href='#id169297956'>The project</a></dt></dl></div><div class='chapter'
id='id169293956'><div class='titlepage'><div><h2 class='title'><a
name='id169293956'></a>Chapter 1.
Introduction</h2></div></div><p>...</p></div><div class='chapter'
id='id169297956'><div class='titlepage'><div><h2 class='title'><a
name='id169297956'></a>Chapter 2. The
project</h2></div></div><p>...</p></div></div></body></html>
$
--
Uche Ogbuji Principal Consultant
uche.ogbuji@fourthought.com +1 303 583 9900 x 101
Fourthought, Inc. http://Fourthought.com
4735 East Walnut St, Ste. C, Boulder, CO 80301-2537, USA
XML strategy, XML tools (http://4Suite.org), knowledge management