[Zope-xml] Trying to get 4Suite and XMLTransform up and running
Jean Jordaan
jean at upfrontsystems.co.za
Mon Sep 16 09:32:59 EDT 2002
Jean Jordaan wrote:
>
> I traced the parsing up to the '<xsl:include href="included.xsl" />'
> line, and watched as the reference was resolved, quite correctly, to
> http://blommie:15080/xml/registry/included.xsl
> and, eventually, tried to fetch that using urllib.
I've tried with both FourSuite12Processor and LibXsltProcessor now.
Still no success ..
With FourSuite12Processor, this is the line that doesn't return:
/usr/lib/python2.1.3/httplib.py(117)begin()
=====================================================================
jean at blommie 2-5-1 $ ./start_pdb
------
2002-09-16T13:09:06 INFO(0) XMLTransform: Imported XSLTProcessor:
Products.XMLTransform.FourSuite12Processor.FourSuite12Processor
------
2002-09-16T13:09:11 INFO(0) ZODB Opening database for mounting:
'142901920_1027510300.528115'
------
2002-09-16T13:09:11 INFO(0) ZODB Mounted database '142901920_1027510300.528115'
at /temp_folder
------
2002-09-16T13:09:13 INFO(0) ZServer HTTP server started at Mon Sep 16 15:09:13 2002
Hostname: blommie.upfrontsystems.co.za
Port: 15080
------
2002-09-16T13:09:13 INFO(0) ZServer HTTP server started at Mon Sep 16 15:09:13 2002
Hostname: blommie.upfrontsystems.co.za
Port: 15800
------
2002-09-16T13:09:13 INFO(0) ZServer FTP server started at Mon Sep 16 15:09:13 2002
Hostname: blommie.upfrontsystems.co.za
Port: 15021
------
2002-09-16T13:09:19 INFO(0) XMLTransform inside transform
--Return--
> /usr/lib/python2.1.3/pdb.py(895)set_trace()->None
-> Pdb().set_trace()
(Pdb) break /usr/lib/python2.1.3/httplib.py:559
Breakpoint 1 at /usr/lib/python2.1.3/httplib.py:559
(Pdb) c
------
2002-09-16T13:09:30 INFO(0) XMLTransform inside transformGuts
------
2002-09-16T13:09:30 INFO(0) XMLTransform styleSrc:
<Products.XMLTransform.FourSuite12Processor.ResolvingInputSource instance at
0x97845b4> systemID: http://blommie:15080/xml/registry/simple.xsl
> /usr/lib/python2.1.3/httplib.py(559)getresponse()
-> response.begin()
(Pdb) s
> /usr/lib/python2.1.3/httplib.py(112)begin()
-> def begin(self):
(Pdb) l
107 self.chunked = _UNKNOWN # is "chunked" being used?
108 self.chunk_left = _UNKNOWN # bytes left to read in current
chunk
109 self.length = _UNKNOWN # number of bytes left in response
110 self.will_close = _UNKNOWN # conn will close at end of response
111
112 -> def begin(self):
113 if self.msg is not None:
114 # we've already started reading the response
115 return
116
117 line = self.fp.readline()
(Pdb) s
> /usr/lib/python2.1.3/httplib.py(113)begin()
-> if self.msg is not None:
(Pdb) s
> /usr/lib/python2.1.3/httplib.py(117)begin()
-> line = self.fp.readline()
(Pdb) s
=====================================================================
When I use LibXsltProcessor instead of FourSuite12Processor, I can only
trace up to libxsltmod.xsltParseStylesheetDoc .. I'm guessing that there
it dives into a C module. I get a message "xsl:include : unable to load
included.xsl" ..
=====================================================================
> /usr/lib/python2.1/site-packages/libxslt.py(166)parseStylesheetDoc()
-> else: doc__o = doc._o
(Pdb) l
161 return stylesheet(_obj=ret)
162
163 def parseStylesheetDoc(doc):
164 """parse an XSLT stylesheet building the associated structures"""
165 if doc == None: doc__o = None
166 B-> else: doc__o = doc._o
167 ret = libxsltmod.xsltParseStylesheetDoc(doc__o)
168 if ret == None: return None
169 return stylesheet(_obj=ret)
170
171 #
(Pdb) s
> /usr/lib/python2.1/site-packages/libxslt.py(167)parseStylesheetDoc()
-> ret = libxsltmod.xsltParseStylesheetDoc(doc__o)
(Pdb) s
warning: failed to load external entity "included.xsl"
compilation error: element include
xsl:include : unable to load included.xsl
=====================================================================
This is how I'm starting Zope:
exec /usr/bin/python2.1.3 /usr/local/zope/2-5-1/z2.py \
-D -P 15000 -W 15800 -t 1 -u nobody
I'm using 2002-09-10-4Suite.tar.gz, PyXML 0.7.1,
Using libxml 20423, libxslt 10019 and libexslt 710
xsltproc was compiled against libxml 20423, libxslt 10019 and libexslt 710
libxslt 10019 was compiled against libxml 20423
libexslt 710 was compiled against libxml 20423
If you can think of anything else I could try, please let me know ..
--
Jean Jordaan
Upfront Systems http://www.upfrontsystems.co.za
More information about the Zope-xml
mailing list