From jean at upfrontsystems.co.za Mon Sep 2 08:24:04 2002 From: jean at upfrontsystems.co.za (Jean Jordaan) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] xsl:include & libxslt (DocBook & XML Transform) Message-ID: <3D735864.3050608@upfrontsystems.co.za> Hi all Short version: Is it necessary to always specify an include path as an URN? Long version: I have a rudimentary DocBook article being rendered to HTML by a tiny XSL hack stylesheet I wrote, and it works :) However, to get anything out of the treasures of /usr/share/sgml/docbook/xsl-stylesheets-1.52.2/html/docbook.xsl the XSL needs to get way more complex. The first necessary thing is to include other stylesheets. I tried (in 'simpleminded_docbook'):: I reload 'paper' (XML Transform, source: 'paper.xml', transformer: 'simpleminded_docbook'), but the stylesheet is not applied. Then I tried:: This takes about 2 minutes to resolve, but does generate a GET for 'include.xsl':: 192.168.1.5 - jean [02/Sep/2002:14:06:07 +0200] "GET /xml/paper HTTP/1.1" 200 37204 "" "Mozilla/5.0 (Windows NT 4.0; U) Opera 6.01 [en]" 192.168.1.2 - Anonymous [02/Sep/2002:14:06:07 +0200] "GET /xml/registry/included.xsl HTTP/1.0" 200 0 "" "" However, the stylesheet is not applied. In the distro, 'xsl:include' is only mentioned in connection with URNs. Is it necessary to always specify an include path as an URN? I thought I'd go with libxml2/libxslt, but "It does not yet do URN resolution" (from 'LibXsltProcessor.py'). (What I'd *really* love to do would be to just have an "ExternalFile" pointing at /usr/share/sgml/docbook/xsl-stylesheets-1.52.2/html/docbook.xsl and have everything Just Work!) -- Jean Jordaan Upfront Systems http://www.upfrontsystems.co.za From jean at upfrontsystems.co.za Mon Sep 2 09:29:02 2002 From: jean at upfrontsystems.co.za (Jean Jordaan) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] XML Transform 'behave_like' quibble Message-ID: <3D73679E.8000606@upfrontsystems.co.za> I'm a bit uncomfortable with how 'behave_like' behaves. Say I have this:: /xml/source.xml /xml/transform /xml/registry/stylesheet.zpt Now I could put DTML in 'stylesheet.zpt', and set 'transform' to 'behave_like' DTMLMethod. But that's UGLY! Why can't 'transform' notice that its transformer is a ZPT (or DTMLMethod) and behave accordingly? -- Jean Jordaan Upfront Systems http://www.upfrontsystems.co.za From jean at upfrontsystems.co.za Mon Sep 2 10:36:16 2002 From: jean at upfrontsystems.co.za (Jean Jordaan) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] 4Suite installation question .. Python version? Message-ID: <3D737760.4050500@upfrontsystems.co.za> Hi there I'm struggling to get 4Suite installed for python2.1 .. 2.2 is no problem:: jean@blommie app $ python2.2 Python 2.2.1 (#1, May 18 2002, 22:48:35) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from xml.xslt import Processor >>> But Zope 2.5.1 requires python2.1 .. if I try this with 2.1:: jean@blommie 4Suite-0.11.1 $ cat __init__.py __version__ = "0.11.1" __pyxml_version__ = '0.6.6' jean@blommie app $ python2.1 Python 2.1.1 (#1, Feb 11 2002, 13:38:38) [GCC 2.95.3 20010315 (release)] on linux2 Type "copyright", "credits" or "license" for more information. >>> import xml.xslt >>> print xml.xslt.__doc__ WWW: http://4suite.org/4XSLT e-mail: support@4suite.org Copyright (c) 2000-2001 Fourthought Inc, USA. All Rights Reserved. See http://4suite.org/COPYRIGHT for license and copyright information >>> from xml.xslt.Processor import Processor # as in FourSuite11Processor.py Traceback (most recent call last): File "", line 1, in ? File "/usr/lib/python2.1/site-packages/_xmlplus/xslt/Processor.py", line 24, in ? from xml.xslt import StylesheetReader, ReleaseNode File "/usr/lib/python2.1/site-packages/_xmlplus/xslt/StylesheetReader.py", line 53, in ? from xml.xslt.Stylesheet import StylesheetElement File "/usr/lib/python2.1/site-packages/_xmlplus/xslt/Stylesheet.py", line 22, in ? from xml.xslt import XsltElement, XsltException, InternalException, Error ImportError: cannot import name InternalException >>> Any help would be sorely appreciated .. -- Jean Jordaan Upfront Systems http://www.upfrontsystems.co.za From b.maryniuk at forbis.lt Mon Sep 2 10:57:00 2002 From: b.maryniuk at forbis.lt (Bo M. Maryniuck) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] 4Suite installation question .. Python version? In-Reply-To: <3D737760.4050500@upfrontsystems.co.za> References: <3D737760.4050500@upfrontsystems.co.za> Message-ID: <200209021657.00826.b.maryniuk@forbis.lt> On Monday 02 September 2002 16:36, Jean Jordaan wrote: > jean@blommie app $ python2.2 > Python 2.2.1 (#1, May 18 2002, 22:48:35) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > > >>> from xml.xslt import Processor Yes, now try to process a XML via a XSLT. I got crash all the time... -- Regards, Bogdan "I'll be Bach." -- Johann Sebastian Schwarzenegger From cstrong at arielpartners.com Mon Sep 2 14:46:52 2002 From: cstrong at arielpartners.com (Craeg Strong) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] XML Transform 'behave_like' quibble References: <3D73679E.8000606@upfrontsystems.co.za> Message-ID: <3D73B21C.5000303@arielpartners.com> behave_like specifies how the *result* of the transformation behaves. For example, you could have a source XML document contained in an XMLFile object, your XSLT transformer could be a DTML Method, and the *result* could be a ZPT. There really is no way to know in advance what the result of the transformation would be, without parsing the XSLT code. That is why the behave_like attribute exists. Hope this helps, --Craeg Jean Jordaan wrote: > I'm a bit uncomfortable with how 'behave_like' behaves. Say I have > this:: > > /xml/source.xml > /xml/transform > /xml/registry/stylesheet.zpt > > Now I could put DTML in 'stylesheet.zpt', and set 'transform' to > 'behave_like' DTMLMethod. But that's UGLY! Why can't 'transform' > notice that its transformer is a ZPT (or DTMLMethod) and behave > accordingly? > From jean at upfrontsystems.co.za Mon Sep 2 12:06:03 2002 From: jean at upfrontsystems.co.za (Jean Jordaan) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] XML Transform 'behave_like' quibble References: <3D73679E.8000606@upfrontsystems.co.za> <3D73B21C.5000303@arielpartners.com> Message-ID: <3D738C6B.3020301@upfrontsystems.co.za> Craeg Strong wrote: > behave_like specifies how the *result* of the transformation behaves. Yes, I see that, that's about what I meant by: >> Now I could put DTML in 'stylesheet.zpt', and set 'transform' to >> 'behave_like' DTMLMethod. For some metatypes, such as File or ExternalFile, it's unclear what they should behave like, so you should manually set 'behave_like'. But for ZPT and DTML, wouldn't it be helpful to make the Transform behave like the type of the transformer by default? Sadists could still override the default to make them 'behave_like' something else ;> -- Jean Jordaan Upfront Systems http://www.upfrontsystems.co.za From cstrong at arielpartners.com Mon Sep 2 15:20:27 2002 From: cstrong at arielpartners.com (Craeg Strong) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] XML Transform 'behave_like' quibble References: <3D73679E.8000606@upfrontsystems.co.za> <3D73B21C.5000303@arielpartners.com> <3D738C6B.3020301@upfrontsystems.co.za> Message-ID: <3D73B9FB.4030008@arielpartners.com> I see. You are saying that *if* the transformer is a DTML Method, make the XMLTransform behave_like DTML Method by default *if* the transformer is a ZPT, make the XMLTransform behave_like a ZPT by default. I think that is perfectly reasonable. I will put it on the TODO list for the next version... --Craeg Jean Jordaan wrote: > Craeg Strong wrote: > >> behave_like specifies how the *result* of the transformation behaves. > > > Yes, I see that, that's about what I meant by: > > >> Now I could put DTML in 'stylesheet.zpt', and set 'transform' to > >> 'behave_like' DTMLMethod. > > For some metatypes, such as File or ExternalFile, it's unclear what > they should behave like, so you should manually set 'behave_like'. But > for ZPT and DTML, wouldn't it be helpful to make the Transform behave > like the type of the transformer by default? Sadists could still > override the default to make them 'behave_like' something else ;> > From cstrong at arielpartners.com Mon Sep 2 15:31:50 2002 From: cstrong at arielpartners.com (Craeg Strong) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] 4Suite installation question .. Python version? References: <3D737760.4050500@upfrontsystems.co.za> Message-ID: <3D73BCA6.4040603@arielpartners.com> Hello: IIRC, this is the recipe: a) Install Zope 2.5.1 It *includes* Python 2.1.3 *use this version* So for example if you install it in /opt/zope then /opt/zope/bin/python is the python you *must use* for steps (b) and (c) below. I you simply type "python" you will probably get the wrong one, as your typical Linux already has at least one python installed. b) Install PyXML 0.6.6 /opt/zope/bin/python /opt/PyXML-0.6.6/setup.py build /opt/zope/bin/python /opt/PyXML-0.6.6/setup.py install c) Install 4Suite 0.11.1 /opt/zope/bin/python /opt/4Suite-0.11.1/setup.py install Hope this helps, --Craeg Jean Jordaan wrote: > Hi there > > I'm struggling to get 4Suite installed for python2.1 .. 2.2 is no > problem:: > > jean@blommie app $ python2.2 > Python 2.2.1 (#1, May 18 2002, 22:48:35) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> from xml.xslt import Processor > >>> > > But Zope 2.5.1 requires python2.1 .. if I try this with 2.1:: > > jean@blommie 4Suite-0.11.1 $ cat __init__.py > __version__ = "0.11.1" > __pyxml_version__ = '0.6.6' > > jean@blommie app $ python2.1 > Python 2.1.1 (#1, Feb 11 2002, 13:38:38) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "copyright", "credits" or "license" for more information. > >>> import xml.xslt > >>> print xml.xslt.__doc__ > > WWW: http://4suite.org/4XSLT e-mail: support@4suite.org > > Copyright (c) 2000-2001 Fourthought Inc, USA. All Rights Reserved. > See http://4suite.org/COPYRIGHT for license and copyright information > > >>> from xml.xslt.Processor import Processor # as in > FourSuite11Processor.py > Traceback (most recent call last): > File "", line 1, in ? > File "/usr/lib/python2.1/site-packages/_xmlplus/xslt/Processor.py", > line 24, in ? > from xml.xslt import StylesheetReader, ReleaseNode > File > "/usr/lib/python2.1/site-packages/_xmlplus/xslt/StylesheetReader.py", > line 53, in ? > from xml.xslt.Stylesheet import StylesheetElement > File "/usr/lib/python2.1/site-packages/_xmlplus/xslt/Stylesheet.py", > line 22, in ? > from xml.xslt import XsltElement, XsltException, > InternalException, Error > ImportError: cannot import name InternalException > >>> > > Any help would be sorely appreciated .. From jean at upfrontsystems.co.za Mon Sep 2 12:45:24 2002 From: jean at upfrontsystems.co.za (Jean Jordaan) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] XML Transform 'behave_like' quibble References: <3D73679E.8000606@upfrontsystems.co.za> <3D73B21C.5000303@arielpartners.com> <3D738C6B.3020301@upfrontsystems.co.za> <3D73B9FB.4030008@arielpartners.com> Message-ID: <3D7395A4.2030501@upfrontsystems.co.za> Craeg Strong wrote: > I see. You are saying that *if* the transformer is a DTML Method, make > the XMLTransform behave_like DTML Method by default > *if* the transformer is a ZPT, make the XMLTransform behave_like a ZPT > by default. Yes, that's it. And a "nice to have" would be if the XMLTransform icon (and 'meta_type'?) reflected its behaviour. -- Jean Jordaan Upfront Systems http://www.upfrontsystems.co.za From huxley1 at westnet.com.au Tue Sep 3 00:29:27 2002 From: huxley1 at westnet.com.au (Jeremy Rew) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] (no subject) Message-ID: <5.1.1.6.0.20020903122905.00b2db30@localhost> I'm using redhat 7.1, with Zope binary 2.5.1. I cannot get ParsedXML 1.0 to work properly. First I tried to build it using python2.1 supplied with Zope, and was told that it had used too many arguments to one of the functions, and failed. Then i tried using python1.5 in the /usr/bin directory. This seemed to build with no problems. When i restarted Zope, it tells me: *********** WARNING: Python C API version mismatch for module pyexpat: This Python has API version 1010, module pyexpat has version 1007. ------ 2002-09-03T19:28:35 PROBLEM(100) Init Ambiguous name for method of Products.Parsed XML.ManageableDOM.DOMManageable: "manage_main" != "manage_DOMTree" ************ The ParsedXML item still shows up in the "Select type to add" box, but when i click "Add and Edit" after giving it an ID, an error appears: ************ Error Type: SystemError Error Value: Python/compile.c:265: bad argument to internal function -- Traceback (innermost last): File /usr/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /usr/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 114, in publish File /usr/Zope-2.5.1-linux2-x86/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook File /usr/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 98, in publish File /usr/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/mapply.py, line 88, in mapply (Object: manage_addParsedXML) File /usr/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 39, in call_object (Object: manage_addParsedXML) File /usr/Zope-2.5.1-linux2-x86/lib/python/Products/ParsedXML/ParsedXML.py, line 120, in manage_addParsedXML File /usr/Zope-2.5.1-linux2-x86/lib/python/Products/ParsedXML/ParsedXML.py, line 189, in __init__ (Object: a) File /usr/Zope-2.5.1-linux2-x86/lib/python/Products/ParsedXML/ParsedXML.py, line 147, in createDOMDocument File /usr/Zope-2.5.1-linux2-x86/lib/python/Products/ParsedXML/DOM/ExpatBuilder.py, line 778, in parse File /usr/Zope-2.5.1-linux2-x86/lib/python/Products/ParsedXML/DOM/ExpatBuilder.py, line 193, in parseFile SystemError: (see above) *********** Any help will be greatly appreciated Jeremy From christophe.robert at culture.gouv.fr Tue Sep 3 04:42:50 2002 From: christophe.robert at culture.gouv.fr (christophe robert) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] How to use XML in zope In-Reply-To: <3D6FF2B4.70107@arielpartners.com> References: <01a201c23a24$09ec4cf0$0280a8c0@armadillo> <1028309239.1823.9.camel@pc004cyr 2.culture.fr> <021901c23a2a$91bc0110$0280a8c0@armadillo> <1028563441.1585.32.camel@pc004cyr2.culture.fr> <3D6C55D6.2090608@arielpartners.com> <1030718561.1938.17.camel@pc004cyr2.culture.fr> <3D6FF2B4.70107@arielpartners.com> Message-ID: <1031042571.1587.46.camel@pc004cyr2.culture.fr> Le sam 31/08/2002 ? 00:33, Craeg Strong a ?crit : > > > christophe robert wrote: > > >Le mer 28/08/2002 ? 06:47, Craeg K Strong a ?crit : > > > > > >>Hello: > >> > >> > >>At long last, we have released XMLTransform > >>http://www.zope.org/Members/arielpartners/XMLTransform > >> > >> > >> > > > >Do you think to use an XML database with XMLTransform ?? > > > > One of my main design goals for XMLTransform is to make it possible to > obtain XML documents from any source. It doesn't matter where it comes > from or how it is assembled, the only thing that matters is that there is a > single Zope object whose job it is to hand the XML document to XMLTransform, > called the "source" object. > > Of course, the "source" object may have obtained the XML from somewhere > else, > such as an XML database like Xindice. Or perhaps from an Oracle database. > etc. > I tested XMLTranform with the Xindice products. It's OK :) XMLTranform seems to be a good product. I would like to know how you will integrate FOP in XMLTransform ?? > Another example: the source object could be a DTMLDocument, and it could > have embedded DTML tags from which it grabs pieces of its content. Here > is an example > > > > > > > > > Hello, I'm a document. > > > > Let me know if this answers your question... > > Regards, > Thank > --Craeg > Christophe > > > > > From cstrong at arielpartners.com Tue Sep 3 11:42:46 2002 From: cstrong at arielpartners.com (Craeg K Strong) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] How to use XML in zope References: <01a201c23a24$09ec4cf0$0280a8c0@armadillo> <1028309239.1823.9.camel@pc004cyr 2.culture.fr> <021901c23a2a$91bc0110$0280a8c0@armadillo> <1028563441.1585.32.camel@pc004cyr2.culture.fr> <3D6C55D6.2090608@arielpartners.com> <1030718561.1938.17.camel@pc004cyr2.culture.fr> <3D6FF2B4.70107@arielpartners.com> <1031042571.1587.46.camel@pc004cyr2.culture.fr> Message-ID: <3D74D876.80705@arielpartners.com> christophe robert wrote: > Le sam 31/08/2002 ? 00:33, Craeg Strong a ?crit : > I tested XMLTranform with the Xindice products. It's OK :) Good news! > > XMLTranform seems to be a good product. :) > > I would like to know how you will integrate FOP in XMLTransform ?? I am thinking of using XML-RPC to call out to a Java VM running FOP. I would use an XMLTransform to generate a FO-format document, and pass that as a string to FOP. FOP would then generate the PDF and return that as a string to Zope. I was thinking of creating a "Fopper" Zope object that would transparently take care of that, so navigating to the URL of the fopper object would automatically yield the PDF. The only wart, obviously, is that it requires installing a separate Java process running Fop :-( Unfortunate, but for now, I do not know of any FO processor written in Python. We are currently planning to release this in the next month or two.. Regards, --Craeg From sean.upton at uniontrib.com Tue Sep 3 11:46:36 2002 From: sean.upton at uniontrib.com (sean.upton@uniontrib.com) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] (no subject) Message-ID: First easy answer: don't use ParsdeXML 1.0; use 1.3. If you were going to use 1.0, you would need to make sure that the pyexpat binary that comes with ParsedXML was compiled with the exact same python as your Zope (which is unlikely, since it is ancient, unless you are using source). ParsedXML 1.3 is all python, and no C or binaries to compile - it uses Python's pyexpat, so if you have PyXML installed, you are good to go. Secondly, Zope REQUIRES Python 2.1.3. Python 2.2 and Python 1.5/1.6 will NOT work. Use the following exact versions: Python 2.1.3, Zope 2.5, ParsedXML 1.3 Sean -----Original Message----- From: Jeremy Rew [mailto:huxley1@westnet.com.au] Sent: Monday, September 02, 2002 9:29 PM To: zope-xml@zope.org Subject: [Zope-xml] (no subject) I'm using redhat 7.1, with Zope binary 2.5.1. I cannot get ParsedXML 1.0 to work properly. First I tried to build it using python2.1 supplied with Zope, and was told that it had used too many arguments to one of the functions, and failed. Then i tried using python1.5 in the /usr/bin directory. This seemed to build with no problems. When i restarted Zope, it tells me: *********** WARNING: Python C API version mismatch for module pyexpat: This Python has API version 1010, module pyexpat has version 1007. ------ 2002-09-03T19:28:35 PROBLEM(100) Init Ambiguous name for method of Products.Parsed XML.ManageableDOM.DOMManageable: "manage_main" != "manage_DOMTree" ************ The ParsedXML item still shows up in the "Select type to add" box, but when i click "Add and Edit" after giving it an ID, an error appears: ************ Error Type: SystemError Error Value: Python/compile.c:265: bad argument to internal function -- Traceback (innermost last): File /usr/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /usr/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 114, in publish File /usr/Zope-2.5.1-linux2-x86/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook File /usr/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 98, in publish File /usr/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/mapply.py, line 88, in mapply (Object: manage_addParsedXML) File /usr/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 39, in call_object (Object: manage_addParsedXML) File /usr/Zope-2.5.1-linux2-x86/lib/python/Products/ParsedXML/ParsedXML.py, line 120, in manage_addParsedXML File /usr/Zope-2.5.1-linux2-x86/lib/python/Products/ParsedXML/ParsedXML.py, line 189, in __init__ (Object: a) File /usr/Zope-2.5.1-linux2-x86/lib/python/Products/ParsedXML/ParsedXML.py, line 147, in createDOMDocument File /usr/Zope-2.5.1-linux2-x86/lib/python/Products/ParsedXML/DOM/ExpatBuilder.py , line 778, in parse File /usr/Zope-2.5.1-linux2-x86/lib/python/Products/ParsedXML/DOM/ExpatBuilder.py , line 193, in parseFile SystemError: (see above) *********** Any help will be greatly appreciated Jeremy _______________________________________________ Zope-xml mailing list Zope-xml@zope.org http://lists.zope.org/mailman/listinfo/zope-xml From christophe.robert at culture.gouv.fr Wed Sep 4 03:27:59 2002 From: christophe.robert at culture.gouv.fr (christophe robert) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] How to use XML in zope In-Reply-To: <3D74D876.80705@arielpartners.com> References: <01a201c23a24$09ec4cf0$0280a8c0@armadillo> <1028309239.1823.9.camel@pc004cyr 2.culture.fr> <021901c23a2a$91bc0110$0280a8c0@armadillo> <1028563441.1585.32.camel@pc004cyr2.culture.fr> <3D6C55D 6.2090608@arielpartners.com> <1030718561.1938.17.camel@pc004cyr2.culture.fr> <3D6FF2B4.70107@arielpartners.com> <1031042571.1587.46.camel@pc004cyr2.culture.fr> <3D74D876.80705@arielpartners.com> Message-ID: <1031124480.1817.2.camel@pc004cyr2.culture.fr> Le mar 03/09/2002 ? 17:42, Craeg K Strong a ?crit : > christophe robert wrote: > > Le sam 31/08/2002 ? 00:33, Craeg Strong a ?crit : > > > I tested XMLTranform with the Xindice products. It's OK :) > > Good news! > > > > > XMLTranform seems to be a good product. > > :) > > > > > I would like to know how you will integrate FOP in XMLTransform ?? > > I am thinking of using XML-RPC to call out to a Java VM running FOP. > I would use an XMLTransform to generate a FO-format document, and pass > that as a string to FOP. FOP would then generate the PDF and return that > as a string to Zope. > > I was thinking of creating a "Fopper" Zope object that would transparently > take care of that, so navigating to the URL of the fopper object would > automatically yield the PDF. > > The only wart, obviously, is that it requires installing a separate Java > process running Fop :-( > > Unfortunate, but for now, I do not know of any FO processor written in Python. > Why not use Jython ?? > We are currently planning to release this in the next month or two.. > > Regards, > > --Craeg > > > _______________________________________________ > Zope-xml mailing list > Zope-xml@zope.org > http://lists.zope.org/mailman/listinfo/zope-xml > From jean at upfrontsystems.co.za Wed Sep 4 05:22:19 2002 From: jean at upfrontsystems.co.za (Jean Jordaan) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] 4Suite installation hassles .. Message-ID: <3D75D0CB.9040301@upfrontsystems.co.za> Hi all .. I just did a clean 'python2.1 setup.py install' with '2002-09-04-4Suite.tar.gz', and most of the scripts in '/usr/lib/python2.1/site-packages/Ft/Share/Bin' fail. I've pasted a sample traceback below. I'm puzzled by the Python C API version mismatches --- these have just been compiled on this box, so how can the C API be wrong? I thought that this would be the case for binaries compiled with a different version of Python installed. root@blommie 4Suite # 4xpath /usr/lib/python2.1/site-packages/Ft/__init__.py:40: RuntimeWarning: Python C API version mismatch for module boolean: This Python has API version 1011, module boolean has version 1010. from Ft.Lib import boolean /usr/lib/python2.1/site-packages/Ft/Xml/XPath/__init__.py:21: RuntimeWarning: Python C API version mismatch for module number: This Python has API version 1011, module number has version 1010. from Ft.Lib.number import nan as NaN Traceback (most recent call last): File "/usr/bin/4xpath", line 4, in ? from Ft.Xml.XPath._4xpath import XPathCommandLineApp File "/usr/lib/python2.1/site-packages/Ft/Xml/XPath/__init__.py", line 116, in ? from Util import NormalizeNode File "/usr/lib/python2.1/site-packages/Ft/Xml/XPath/Util.py", line 17, in ? from Ft.Xml import Domlette, XML_NAMESPACE, EMPTY_NAMESPACE File "/usr/lib/python2.1/site-packages/Ft/Xml/Domlette.py", line 34, in ? from cDomlette import nonvalParse, valParse File "/usr/lib/python2.1/site-packages/Ft/Xml/cDomlette.py", line 14, in ? import cDomlettec ImportError: /usr/lib/python2.1/site-packages/Ft/Xml/cDomlettec.so: undefined symbol: PyUnicode_FromUnicode -- Jean Jordaan Upfront Systems http://www.upfrontsystems.co.za From jean at upfrontsystems.co.za Wed Sep 4 06:37:09 2002 From: jean at upfrontsystems.co.za (Jean Jordaan) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] Re: XML Transform doc bug .. References: <3D7369D0.1000004@upfrontsystems.co.za> <3D73B5C3.4070305@arielpartners.com> <3D739322.4040605@upfrontsystems.co.za> <3D73A7F9.5000305@arielpartners.com> <3D747152.6080409@upfrontsystems.co.za> <3D74EE0C.6040508@arielpartners.com> Message-ID: <3D75E255.4010103@upfrontsystems.co.za> Hi Craeg I'm using FourSuite12Processor now (ignoring the errors mentioned in http://lists.zope.org/pipermail/zope-xml/2002-September/000239.html ) and I've applied the patch quoted below. It seems to work fine .. Unfortunately, I don't see any difference in behaviour. '' does nothing, and inlining the contents of 'included.xsl' works as intended. Here's a shortened version of 'included.xsl' """ included.xsl
Included!
[...]
""" Craeg K Strong wrote: > Jean Jordaan wrote: >>>> >>>> >>>> > > I was able to RTFM on 4Suite 12, and here is the patch that > I believe will make the above usage work! > > retrieving revision 1.13 > diff -u -r1.13 FourSuite12Processor.py > --- FourSuite12Processor.py 2 Sep 2002 15:39:50 -0000 1.13 > +++ FourSuite12Processor.py 3 Sep 2002 16:46:07 -0000 > @@ -146,7 +146,8 @@ > docSrc = ResolvingInputSource(namespaceMap, REQUEST, > StringIO(xmlContents)) > styleSrc = ResolvingInputSource(namespaceMap, REQUEST, > - StringIO(xsltContents)) > + StringIO(xsltContents), > + systemID) > processor.appendStylesheet(styleSrc) > result = processor.run(docSrc, topLevelParams = params) -- Jean Jordaan Upfront Systems http://www.upfrontsystems.co.za From cstrong at arielpartners.com Wed Sep 4 11:09:48 2002 From: cstrong at arielpartners.com (Craeg K Strong) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] How to use XML in zope References: <01a201c23a24$09ec4cf0$0280a8c0@armadillo> <1028309239.1823.9.camel@pc004cyr 2.culture.fr> <021901c23a2a$91bc0110$0280a8c0@armadillo> <1028563441.1585.32.camel@pc004cyr2.culture.fr> <3D6C55D 6.2090608@arielpartners.com> <1030718561.1938.17.camel@pc004cyr2.culture.fr> <3D6FF2B4.70107@arielpartners.com> <1031042571.1587.46.camel@pc004cyr2.culture.fr> <3D74D876.80705@arielpartners.com> <1031124480.1817.2.camel@pc004cyr2.culture.fr> Message-ID: <3D76223C.1030309@arielpartners.com> See below christophe robert wrote: > Le mar 03/09/2002 ? 17:42, Craeg K Strong a ?crit : > >>christophe robert wrote: >> >>>Le sam 31/08/2002 ? 00:33, Craeg Strong a ?crit : >> >>>I tested XMLTranform with the Xindice products. It's OK :) >> >>Good news! >> >> >>>XMLTranform seems to be a good product. >> >>:) >> >> >>>I would like to know how you will integrate FOP in XMLTransform ?? >> >>I am thinking of using XML-RPC to call out to a Java VM running FOP. >>I would use an XMLTransform to generate a FO-format document, and pass >>that as a string to FOP. FOP would then generate the PDF and return that >>as a string to Zope. >> >>I was thinking of creating a "Fopper" Zope object that would transparently >>take care of that, so navigating to the URL of the fopper object would >>automatically yield the PDF. >> >>The only wart, obviously, is that it requires installing a separate Java >>process running Fop :-( >> >>Unfortunate, but for now, I do not know of any FO processor written in Python. >> > Why not use Jython ?? Indeed, this is the plan. It is still a "Java process running FOP", however :) --Craeg From ielbert at genuone.com Wed Sep 4 15:00:11 2002 From: ielbert at genuone.com (Igor Elbert) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] XML Transform without predefined XML source (Re: XMLTransform interface alternatives) Message-ID: I am looking at the XMLTransform and think it's a great product. Here is my $.02 about it: I think it would be useful if XMLTransform allowed me to leave the Source ID field empty and assumed it's applied to an XML. For example I would like to be able to write: http://MyFolder/myZSQLmethod/asXML/transform and get a rendered page. This way transformer doesn't know how it gets its XML and behaves like a true pipe. Maybe it's possible to do the same with the current implementation but I did not find how. The proposed enhancement would let me to chain transformers: ....../asXML/transform1/transform2 The next logical step would be to allow supplying XSL on the fly: http://MyFolder/myZSQLmethod/asXML/transform/myXSL Does it make sense? From sean.upton at uniontrib.com Wed Sep 4 15:18:51 2002 From: sean.upton at uniontrib.com (sean.upton@uniontrib.com) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] How to use XML in zope Message-ID: Hav you considered using JPE instead of Jython - I hear from some in various circles that this works quite well as a transparent bridge from CPyton to Java classes within a JVM? Sean -----Original Message----- From: Craeg K Strong [mailto:cstrong@arielpartners.com] Sent: Wednesday, September 04, 2002 8:10 AM To: christophe robert Cc: zope-xml@zope.org Subject: Re: [Zope-xml] How to use XML in zope See below christophe robert wrote: > Le mar 03/09/2002 ? 17:42, Craeg K Strong a ?crit : > >>christophe robert wrote: >> >>>Le sam 31/08/2002 ? 00:33, Craeg Strong a ?crit : >> >>>I tested XMLTranform with the Xindice products. It's OK :) >> >>Good news! >> >> >>>XMLTranform seems to be a good product. >> >>:) >> >> >>>I would like to know how you will integrate FOP in XMLTransform ?? >> >>I am thinking of using XML-RPC to call out to a Java VM running FOP. >>I would use an XMLTransform to generate a FO-format document, and pass >>that as a string to FOP. FOP would then generate the PDF and return that >>as a string to Zope. >> >>I was thinking of creating a "Fopper" Zope object that would transparently >>take care of that, so navigating to the URL of the fopper object would >>automatically yield the PDF. >> >>The only wart, obviously, is that it requires installing a separate Java >>process running Fop :-( >> >>Unfortunate, but for now, I do not know of any FO processor written in Python. >> > Why not use Jython ?? Indeed, this is the plan. It is still a "Java process running FOP", however :) --Craeg _______________________________________________ Zope-xml mailing list Zope-xml@zope.org http://lists.zope.org/mailman/listinfo/zope-xml From cstrong at arielpartners.com Thu Sep 5 00:46:21 2002 From: cstrong at arielpartners.com (Craeg K Strong) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] How to use XML in zope References: Message-ID: <3D76E19D.3000409@arielpartners.com> Thats a good point. I hadn't considered using JPE up to this point because I had assumed it was not mature nor stable enough. However, I will give it another look. --Craeg sean.upton@uniontrib.com wrote: > Hav you considered using JPE instead of Jython - I hear from some in various > circles that this works quite well as a transparent bridge from CPyton to > Java classes within a JVM? > > Sean > > -----Original Message----- > From: Craeg K Strong [mailto:cstrong@arielpartners.com] > Sent: Wednesday, September 04, 2002 8:10 AM > To: christophe robert > Cc: zope-xml@zope.org > Subject: Re: [Zope-xml] How to use XML in zope > > > See below > > christophe robert wrote: > >>Le mar 03/09/2002 ? 17:42, Craeg K Strong a ?crit : >> >> >>>christophe robert wrote: >>> >>> >>>>Le sam 31/08/2002 ? 00:33, Craeg Strong a ?crit : >>> >>>>I tested XMLTranform with the Xindice products. It's OK :) >>> >>>Good news! >>> >>> >>> >>>>XMLTranform seems to be a good product. >>> >>>:) >>> >>> >>> >>>>I would like to know how you will integrate FOP in XMLTransform ?? >>> >>>I am thinking of using XML-RPC to call out to a Java VM running FOP. >>>I would use an XMLTransform to generate a FO-format document, and pass >>>that as a string to FOP. FOP would then generate the PDF and return that >>>as a string to Zope. >>> >>>I was thinking of creating a "Fopper" Zope object that would transparently >>>take care of that, so navigating to the URL of the fopper object would >>>automatically yield the PDF. >>> >>>The only wart, obviously, is that it requires installing a separate Java >>>process running Fop :-( >>> >>>Unfortunate, but for now, I do not know of any FO processor written in >> > Python. > >>Why not use Jython ?? > > > Indeed, this is the plan. It is still a "Java process running FOP", however > :) > > --Craeg From uche.ogbuji at fourthought.com Thu Sep 5 10:43:03 2002 From: uche.ogbuji at fourthought.com (Uche Ogbuji) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] 4Suite install questions Message-ID: <1031236988.19041.542.camel@malatesta> I just stumbled on this mailing list, and I see: http://lists.zope.org/pipermail/zope-xml/2002-September/000227.html and http://lists.zope.org/pipermail/zope-xml/2002-September/000239.html For answers, see http://uche.ogbuji.net/tech/akara/pyxml/choosing-software/ If you choose to go with the 0.12.0 route, see http://uche.ogbuji.net/tech/akara/pyxml/python-xslt/ and http://uche.ogbuji.net/tech/akara/pyxml/python-xpath/ In general, you may find it useful to bookmark http://uche.ogbuji.net/tech/akara/pyxml/ And, if you have problems with 4Suite, it seems to make sense to me to check or post on the 4Suite mailing list http://lists.fourthought.com/mailman/listinfo/4suite I plan to subscribe here, but I don't have all the answers. -- Uche Ogbuji Fourthought, Inc. http://uche.ogbuji.net http://4Suite.org http://fourthought.com Track chair, XML/Web Services One Boston: http://www.xmlconference.com/ Basic XML and RDF techniques for knowledge management, Part 7 - http://www-106.ibm.com/developerworks/xml/library/x-think12.html Keeping pace with James Clark - http://www-106.ibm.com/developerworks/xml/library/x-jclark.html Python and XML development using 4Suite, Part 3: 4RDF - http://www-105.ibm.com/developerworks/education.nsf/xml-onlinecourse-bytitle/8A1EA5A2CF4621C386256BBB006F4CEC From bkc at murkworks.com Thu Sep 5 13:05:59 2002 From: bkc at murkworks.com (Brad Clements) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] XML Transform without predefined XML source (Re: XMLTransform interface alternatives) In-Reply-To: Message-ID: <3D77571A.9269.18E907B4@localhost> On 4 Sep 2002 at 15:00, Igor Elbert wrote: > I think it would be useful if XMLTransform allowed me to leave the Source > ID field empty and assumed it's applied to an XML. For example I would like > to be able to write: http://MyFolder/myZSQLmethod/asXML/transform and get a > rendered page. > I made the following modification to XMLTransform.py def transform(self, REQUEST,xmlContents=None): """ Generate result using transformer and return it as a string """ registry = self.findRegistry() xslObject = registry.transformerObject(self.transformerName) xslContents = xslObject(xslObject, REQUEST) systemID = xslObject.absolute_url() if xmlContents is None: xmlContents = self.getContents(REQUEST) So I can call it from a PythonScript. Not exactly what you want, but getting there. I'd like to see caching of the prepared Stylesheet. I don't need the output cached since it's all dynamic. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax AOL-IM: BKClements From cstrong at arielpartners.com Thu Sep 5 14:54:10 2002 From: cstrong at arielpartners.com (Craeg K Strong) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] Re: XML Transform without predefined XML source (Re: XMLTransform interface alternatives) Message-ID: <3D77A852.2040101@arielpartners.com> This is a superb idea. I will make this a high priority for the next release! --Craeg Igor Elbert wrote: > I am looking at the XMLTransform and think it's a great product. Here is my > $.02 about it: > > I think it would be useful if XMLTransform allowed me to leave the Source ID > field empty and assumed it's applied to an XML. > For example I would like to be able to write: > http://MyFolder/myZSQLmethod/asXML/transform and get a rendered page. > > This way transformer doesn't know how it gets its XML and behaves like a > true pipe. > > Maybe it's possible to do the same with the current implementation but I did > not find how. > > The proposed enhancement would let me to chain transformers: > ....../asXML/transform1/transform2 > > The next logical step would be to allow supplying XSL on the fly: > http://MyFolder/myZSQLmethod/asXML/transform/myXSL > > Does it make sense? From bkc at murkworks.com Thu Sep 5 15:52:15 2002 From: bkc at murkworks.com (Brad Clements) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] XML Transform without predefined XML source (Re: XMLTransform interface alternatives) In-Reply-To: <3D77B026.7040200@arielpartners.com> Message-ID: <3D777E12.18651.19814318@localhost> On 5 Sep 2002 at 15:27, Craeg K Strong wrote: > > I'd like to see caching of the prepared Stylesheet. > > This is more complicated than it might at first seem. My guess is you are > thinking of a situation where the XSLT is simply a chunk of ASCII text > sitting somewhere. But our XSLTs are nothing of the sort :-) In fact, > they have > In my case, the stylesheet is static, so I'd like to be able to save the processor for re- use. Also, hoping libxml2 gets updated soon to avoid file write craziness. Otherwise, I'll move back to Sablotron. (not your fault, just an FYI) Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax AOL-IM: BKClements From cstrong at arielpartners.com Thu Sep 5 15:27:34 2002 From: cstrong at arielpartners.com (Craeg K Strong) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] XML Transform without predefined XML source (Re: XMLTransform interface alternatives) References: <3D77571A.9269.18E907B4@localhost> Message-ID: <3D77B026.7040200@arielpartners.com> See comments embedded below... Brad Clements wrote: > On 4 Sep 2002 at 15:00, Igor Elbert wrote: > >>I think it would be useful if XMLTransform allowed me to leave the Source >>ID field empty and assumed it's applied to an XML. For example I would like >>to be able to write: http://MyFolder/myZSQLmethod/asXML/transform and get a >>rendered page. >> > I made the following modification to XMLTransform.py > > def transform(self, REQUEST,xmlContents=None): > """ > > Generate result using transformer and return it as a string > > """ > > registry = self.findRegistry() > xslObject = registry.transformerObject(self.transformerName) > xslContents = xslObject(xslObject, REQUEST) > systemID = xslObject.absolute_url() > if xmlContents is None: > xmlContents = self.getContents(REQUEST) > > So I can call it from a PythonScript. Not exactly what you want, but getting there. Yeap. I will be looking in to this RSN, as there are many situations where we want to use this too :-) > I'd like to see caching of the prepared Stylesheet. This is more complicated than it might at first seem. My guess is you are thinking of a situation where the XSLT is simply a chunk of ASCII text sitting somewhere. But our XSLTs are nothing of the sort :-) In fact, they have a) embedded DTML tags that dynamically at runtime get filled in with whatever values the attributes they reference have at the moment b) are themselves XMLTransforms because they are generated using other XSLT transformers. We have a two-level transformation scheme which helps keep the XSLTs more generic and less monolithic. We generate all of our XSLTs out of pieces and parts. That said, we still get caching. Because we make all of our XSLTs instances of XMLTransform, they can be cached the same way. Again, we wanted to keep caching functionality outside of XMLTransform.py itself, to make the code cleaner and simpler. The CacheManager does the caching on behalf of the XMLTransform. If, having understood the above, you still have suggestions for further caching opportunities, I am willing to entertain them :) I don't need the output cached since > it's all dynamic. Thats OK, the "never Cache" option was designed for that situation. If you set Caching to "off" (which means never cache) in the XMLTransform, it won't attempt to cache the output. --Craeg From cstrong at arielpartners.com Thu Sep 5 18:13:21 2002 From: cstrong at arielpartners.com (Craeg K Strong) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] XML Transform without predefined XML source (Re: XMLTransform interface alternatives) References: <3D777E12.18651.19814318@localhost> Message-ID: <3D77D701.8020306@arielpartners.com> Brad Clements wrote: > On 5 Sep 2002 at 15:27, Craeg K Strong wrote: > >>>I'd like to see caching of the prepared Stylesheet. >> >>This is more complicated than it might at first seem. My guess is you are >>thinking of a situation where the XSLT is simply a chunk of ASCII text >>sitting somewhere. But our XSLTs are nothing of the sort :-) In fact, >>they have >> > > > In my case, the stylesheet is static, so I'd like to be able to save the processor for re- > use. OK I will look into it. > > Also, hoping libxml2 gets updated soon to avoid file write craziness. Otherwise, I'll > move back to Sablotron. (not your fault, just an FYI) Yep. Why don't you send them a request for this. The more people who request it, the faster they will do a new release :-) BTW, thanks for bringing up Sablotron. Maybe the next release of XMLTransform should support it? But which set of Python bindings do you use (PySablot or SabPyth)? Is it relatively stable, etc? Regards, --Craeg From huxley1 at westnet.com.au Fri Sep 6 00:50:28 2002 From: huxley1 at westnet.com.au (Jeremy Rew) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] ParsedXML 'meta_type' problem Message-ID: <5.1.1.6.0.20020906123613.00b2b130@localhost> I am having a problem with ParsedXML. I have imported the Examples.zexp, and they work fine. The problem is that when I change, or replace any data in the XML file, or create an example of my own I get the following error: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: meta_type Traceback (innermost last): File /usr/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /usr/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 114, in publish File /usr/Zope-2.5.1-linux2-x86/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook File /usr/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 98, in publish File /usr/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/mapply.py, line 88, in mapply (Object: viewEntry) File /usr/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 39, in call_object (Object: viewEntry) File /usr/Zope-2.5.1-linux2-x86/lib/python/OFS/DTMLMethod.py, line 127, in __call__ (Object: viewEntry) File /usr/Zope-2.5.1-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 473, in __call__ (Object: viewEntry) File /usr/Zope-2.5.1-linux2-x86/lib/python/DocumentTemplate/DT_In.py, line 695, in renderwob (Object: childNodes) File /usr/Zope-2.5.1-linux2-x86/lib/python/DocumentTemplate/DT_Var.py, line 250, in render (Object: firstChild.data) (Info: ('firstChild.data', u'To be or not to be', {'fmt': 'structured-text', '': '"firstChild.data"'})) File /usr/Zope-2.5.1-linux2-x86/lib/python/DocumentTemplate/DT_Var.py, line 355, in structured_text AttributeError: (see above) This error occurs even if I edit the original XML file that works, and then change it back to exactly how it was from within the xml editor. The only XML file that will work is the one from the Examples.zexp and only if it is unchanged. Has anyone else had this problem? Any help would be excellent. Thanks, Jeremy From bkc at murkworks.com Fri Sep 6 09:19:48 2002 From: bkc at murkworks.com (Brad Clements) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] XML Transform without predefined XML source (Re: XMLTransform interface alternatives) In-Reply-To: <3D77D701.8020306@arielpartners.com> Message-ID: <3D787393.30728.1D40551E@localhost> On 5 Sep 2002 at 18:13, Craeg K Strong wrote: > > Also, hoping libxml2 gets updated soon to avoid file write craziness. > > Otherwise, I'll move back to Sablotron. (not your fault, just an FYI) > > Yep. Why don't you send them a request for this. The more people who > request it, the faster they will do a new release :-) > > BTW, thanks for bringing up Sablotron. Maybe the next release of > XMLTransform should support it? But which set of Python bindings do you > use (PySablot or SabPyth)? Is it relatively stable, etc? I'm using SabPyth.. When I made my selection late last year, it seemed to be the "most current". I've been happy with it. Though just getting Sablotron installed on RH Linux 7.0 is a pita due to incompatibilities with js and kde-support. Since we're moving to RH7.3 in a few weeks, I'll suffer with libxml2 for a while longer. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax AOL-IM: BKClements From fred at zope.com Fri Sep 6 23:44:16 2002 From: fred at zope.com (Fred L. Drake, Jr.) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] Expat 1.95.5 released Message-ID: <15737.30224.189723.656333@pcp745479pcs.reston01.va.comcast.net> Expat 1.95.5 has been released; information about what's changed is available at the Expat website: http://www.libexpat.org/ This is the release that fixes the problem we're seeing in the nightly test runs. I have a few things to fix to make PyXML happy with this version of Expat, but expect that a new release of PyXML will be made (hopefully) by the middle of the next week. -Fred -- Fred L. Drake, Jr. PythonLabs at Zope Corporation From jean at upfrontsystems.co.za Tue Sep 10 11:19:21 2002 From: jean at upfrontsystems.co.za (Jean Jordaan) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] Re: XML Transform doc bug .. References: <3D7369D0.1000004@upfrontsystems.co.za> <3D73B5C3.4070305@arielpartners.com> Message-ID: <3D7E0D79.3020105@upfrontsystems.co.za> Craeg Strong wrote: > I think that 4Suite 12 + PyXML 7.1 will be a good > option, as soon as they (4Suite) fix a few more bugs. Hmm, I just noticed this: Prior to 4Suite-0.12.0 release, PyXML was required to use 4Suite. 4Suite now no longer requires PyXML, as long as expat and pyexpat are installed. If you need DTD validation, or some advanced DOM processing tools, you should install PyXML 0.7 or higher (from docs/xml/HowTos/UNIX.doc in 2002-09-10-4Suite.tar.gz ) So your remark above is aimed at that "If you need DTD validation ..."? -- Jean Jordaan Upfront Systems http://www.upfrontsystems.co.za From jean at upfrontsystems.co.za Tue Sep 10 11:47:44 2002 From: jean at upfrontsystems.co.za (Jean Jordaan) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] Trying to get 4Suite and XMLTransform up and running References: <3D7369D0.1000004@upfrontsystems.co.za> <3D73B5C3.4070305@arielpartners.com> <3D739322.4040605@upfrontsystems.co.za> <3D73A7F9.5000305@arielpartners.com> <3D747152.6080409@upfrontsystems.co.za> <3D74EE0C.6040508@arielpartners.com> Message-ID: <3D7E1420.2030703@upfrontsystems.co.za> Craeg K Strong wrote: > Anyway, if you apply this, all should be fine for 4Suite 12. OK, I'm back on XML Transform's case ;) I've applied the systemID patch you sent, and I'm still a bit stuck. I'm testing with a setup as follows: param.xml: """ Hello, subting """ registry/simple.xsl: """ """ registry/included.xsl: """
Included!
""" I've added some logging, and this is what I see in the log when I view 'test_include', an XMLTransform which binds 'param.xml' as source and 'simple.xsl' as stylesheet: ------ 2002-09-10T15:34:35 INFO(0) XMLTransform: Imported XSLTProcessor: Products.XMLTransform.FourSuite12Processor.FourSuite12Processor [...] ------ 2002-09-10T15:25:30 INFO(0) XMLTransform inside transform ------ 2002-09-10T15:25:30 INFO(0) XMLTransform inside transformGuts ------ 2002-09-10T15:25:30 INFO(0) XMLTransform styleSrc: systemID: http://blommie:15080/xml/registry/simple.xsl After the final line, Zope stops responding to web requests until I restart it. HuH? > This would be great to get working under libxslt-- that way you could > still use relative URLs even though URNs won't yet work. Absolutely. I've got both libxslt and FourSuite12 as options now, but I find myself leaning toward libxslt, perhaps irrationally -- it feels simpler. > Let me know how this works for you (you _are_ using 4Suite 12, right?) Yes. How should I describe my system to you to be useful? jean@blommie XMLTransform $ cat version.txt 0-8-0 jean@blommie XMLTransform $ grep XSLTProcessor XMLTransform.py #from FourSuite11Processor import FourSuite11Processor as XSLTProcessor from FourSuite12Processor import FourSuite12Processor as XSLTProcessor #from LibXsltProcessor import LibXsltProcessor as XSLTProcessor import zLOG; zLOG.LOG('XMLTransform:', 0, 'Imported XSLTProcessor: %s'%XSLTProcessor) [...] jean@blommie XMLTransform $ python2.1 Python 2.1.1 (#1, Feb 11 2002, 13:38:38) [GCC 2.95.3 20010315 (release)] on linux2 Type "copyright", "credits" or "license" for more information. >>> import Ft >>> print Ft.__revision__ $Id: __init__.py,v 1.16 2002/09/05 02:47:04 molson Exp $ -- Jean Jordaan Upfront Systems http://www.upfrontsystems.co.za From jean at upfrontsystems.co.za Tue Sep 10 12:28:44 2002 From: jean at upfrontsystems.co.za (Jean Jordaan) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] DocBook processing HowTo (long) Message-ID: <3D7E1DBC.9020604@upfrontsystems.co.za> Hi all I'm writing up what we're trying to accomplish here. I thought I'd post it to the list, thinking that perhaps other people might find it useful. Actually, the whole thing is really a plea for correction and pointers! I start out talking about DocBook generally and commandline processing to get HTML and PDF, but then I get to Zope and XMLTransform. The document ends a bit bluntly there, because I haven't been able to make XMLTransform do anything useful with DocBook: makes my Zope catatonic. Here you go: Publishing framework We get Word documents from BIS. We want to get them into DocBook for purposes of storage and publication. - DocBook is good for storage because it can easily be indexed, and earlier versions can be processed and brought up to date with the appropriate versions of the stylesheets. - DocBook is good for publication because it can be transformed flexibly. The distribution comes with XSL stylesheets to produce various flavours of HTML, and XSL-FO (Formatting Objects). FO is meant to be used for generating print output. I'll discuss these publishing steps: Converting Word docs to DocBook (Autoconversion, Editorial markup of the converted DocBook), Processing DocBook from the commandline, Processing DocBook within Zope. Converting Word docs to DocBook Autoconversion step We receive Word doc files for publication. Currently, BIS do not use any stylesheet or consistency guidelines, so the Word docs cannot be autoconverted very successfully. The cleanest route that I currently know is via the wvware suite:: $ wvHtml "Input Word document.doc" wvHtml_output.html && \ tidy -indent -clean -asxml wvHtml_output.html > tidy_output.html The 'tidy' options: '-clean' turns this (baarf)::

Local Government Revenue

into this (phew)::

Local Government Revenue

with corresponding CSS classes in a 'style' block in the 'head':: div.c2 {padding: 0.00mm 0.00mm 0.00mm 0.00mm; text-align: left} p.c1 {background-color: White; color: Black; font-weight: bold; line-height: 4.166667mm; text-align: left; text-indent: 0.00mm} The '-asxml' option ensures that there is no whitespace between attribute names and values, and that singleton tags are closed, as this 'diff' illustrates:: -
+
(...) - + Therefore, the output of tidy ('tidy_output.html' above) can be transformed by an XSL stylesheet, which should be able to do the following (in increasing order of difficulty, from my current viewpoint): - simply replace HTML tags with the corresponding DocBook tags:: - Remove empty elements (block elements with no PCDATA in their children), such as::

- Insert required attributes, derived from HTML, such as the number of columns in a table ('cols'). If we have few documents to convert, we can stop autoprocessing after the 'tidy' step. If we have many over a long period, it will become worthwhile to interpose stylesheets for more massaging. However it's done, the output of this transformation is the input for the next step: editorial markup. Editorial markup There is more information in the Word document than survives the conversion. This information is either coded only visually and contextually in the Word doc (a personal name on the title page, usually right-aligned, can be assumed to be the author), or it is inconsistently marked up (headers are sometimes 'hN' elements, but sometimes only plain paragraphs in large text). This information needs a human to recognize and markup. Here are the kinds of semantic markup that we'll want to do: - Document metadata: title, author, publication date, revision history, contact information, abstract, ... - Inline metadata: Table titles and figure captions, quotations (to distinguish them from emphasis or "irony" quotes), the titles of sources, citations of references, foreign phrases, acronyms, crossreferences (eg. furnishing of 'xreflabel') ... - Document parts: most have bibliographies, some have glossaries or lists of acronyms. Bibliographies can become very complex. If we markup them lightly, we don't stand to get that much back out of them. If we markup them carefully, we could have a sitewide citations database. This would have advantages such as: consistency across documents; editors/visitors would be able to see which sources/authors are cited most often by BIS; if we maintain a central bibliography, all documents that cite a source benefit if it is updated (this might be particularly useful in the case of online sources with URLs that change). See "Refdb":http://refdb.sourceforge.net/ A sitewide glossary of acronyms/institutions would also be nice to have. Editing environment: the idea is that we outsource the markup, and so Vim isn't necessarily the most obvious choice as editor. For those who live in it, Vim offers a DocBook mode, which will alert you to non-DocBook tags or attributes thru syntax highlighting (however, Vim's syntax file isn't up to date, so it misrecognizes eg. 'articleinfo', introduced in DocBook v.4. We're currently at 4.2) and 'matchit.vim', which matches start and end tags (though it doesn't realize that 'docbk' is also an 'xml' mode, so you have to go to XML mode or hack 'matchit.vim'). I haven't found a nice free XML-aware editor yet. Here are some lists: Dave Pawson's: http://www.dpawson.co.uk/docbook/tools.html#d6e237 Gary Lawrence Murphy's: http://teledyn.com/help/XML/?Editors Perhaps "jaxe":http://jaxe.sourceforge.net/Jaxe_en.html Processing DocBook from the commandline For commandline XML processing, I have looked at 4Suite, PyXML, libxml2 and libxslt. **libxml2 and libxslt** are the XML-processing components of the Gnome project. Coded by Daniel Veillard in C. They seem to be quite solid and fast. They are meant to be used firstly as libraries in the Gnome environment, but come with some commandline tools and there are Python bindings available. HTML To process a DocBook XML file to HTML:: $ xsltproc /.../docbook/xsl-stylesheets-1.52.2/html/docbook.xsl \ /.../docbook/paper-input.xml > /.../docbook/paper-output.html This outputs a HTML file. To use this in Zope, you'd want to strip off the 'html' and 'body' tags, and the 'head' section. PDF To process a DocBook XML file to PDF, the main options seem to be 'passivetex' and the Apache project's 'fop'. Both are a bit of a PITA. 'passivetex' is more mature, and as it's written in TeX, the output document is beautifully typeset. However, it's very sparsely documented. At the moment, you have to "patch the release":http://sourceforge.net/tracker/index.php?func=detail&aid=593600&group_id=21935&atid=373747 to make it work with recent DocBook XSL. Personally, I've never had the time to make TeX do anything it doesn't do by default :( 'fop' is written in Java, and the output PDF isn't really gorgeous. I'm a Java illiterate, so I don't know the Right Way to install this. If anyone can advise, please do. I got it to work as follows .. First get a '.fo' file from 'xsltproc', and then run 'fop' on that:: $ xsltproc /.../docbook/xsl-stylesheets-1.52.2/fo/docbook.xsl \ /.../docbook/paper-input.xml > /.../docbook/paper-output.fo $ cd /.../fop-0.20.4 $ export JAVA_HOME=/opt/blackdown-jdk-1.3.1/ $ ./build.sh $ ./fop.sh /.../docbook/paper-output.fo /.../docbook/paper-output.pdf Processing DocBook within Zope Prerequisites for Python Setup is not hassle-free. AFAICT, you need to install either Gnome's libxml2 and libxslt, or PyXML and 4Suite 0.11, or 4Suite 0.12 alone (1). I think it's fine to install all of them, but I'd like reassurance on this point. (1) From the 4Suite distro:: Prior to 4Suite-0.12.0 release, PyXML was required to use 4Suite. 4Suite now no longer requires PyXML, as long as expat and pyexpat are installed. If you need DTD validation, or some advanced DOM processing tools, you should install PyXML 0.7 or higher The latest 4Suite release is 0.11.1, which works with PyXML 0.6.6 *exactly*. Lots has changed in PyXML since 0.6.6 (eg. namespace processing). To use PyXML 0.7.1 with 4Suite, you need to get a CVS snapshot of the 4Suite 0.12 branch. See http://4suite.org/docs/4SuiteCVS.xml for instructions. Simplest by far seems to be to just install a recent snapshot, if you want 4Suite. libxml2 and libxslt I'm on Gentoo Linux, so 'emerge libxml2 libxslt' installs the libraries for the python reported by 'python -V', eg. Python 2.2.1. This is not a python used by Zope yet. Check the INSTANCE_HOME 'start' files to ascertain which Zopes run what, and 'python2.1 -V' to see exactly which version this is: eg.:: jean@blommie jean $ python2.1 -V Python 2.1.1 The libxslt Python bindings need to be installed for *this* Python. The Zope 2.5.1 binary distro ships with Python 2.1.3 .. It doesn't look like libxml2/libxslt or 4Suite have hard dependencies on the Python minor version number, but I wouldn't swear to that. To install the libxslt bindings for other Python versions, I got hold of 'libxml2-python-2.4.24.tar.gz' and:: $ tar xzvf libxml2-python-2.4.24.tar.gz $ cd libxml2-python-2.4.24/ $ python2.1 setup.py install Anyway, by now we should have fulfilled XML Transform's prerequisites. XML Transform for Zope The most flexible and robust XSL tool for Zope seems to be Ariel Partners' XML Transform. It differs from ParsedXML in that it does not focus on exposing the DOM of XML objects to scripts etc. inside Zope. ParsedXML would have been compatible with XMLTransform if calling a ParsedXML object returned the raw XML representation of the object. It's a small change; maybe it's happened by now. In contrast, XMLTransform pairs up an XML source and XSL stylesheets:: XMLSource -> XMLTransform <- XSLStylesheet | V Output (can be HTML, XML, XSL, PDF, ...) The source document can be DTMLDocument, DTMLMethod, File, ExternalFile, ... anything that returns a valid string of XML when called (this means that XMLTransforms can be chained, the output of one forming the input of the other). Similarly, the XSL stylesheet can be anything that returns XSL. However, the XMLTransform can be configured to parse the stylesheet as either DTML or ZPT -- making the stylesheet dynamic -- before applying it to the XML. In principle, XMLTransform abstracts the XSL processor used. Currently, it can make use of libxslt or 4Suite, with the usual caveats .. URIs with namespaces wasn't available for libxslt, as libxslt doesn't export the bindings to Python. Local relative path resolution wasn't working last I looked, but Craeg Strong fixed it. I haven't been able to unbreak my installation since then, though, so I haven't tasted the fruits of his labour. -- Jean Jordaan Upfront Systems http://www.upfrontsystems.co.za From uche.ogbuji at fourthought.com Tue Sep 10 13:07:54 2002 From: uche.ogbuji at fourthought.com (Uche Ogbuji) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] Re: XML Transform doc bug .. In-Reply-To: Message from Jean Jordaan of "Tue, 10 Sep 2002 17:19:21 +0200." <3D7E0D79.3020105@upfrontsystems.co.za> Message-ID: > Craeg Strong wrote: > > I think that 4Suite 12 + PyXML 7.1 will be a good > > option, as soon as they (4Suite) fix a few more bugs. > > Hmm, I just noticed this: > > Prior to 4Suite-0.12.0 release, PyXML was required to use > 4Suite. 4Suite now no longer requires PyXML, as long as expat > and pyexpat are installed. > > If you need DTD validation, or some advanced DOM processing > tools, you should install PyXML 0.7 or higher > > (from docs/xml/HowTos/UNIX.doc in 2002-09-10-4Suite.tar.gz ) > > So your remark above is aimed at that "If you need DTD validation ..."? Oops. Even that is up to date. 4Suite now supports fast DTD valiidation. I'll touch up the docs. You still need PyXML for some of the utilities in xml.dom.ext, and for some advanced SAX stuff as well. -- Uche Ogbuji Fourthought, Inc. http://uche.ogbuji.net http://4Suite.org http://fourthought.com Track chair, XML/Web Services One Boston: http://www.xmlconference.com/ Basic XML and RDF techniques for knowledge management, Part 7 - http://www-106.ibm.com/developerworks/xml/library/x-think12.html Keeping pace with James Clark - http://www-106.ibm.com/developerworks/xml/libra ry/x-jclark.html Python and XML development using 4Suite, Part 3: 4RDF - http://www-105.ibm.com/developerworks/education.nsf/xml-onlinecourse-bytitle/8A 1EA5A2CF4621C386256BBB006F4CEC From uche.ogbuji at fourthought.com Tue Sep 10 13:22:06 2002 From: uche.ogbuji at fourthought.com (Uche Ogbuji) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] Trying to get 4Suite and XMLTransform up and running In-Reply-To: Message from Jean Jordaan of "Tue, 10 Sep 2002 17:47:44 +0200." <3D7E1420.2030703@upfrontsystems.co.za> Message-ID: > ------ > 2002-09-10T15:25:30 INFO(0) XMLTransform inside transform > ------ > 2002-09-10T15:25:30 INFO(0) XMLTransform inside transformGuts > ------ > 2002-09-10T15:25:30 INFO(0) XMLTransform styleSrc: > 0x9601774> systemID: http://blommie:15080/xml/registry/simple.xsl > > After the final line, Zope stops responding to web requests until I > restart it. HuH? Sounds like a blocked thread. What happens I/O-wise after the resolution? > > This would be great to get working under libxslt-- that way you could > > still use relative URLs even though URNs won't yet work. I'm not familiar with XMLTransform, but why would relative URLs not work with 4Suite? They certainly work just fine in plain 4Suite. > Absolutely. I've got both libxslt and FourSuite12 as options now, but > I find myself leaning toward libxslt, perhaps irrationally -- it feels > simpler. Perhaps. But I'm curious as to your thinking. Maybe there is something we should address in 4Suite. Is it something specific to the Zope setup? -- Uche Ogbuji Fourthought, Inc. http://uche.ogbuji.net http://4Suite.org http://fourthought.com Track chair, XML/Web Services One Boston: http://www.xmlconference.com/ Basic XML and RDF techniques for knowledge management, Part 7 - http://www-106.ibm.com/developerworks/xml/library/x-think12.html Keeping pace with James Clark - http://www-106.ibm.com/developerworks/xml/libra ry/x-jclark.html Python and XML development using 4Suite, Part 3: 4RDF - http://www-105.ibm.com/developerworks/education.nsf/xml-onlinecourse-bytitle/8A 1EA5A2CF4621C386256BBB006F4CEC From cstrong at arielpartners.com Tue Sep 10 14:12:07 2002 From: cstrong at arielpartners.com (Craeg K Strong) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] Re: XML Transform doc bug .. References: Message-ID: <3D7E35F7.1090204@arielpartners.com> Hello Jean and Uche: I just downloaded and installed the 9/10 CVS snapshot of 4Suite, and I installed my system as follows: Red Hat Linux 7.2 Zope 2.5.1 4Suite 9/10/2002 My test suite reports the following error: python alltests.py SOFTWARE_HOME: /opt/Zope-2.5.1-linux2-x86/lib/python INSTANCE_HOME: /opt/Zope-2.5.1-linux2-x86/lib/python/Testing Loading Zope, please stand by ... done (3.864s) You must either install PyXML v0.7.1 or recompile your python with PyExpat support to use 'StylesheetReader.py' None of my code calls StylesheetReader directly, so maybe this is due to the fact that I am substituting my own InputSource? Anyway, its fine either way. If this is intended, then the docs are correct as is, and PyXML 0.7.1 *is* required. Otherwise, if we can remove this dependency, I will update my docs to indicate that PyXML is *not* required for XMLTransform. Thanks, --Craeg Uche Ogbuji wrote: >>Craeg Strong wrote: >> >>>I think that 4Suite 12 + PyXML 7.1 will be a good >>>option, as soon as they (4Suite) fix a few more bugs. >> >>Hmm, I just noticed this: >> >> Prior to 4Suite-0.12.0 release, PyXML was required to use >> 4Suite. 4Suite now no longer requires PyXML, as long as expat >> and pyexpat are installed. >> >> If you need DTD validation, or some advanced DOM processing >> tools, you should install PyXML 0.7 or higher >> >> (from docs/xml/HowTos/UNIX.doc in 2002-09-10-4Suite.tar.gz ) >> >>So your remark above is aimed at that "If you need DTD validation ..."? > > > Oops. Even that is up to date. 4Suite now supports fast DTD valiidation. > I'll touch up the docs. > > You still need PyXML for some of the utilities in xml.dom.ext, and for some > advanced SAX stuff as well. From uche.ogbuji at fourthought.com Tue Sep 10 16:11:09 2002 From: uche.ogbuji at fourthought.com (Uche Ogbuji) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] Re: XML Transform doc bug .. In-Reply-To: Message from Craeg K Strong of "Tue, 10 Sep 2002 14:12:07 EDT." <3D7E35F7.1090204@arielpartners.com> Message-ID: > Hello Jean and Uche: > > I just downloaded and installed the 9/10 CVS snapshot of 4Suite, > and I installed my system as follows: > > Red Hat Linux 7.2 > Zope 2.5.1 > 4Suite 9/10/2002 > > My test suite reports the following error: > > python alltests.py > SOFTWARE_HOME: /opt/Zope-2.5.1-linux2-x86/lib/python > INSTANCE_HOME: /opt/Zope-2.5.1-linux2-x86/lib/python/Testing > Loading Zope, please stand by ... done (3.864s) > You must either install PyXML v0.7.1 or recompile your python with PyExpat > support to use 'StylesheetReader.py' > > None of my code calls StylesheetReader directly, so maybe this is due > to the fact that I am substituting my own InputSource? Bah. I forgot about StylesheetReader. Almost anything you do with the XPath or XSLT code triggers a StylesheetReader import. At the least, I'll update that message to suggest PyXML 0.8 or 0.8.1 (due out this week). > Anyway, its fine either way. If this is intended, then the docs are correct > as is, and PyXML 0.7.1 *is* required. Otherwise, if we can remove this > dependency, I will update my docs to indicate that PyXML is *not* > required for XMLTransform. If Python has PyExpat built in, then you don't need PyXML. I think this will be the default in Python 2.3. However, in 2.1 and 2.2, it might be less confusing to just say that PyXML is required. -- Uche Ogbuji Fourthought, Inc. http://uche.ogbuji.net http://4Suite.org http://fourthought.com Track chair, XML/Web Services One Boston: http://www.xmlconference.com/ Basic XML and RDF techniques for knowledge management, Part 7 - http://www-106.ibm.com/developerworks/xml/library/x-think12.html Keeping pace with James Clark - http://www-106.ibm.com/developerworks/xml/libra ry/x-jclark.html Python and XML development using 4Suite, Part 3: 4RDF - http://www-105.ibm.com/developerworks/education.nsf/xml-onlinecourse-bytitle/8A 1EA5A2CF4621C386256BBB006F4CEC From cstrong at arielpartners.com Tue Sep 10 23:50:41 2002 From: cstrong at arielpartners.com (Craeg K Strong) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] Re: Trying to get 4Suite and XMLTransform up and running References: <3D7369D0.1000004@upfrontsystems.co.za> <3D73B5C3.4070305@arielpartners.com> <3D739322.4040605@upfrontsystems.co.za> <3D73A7F9.5000305@arielpartners.com> <3D747152.6080409@upfrontsystems.co.za> <3D74EE0C.6040508@arielpartners.com> <3D7E1420.2030703@upfrontsystems.co.za> Message-ID: <3D7EBD91.7060604@arielpartners.com> Hello: I tried your example verbatim and it worked fine for me: Hello, Included! subting Although I am not sure why, because you are matching on "document" rather than "Document"...? :) Anyway, chances are there is a configuration problem somewhere. My configuration: Red Hat Linux 7.2 Zope 2.5.1 (This includes Python 2.1.3) PyXML 0.7.1 4Suite CVS 9/10/2002 I will make a 0.8.1 release of XMLTransform very shortly, that will have the bug fixes for relative URL resolution. That will serve as an interim until I can make more substantial improvements for 0.9.0 Have you tried with Zope 2.5.1 and the Python it installs by default? This is 2.1.3 and has many bug fixes over 2.1.1 --Craeg Jean Jordaan wrote: > Craeg K Strong wrote: > >> Anyway, if you apply this, all should be fine for 4Suite 12. > > > OK, I'm back on XML Transform's case ;) I've applied the systemID > patch you sent, and I'm still a bit stuck. I'm testing with a setup > as follows: > > param.xml: """ > > > Hello, subting > > """ > > registry/simple.xsl: """ > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> > > > > > > """ > > registry/included.xsl: """ > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> > > >
Included!
>
>
> """ > > I've added some logging, and this is what I see in the log when > I view 'test_include', an XMLTransform which binds 'param.xml' as > source and 'simple.xsl' as stylesheet: > > ------ > 2002-09-10T15:34:35 INFO(0) XMLTransform: Imported XSLTProcessor: > Products.XMLTransform.FourSuite12Processor.FourSuite12Processor > [...] > ------ > 2002-09-10T15:25:30 INFO(0) XMLTransform inside transform > ------ > 2002-09-10T15:25:30 INFO(0) XMLTransform inside transformGuts > ------ > 2002-09-10T15:25:30 INFO(0) XMLTransform styleSrc: > instance at 0x9601774> systemID: > http://blommie:15080/xml/registry/simple.xsl > > After the final line, Zope stops responding to web requests until I > restart it. HuH? > >> This would be great to get working under libxslt-- that way you could >> still use relative URLs even though URNs won't yet work. > > > Absolutely. I've got both libxslt and FourSuite12 as options now, but > I find myself leaning toward libxslt, perhaps irrationally -- it feels > simpler. > >> Let me know how this works for you (you _are_ using 4Suite 12, right?) > > > Yes. How should I describe my system to you to be useful? > > jean@blommie XMLTransform $ cat version.txt > 0-8-0 > jean@blommie XMLTransform $ grep XSLTProcessor XMLTransform.py > #from FourSuite11Processor import FourSuite11Processor as XSLTProcessor > from FourSuite12Processor import FourSuite12Processor as XSLTProcessor > #from LibXsltProcessor import LibXsltProcessor as XSLTProcessor > import zLOG; zLOG.LOG('XMLTransform:', 0, 'Imported XSLTProcessor: > %s'%XSLTProcessor) > [...] > jean@blommie XMLTransform $ python2.1 > Python 2.1.1 (#1, Feb 11 2002, 13:38:38) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "copyright", "credits" or "license" for more information. > >>> import Ft > >>> print Ft.__revision__ > $Id: __init__.py,v 1.16 2002/09/05 02:47:04 molson Exp $ From cstrong at arielpartners.com Tue Sep 10 23:55:58 2002 From: cstrong at arielpartners.com (Craeg K Strong) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] Trying to get 4Suite and XMLTransform up and running References: Message-ID: <3D7EBECE.2010806@arielpartners.com> Uche Ogbuji wrote: > >>>This would be great to get working under libxslt-- that way you could >>>still use relative URLs even though URNs won't yet work. >> > > I'm not familiar with XMLTransform, but why would relative URLs not work with > 4Suite? They certainly work just fine in plain 4Suite. In my 0.8.0 release of XMLTransform, I failed to pass the SystemID for the XSLT to applyStylesheet() which made it impossible to do things like xsl:include "../foo.xsl" I fixed this in CVS. I will release 0.8.1 with the fix RSN... >>Absolutely. I've got both libxslt and FourSuite12 as options now, but >>I find myself leaning toward libxslt, perhaps irrationally -- it feels >>simpler. > > > Perhaps. But I'm curious as to your thinking. Maybe there is something we > should address in 4Suite. Is it something specific to the Zope setup? > I can't speak for Jean, but I am pretty sure it will feel safer for folks to use when alpha3 comes out. Then there will be a pre-built version, rather than a CVS snapshot (sounds scary :) Also, the OASIS catalog support sounds great! I will certainly make use of that as soon as alpha3 hits. Regards, --Craeg From cstrong at arielpartners.com Tue Sep 10 23:57:06 2002 From: cstrong at arielpartners.com (Craeg K Strong) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] Re: XML Transform doc bug .. References: Message-ID: <3D7EBF12.9000001@arielpartners.com> Uche Ogbuji wrote: >>Hello Jean and Uche: > Bah. I forgot about StylesheetReader. Almost anything you do with the XPath > or XSLT code triggers a StylesheetReader import. At the least, I'll update > that message to suggest PyXML 0.8 or 0.8.1 (due out this week). OK > > > >>Anyway, its fine either way. If this is intended, then the docs are correct >>as is, and PyXML 0.7.1 *is* required. Otherwise, if we can remove this >>dependency, I will update my docs to indicate that PyXML is *not* >>required for XMLTransform. > > > If Python has PyExpat built in, then you don't need PyXML. I think this will > be the default in Python 2.3. However, in 2.1 and 2.2, it might be less > confusing to just say that PyXML is required. Yup. Done. The docs stay as is :) --Craeg From jean at upfrontsystems.co.za Wed Sep 11 02:57:07 2002 From: jean at upfrontsystems.co.za (Jean Jordaan) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] Trying to get 4Suite and XMLTransform up and running References: <3D7EBECE.2010806@arielpartners.com> Message-ID: <3D7EE943.5030806@upfrontsystems.co.za> Craeg K Strong wrote: >> I'm not familiar with XMLTransform, but why would relative URLs not >> work with 4Suite? They certainly work just fine in plain 4Suite. > > In my 0.8.0 release of XMLTransform, I failed to pass the SystemID for > the XSLT to applyStylesheet() which made it impossible to do things like > > xsl:include "../foo.xsl" > > I fixed this in CVS. I will release 0.8.1 with the fix RSN... Hmmm .. My patched code (based on your message of the 2002/09/03) looks like this:: styleSrc = ResolvingInputSource(namespaceMap, REQUEST, - StringIO(xsltContents)) + StringIO(xsltContents), + systemID) + import zLOG; zLOG.LOG('XMLTransform', 0, 'styleSrc: %s systemID: %s'%(styleSrc, systemID)) processor.appendStylesheet(styleSrc) result = processor.run(docSrc, topLevelParams = params) i.e. it passes 'systemID' to 'ResolvingInputSource', but not to 'applyStylesheet', at least not where I can see it .. I'll see what's changed when 0.8.1 comes along .. >>> Absolutely. I've got both libxslt and FourSuite12 as options now, but >>> I find myself leaning toward libxslt, perhaps irrationally -- it feels >>> simpler. >> >> Perhaps. But I'm curious as to your thinking. Maybe there is >> something we should address in 4Suite. Is it something specific to >> the Zope setup? Heh, my you shouldn't credit this opinion too much --- my Linux distribution (Gentoo) lets me install libxslt with a simple 'emerge libxslt', and then I can immediately process DocBook using 'xsltproc /..../stylesheet.xsl /..../document.xml' .. nice instant gratification. I haven't RTFM at all properly for 4Suite, but 4Suite looks BIG, and looks like it comes with a whole server suite which I haven't begun to fathom, and don't believe I need in order to use it with Zope. -- Jean Jordaan Upfront Systems http://www.upfrontsystems.co.za From jean at upfrontsystems.co.za Wed Sep 11 03:06:24 2002 From: jean at upfrontsystems.co.za (Jean Jordaan) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] Re: Trying to get 4Suite and XMLTransform up and running References: <3D7369D0.1000004@upfrontsystems.co.za> <3D73B5C3.4070305@arielpartners.com> <3D739322.4040605@upfrontsystems.co.za> <3D73A7F9.5000305@arielpartners.com> <3D747152.6080409@upfrontsystems.co.za> <3D74EE0C.6040508@arielpartners.com> <3D7E1420.2030703@upfrontsystems.co.za> <3D7EBD91.7060604@arielpartners.com> Message-ID: <3D7EEB70.6010602@upfrontsystems.co.za> Craeg K Strong wrote: > I tried your example verbatim and it worked fine for me: > > Hello, > Included! subting Well, I guess this is good :] But if my example is correct, I have nothing to fix :/ > Although I am not sure why, because you are matching on "document" > rather than "Document"...? :) OK, fixed that too :] > Anyway, chances are there is a configuration problem somewhere. Must be .. > Have you tried with Zope 2.5.1 and the Python it installs by default? > This is 2.1.3 and has many bug fixes over 2.1.1 OK, I'll give 2.1.3 a shot now .. -- Jean Jordaan Upfront Systems http://www.upfrontsystems.co.za From jean at upfrontsystems.co.za Wed Sep 11 03:10:10 2002 From: jean at upfrontsystems.co.za (Jean Jordaan) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] Trying to get 4Suite and XMLTransform up and running References: Message-ID: <3D7EEC52.4050109@upfrontsystems.co.za> Uche Ogbuji wrote: >>After the final line, Zope stops responding to web requests until I >>restart it. HuH? > > Sounds like a blocked thread. What happens I/O-wise after the resolution? Nothing happens. After that log message, Zope just waits and doesn't respond to requests. It doesn't time out either (I left it overnight inadvertently, and it was still trying to resolve). I'm going to try moving to Python 2.1.3 (from 2.1.1) and then stepping through the code in the Python debugger to see where it gets stuck. -- Jean Jordaan Upfront Systems http://www.upfrontsystems.co.za From jean at upfrontsystems.co.za Wed Sep 11 10:25:42 2002 From: jean at upfrontsystems.co.za (Jean Jordaan) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] Trying to get 4Suite and XMLTransform up and running References: Message-ID: <3D7F5266.6060205@upfrontsystems.co.za> I'm in way beyond my depth here, but stepping thru Zope while parsing this test XSL of mine, I notice this when the include element is reached. I guess '' is really something completely different from an XInclude include as in the below, and that I shouldn't be worried? /usr/lib/python2.1/site-packages/Ft/Xml/Xslt/StylesheetHandler.py(231)startElement() -> if name == XINCLUDE_NAME: (Pdb) l 226 def startElement(self, name, attribs, *args): 227 228 self._whole_text and self._completeTextNode(self._node_stack[-1]) 229 230 # check for XInclude 231 B-> if name == XINCLUDE_NAME: 232 self._handle_xinclude(attribs) 233 # throw away this element 234 self._node_stack.append(None) 235 return 236 (Pdb) p name u'http://www.w3.org/1999/XSL/Transform include' (Pdb) p XINCLUDE_NAME 'http://www.w3.org/2001/XInclude include' -- Jean Jordaan Upfront Systems http://www.upfrontsystems.co.za From jean at upfrontsystems.co.za Wed Sep 11 11:25:12 2002 From: jean at upfrontsystems.co.za (Jean Jordaan) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] Trying to get 4Suite and XMLTransform up and running References: <3D7F5266.6060205@upfrontsystems.co.za> Message-ID: <3D7F6058.4070104@upfrontsystems.co.za> Jean Jordaan wrote: > I'm in way beyond my depth here, Obviously ;) Sorry for trying your patiences .. > I guess '' is really something > completely different I've seen that it is completely different .. I traced the parsing up to the '' 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. And that's where it hangs: (Pdb) l 283 h.putrequest('GET', selector) 284 if auth: h.putheader('Authorization', 'Basic %s' % auth) 285 if realhost: h.putheader('Host', realhost) 286 for args in self.addheaders: apply(h.putheader, args) 287 h.endheaders() 288 -> if data is not None: 289 h.send(data) 290 errcode, errmsg, headers = h.getreply() 291 fp = h.getfile() 292 if errcode == 200: 293 return addinfourl(fp, headers, "http:" + url) (Pdb) n > /usr/lib/python2.1.3/urllib.py(290)open_http() -> errcode, errmsg, headers = h.getreply() (Pdb) n That 'getreply' never returns. 'included.xsl' is accessible to anonymous. I'll step into 'getreply' tomorrow and see if I learn any more .. -- Jean Jordaan Upfront Systems http://www.upfrontsystems.co.za From cstrong at arielpartners.com Wed Sep 11 14:29:02 2002 From: cstrong at arielpartners.com (Craeg Strong) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] Trying to get 4Suite and XMLTransform up and running References: <3D7EBECE.2010806@arielpartners.com> <3D7EE943.5030806@upfrontsystems.co.za> Message-ID: <3D7F8B6E.1040008@arielpartners.com> Jean Jordaan wrote: > Craeg K Strong wrote: > >>> I'm not familiar with XMLTransform, but why would relative URLs not >>> work with 4Suite? They certainly work just fine in plain 4Suite >> >> In my 0.8.0 release of XMLTransform, I failed to pass the SystemID >> for the XSLT to applyStylesheet() which made it impossible to do >> things like >> >> xsl:include "../foo.xsl" >> >> I fixed this in CVS. I will release 0.8.1 with the fix RSN... > > Hmmm .. My patched code (based on your message of the 2002/09/03) looks > like this:: > > styleSrc = ResolvingInputSource(namespaceMap, REQUEST, > - StringIO(xsltContents)) > + StringIO(xsltContents), > + systemID) > + import zLOG; zLOG.LOG('XMLTransform', 0, 'styleSrc: %s systemID: > %s'%(styleSrc, systemID)) > processor.appendStylesheet(styleSrc) > result = processor.run(docSrc, topLevelParams = params) > > i.e. it passes 'systemID' to 'ResolvingInputSource', but not to > 'applyStylesheet', at least not where I can see it .. I'll see what's > changed when 0.8.1 comes along .. My bad. I typed from memory, confusing the FourSuite11Processor.py changes with the FourSuite12Processor.py changes. Your patch is correct. :-) --Craeg From huxley1 at westnet.com.au Fri Sep 13 01:46:10 2002 From: huxley1 at westnet.com.au (Jeremy Rew) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] XForm/Zope question Message-ID: <001901c25ae8$dd336280$0ea148ca@jrhux> Hi, I need to have a Zope script process a serialised xml document that has been submitted to it by an xform. I dont really know how to access the XML from Zope after it has had the XML sent to it. Could anyone just point me in the right direction / give me a few pointers as to what needs to be done. Thankyou Jeremy -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.zope.org/pipermail/zope-xml/attachments/20020913/20dba8a2/attachment.html From jean at upfrontsystems.co.za Mon Sep 16 09:32:59 2002 From: jean at upfrontsystems.co.za (Jean Jordaan) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] Trying to get 4Suite and XMLTransform up and running References: <3D7F5266.6060205@upfrontsystems.co.za> <3D7F6058.4070104@upfrontsystems.co.za> Message-ID: <3D85DD8B.8000800@upfrontsystems.co.za> Jean Jordaan wrote: > > I traced the parsing up to the '' > 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@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: 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 From jean at upfrontsystems.co.za Mon Sep 16 09:45:54 2002 From: jean at upfrontsystems.co.za (Jean Jordaan) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] XMLTransform permanently binding to XSLT processor? Message-ID: <3D85E092.5080402@upfrontsystems.co.za> Hi there If I change the XSLTProcessor from 4Suite to libxslt and restart Zope, the XMLTransform instance I was busy with doesn't notice the change. From the log: ======================================================================= jean@blommie 2-5-1 $ ./start ==> var/stupid.log <== ------ 2002-09-16T13:39:05 INFO(0) zdaemon zdaemon: Mon Sep 16 15:39:05 2002: Houston, we have forked [...] ------ 2002-09-16T13:39:08 INFO(0) XMLTransform: Imported XSLTProcessor: Products.XMLTransform.LibXsltProcessor.LibXsltProcessor [...] ------ 2002-09-16T13:39:22 INFO(0) XMLTransform styleSrc: systemID: http://blommie:15080/xml/registry/simple.xsl ======================================================================= How can the styleSrc be a FourSuite12Processor.ResolvingInputSource instance if LibXsltProcessor was imported? There is no XML Transform Cache Manager. If I delete and recreate the XMLTransform, the new one uses LibXsltProcessor. -- Jean Jordaan Upfront Systems http://www.upfrontsystems.co.za From cstrong at arielpartners.com Mon Sep 16 11:50:27 2002 From: cstrong at arielpartners.com (Craeg K Strong) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] XMLTransform permanently binding to XSLT processor? References: <3D85E092.5080402@upfrontsystems.co.za> Message-ID: <3D85FDC3.4010805@arielpartners.com> Hello: Ah yes. This capability is listed on the TODO list: Ability to switch XSLT Processors on the fly -- Some sort of "self upgrading mechanism so one can switch to a different processor at run time. May be related to ZSyncer issue above It sounds like this should be a higher priority (it is currently pretty far down on the list..)? I might be able to make it part of the 0.9 release... BTW, I just heard from Daniel and he indicates that a new libxslt with "greatly expanded and improved" Python APIs will be released in 3-4 weeks. I will probably go ahead and make a 0.9 release a week or two after that to take advantage of all the new features.... --Craeg Jean Jordaan wrote: > Hi there > > If I change the XSLTProcessor from 4Suite to libxslt and restart > Zope, the XMLTransform instance I was busy with doesn't notice the > change. From the log: > > ======================================================================= > jean@blommie 2-5-1 $ ./start > ==> var/stupid.log <== > ------ > 2002-09-16T13:39:05 INFO(0) zdaemon zdaemon: Mon Sep 16 15:39:05 2002: > Houston, we have forked > [...] > ------ > 2002-09-16T13:39:08 INFO(0) XMLTransform: Imported XSLTProcessor: > Products.XMLTransform.LibXsltProcessor.LibXsltProcessor > [...] > ------ > 2002-09-16T13:39:22 INFO(0) XMLTransform styleSrc: > instance at 0x97d4cec> systemID: > http://blommie:15080/xml/registry/simple.xsl > ======================================================================= > > How can the styleSrc be a FourSuite12Processor.ResolvingInputSource > instance if LibXsltProcessor was imported? There is no XML Transform > Cache Manager. > > If I delete and recreate the XMLTransform, the new one uses > LibXsltProcessor. From cstrong at arielpartners.com Mon Sep 16 11:59:25 2002 From: cstrong at arielpartners.com (Craeg K Strong) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] Trying to get 4Suite and XMLTransform up and running References: <3D7F5266.6060205@upfrontsystems.co.za> <3D7F6058.4070104@upfrontsystems.co.za> <3D85DD8B.8000800@upfrontsystems.co.za> Message-ID: <3D85FFDD.9090909@arielpartners.com> Hello: I had a thought. Have you tried changing the number of threads you use? According to your command line, you are restricting zope to a single thread. I am starting zope using all of the defaults: /usr/bin/python2.1.3 /usr/local/zope/2-5-1/z2.py -D according to z2.py, the default number of threads is 4. Maybe that's the problem? It could be that these external libraries require additional threads.... --Craeg Jean Jordaan wrote: > Jean Jordaan wrote: > >> >> I traced the parsing up to the '' >> 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@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: > 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 .. From jean at upfrontsystems.co.za Mon Sep 16 13:52:13 2002 From: jean at upfrontsystems.co.za (Jean Jordaan) Date: Sun Aug 10 16:54:52 2008 Subject: SOLVED!! (Re: [Zope-xml] Trying to get 4Suite and XMLTransform up and running) References: <3D7F5266.6060205@upfrontsystems.co.za> <3D7F6058.4070104@upfrontsystems.co.za> <3D85DD8B.8000800@upfrontsystems.co.za> <3D85FFDD.9090909@arielpartners.com> Message-ID: <3D861A4D.1010105@upfrontsystems.co.za> Craeg K Strong wrote: > > I had a thought. Have you tried changing the number of threads you use? Whee-hoo! Craeg you're a genius :) I bumped the number of threads to 4 and it worked! Thank you very much indeed. Man, what a relief. -- Jean Jordaan Upfront Systems http://www.upfrontsystems.co.za From jean at upfrontsystems.co.za Mon Sep 16 14:04:46 2002 From: jean at upfrontsystems.co.za (Jean Jordaan) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] XMLTransform permanently binding to XSLT processor? References: <3D85E092.5080402@upfrontsystems.co.za> <3D85FDC3.4010805@arielpartners.com> Message-ID: <3D861D3E.5020203@upfrontsystems.co.za> Craeg K Strong wrote: > > Ah yes. This capability is listed on the TODO list: > > Ability to switch XSLT Processors on the fly -- Some sort of "self > upgrading mechanism so one can switch to a different processor > at run time. In the absence of this ability, it would be very helpful if the XML Transform mentioned the processor it's bound to on its 'manage_editForm'. -- Jean Jordaan Upfront Systems http://www.upfrontsystems.co.za From jean at upfrontsystems.co.za Mon Sep 16 14:31:33 2002 From: jean at upfrontsystems.co.za (Jean Jordaan) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] DocBook and XML Transform: select="document('../common/l10n.xml')" Message-ID: <3D862385.9000800@upfrontsystems.co.za> OK, the includes are looking good :) This line fails though: details below .. My Zope DocBook setup is looking like this now: /xml /registry/docbook/common /registry/docbook/html /registry/docbook/lib paper.xml paper 'common', 'html' and 'lib' are folders containing External File batches that point at /usr/share/sgml/docbook/xsl-stylesheets-1.52.2/... on the filesystem. 'paper.xml' is a proper DocBook article. 'paper' is an XMLTransform linking 'paper.xml' to 'docbook/html/docbook.xsl'. When I view /xml/paper, my log shows: ======================================================================= 2002-09-16T18:16:53 INFO(0) XMLTransform styleSrc: systemID: http://blommie:15080/xml/registry/docbook/html/docbook.xsl ==> var/Z2.log <== 192.168.1.5 - jean [16/Sep/2002:20:16:18 +0200] "GET /xml/paper HTTP/1.1" 200 235 "" "Mozilla/5.0 (Windows NT 4.0; U) Opera 6.01 [en]" 192.168.1.2 - Anonymous [16/Sep/2002:20:16:53 +0200] "GET /xml/registry/docbook/VERSION HTTP/1.0" 200 494 "" "Python-urllib/1.15" 192.168.1.2 - Anonymous [16/Sep/2002:20:16:53 +0200] "GET /xml/registry/docbook/html/param.xsl HTTP/1.0" 200 12059 "" "Python-urllib/1.15" [...] 192.168.1.2 - Anonymous [16/Sep/2002:20:17:04 +0200] "GET /xml/registry/docbook/html/html-rtf.xsl HTTP/1.0" 200 9919 "" "Python-urllib/1.15" 192.168.1.5 - jean [16/Sep/2002:20:17:05 +0200] "GET /xml/paper HTTP/1.1" 200 235 "" "Mozilla/5.0 (Windows NT 4.0; U) Opera 6.01 [en]" ==> var/z2.log <== In stylesheet http://blommie:15080/xml/registry/docbook/common/l10n.xsl, line 18, column 0 in "document('../common/l10n.xml')": Invalid base URI: urn:uuid:b0b0902-a03-c02-c0b-509070b901 ======================================================================= It looks like (l10n.xsl, line 18) isn't being resolved. -- Jean Jordaan Upfront Systems http://www.upfrontsystems.co.za From cstrong at arielpartners.com Mon Sep 16 18:09:22 2002 From: cstrong at arielpartners.com (Craeg Strong) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] DocBook and XML Transform: select="document('../common/l10n.xml')" References: <3D862385.9000800@upfrontsystems.co.za> Message-ID: <3D865692.4050505@arielpartners.com> Hello: Congrats on the first step. However, your error below still looks like the same old problem. That is exactly the same error message I got with 4Suite using a version prior to the CVS snapshot of 9/10/2002 (when the fix was applied), namely: Invalid base URI: urn:uuid:b0b0902-a03-c02-c0b-509070b901 If you *are* using that version, then perhaps there is another problem. It would help if I could reproduce your environment. It sounds pretty straightforward; can you tell me where you obtained the docbook stuff? If you give me a URL I will test it, and make it (or a representative subset thereof) a permanent part of the XMLTransform test suite :-) --Craeg Jean Jordaan wrote: > OK, the includes are looking good :) This line fails though: > > details below .. > > My Zope DocBook setup is looking like this now: > > /xml > /registry/docbook/common > /registry/docbook/html > /registry/docbook/lib > paper.xml > paper > > 'common', 'html' and 'lib' are folders containing External File batches > that point at /usr/share/sgml/docbook/xsl-stylesheets-1.52.2/... on the > filesystem. 'paper.xml' is a proper DocBook article. 'paper' is an > XMLTransform linking 'paper.xml' to 'docbook/html/docbook.xsl'. > > When I view /xml/paper, my log shows: > > ======================================================================= > 2002-09-16T18:16:53 INFO(0) XMLTransform styleSrc: > instance at 0x9c2fb5c> systemID: > http://blommie:15080/xml/registry/docbook/html/docbook.xsl > > ==> var/Z2.log <== > 192.168.1.5 - jean [16/Sep/2002:20:16:18 +0200] "GET /xml/paper > HTTP/1.1" 200 235 "" "Mozilla/5.0 (Windows NT 4.0; U) Opera 6.01 [en]" > 192.168.1.2 - Anonymous [16/Sep/2002:20:16:53 +0200] "GET > /xml/registry/docbook/VERSION HTTP/1.0" 200 494 "" "Python-urllib/1.15" > 192.168.1.2 - Anonymous [16/Sep/2002:20:16:53 +0200] "GET > /xml/registry/docbook/html/param.xsl HTTP/1.0" 200 12059 "" > "Python-urllib/1.15" > [...] > 192.168.1.2 - Anonymous [16/Sep/2002:20:17:04 +0200] "GET > /xml/registry/docbook/html/html-rtf.xsl HTTP/1.0" 200 9919 "" > "Python-urllib/1.15" > 192.168.1.5 - jean [16/Sep/2002:20:17:05 +0200] "GET /xml/paper > HTTP/1.1" 200 235 "" "Mozilla/5.0 (Windows NT 4.0; U) Opera 6.01 [en]" > > ==> var/z2.log <== > In stylesheet > http://blommie:15080/xml/registry/docbook/common/l10n.xsl, line 18, > column 0 in "document('../common/l10n.xml')": > Invalid base URI: urn:uuid:b0b0902-a03-c02-c0b-509070b901 > ======================================================================= > > It looks like > > (l10n.xsl, line 18) isn't being resolved. > From cstrong at arielpartners.com Mon Sep 16 16:03:49 2002 From: cstrong at arielpartners.com (Craeg K Strong) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] XMLTransform permanently binding to XSLT processor? References: <3D85E092.5080402@upfrontsystems.co.za> <3D85FDC3.4010805@arielpartners.com> <3D861D3E.5020203@upfrontsystems.co.za> Message-ID: <3D863925.7060105@arielpartners.com> Agreed. I put it on the list for 0.8.1 --Craeg Jean Jordaan wrote: > Craeg K Strong wrote: > >> >> Ah yes. This capability is listed on the TODO list: >> >> Ability to switch XSLT Processors on the fly -- Some sort of "self >> upgrading mechanism so one can switch to a different processor >> at run time. > > > In the absence of this ability, it would be very helpful if the > XML Transform mentioned the processor it's bound to on its > 'manage_editForm'. > From huxley1 at westnet.com.au Mon Sep 16 22:24:30 2002 From: huxley1 at westnet.com.au (Jeremy Rew) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] 4Suite installation Message-ID: <5.1.1.6.0.20020917101409.00b36210@localhost> I have 4suite 0.12.0a2 and am using python 2.1.3 (came with Zope). I am trying to install it, only to run into the following errors: rendering build/docs/xml/modules/Ft.Lib.DistExt.xml -> build/docs/html/modules/Ft.Lib.DistExt.html Traceback (most recent call last): File "/tmp/@12164.0.py", line 636, in ? cmd.run() File "build/lib.linux-i686-2.1/Ft/Lib/DistExt/BuildDocs.py", line 248, in run self.render_doc(doc) File "build/lib.linux-i686-2.1/Ft/Lib/DistExt/BuildDocs.py", line 462, in render_doc raise DistutilsFileError, \ distutils.errors.DistutilsFileError: could not render 'build/docs/html/modules/Ft. Lib.DistExt.html': this constructor takes no arguments error: command '/usr/Zope-2.5.1-linux2-x86/bin/python' failed with exit status 1 everytime I run the install, it stops at each successive html and txt file with the same message. This seems to be documentation files (?). if so, is there any way to skip the installation of the doc and download it seperately? Could anyone please help with this problem? Jeremy From erwan at loisant.org Tue Sep 17 01:48:04 2002 From: erwan at loisant.org (Erwan Loisant) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] Upload an XML file from web Message-ID: <3D86C214.1090700@loisant.org> Hello. I recently came to Zope and I need to get an XML file from user. That means user will not upload the file from Zope management interface but directly from the website I designed. I downloaded and installed ParsedXML, which seems to be a good product for XML management. I looked in the doc and I've seen a dtml manage_addFile() function, manage_addImage() function, and a function for each Zope base object. Is there such a method to add ParsedXML files ? Or is it better to upload it as file then parse it once it is a file object ? Thank you. -- Erwan Loisant Ph.D. student (University of Nantes) Research Student (Tokyo Metropolitan University) From jean at upfrontsystems.co.za Tue Sep 17 04:52:56 2002 From: jean at upfrontsystems.co.za (Jean Jordaan) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] DocBook and XML Transform: select="document('../common/l10n.xml')" References: <3D862385.9000800@upfrontsystems.co.za> <3D865692.4050505@arielpartners.com> Message-ID: <3D86ED68.1010301@upfrontsystems.co.za> Hi Craeg > That is exactly the same error message I got with 4Suite using a version > prior to the CVS > snapshot of 9/10/2002 (when the fix was applied), namely: I'm using 2002-09-10-4Suite.tar.gz , but I'll try the latest. > If you *are* using that version, then perhaps there is another problem. > It would help if I could reproduce your environment. It sounds pretty > straightforward; can you tell me where you obtained the docbook stuff? http://docbook.sourceforge.net/ or head straight to http://sourceforge.net/project/showfiles.php?group_id=21935&release_id=108710 > it, and make > it (or a representative subset thereof) a permanent part of the > XMLTransform test suite :-) That would be excellent. At the above URL there are also docbook-testdocs-1.1.tar.gz and xslt-include-import-test which should be good to test with .. -- Jean Jordaan Upfront Systems http://www.upfrontsystems.co.za From jean at upfrontsystems.co.za Tue Sep 17 08:15:31 2002 From: jean at upfrontsystems.co.za (Jean Jordaan) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] DocBook and XML Transform: select="document('../common/l10n.xml')" References: <3D862385.9000800@upfrontsystems.co.za> <3D865692.4050505@arielpartners.com> Message-ID: <3D871CE3.9030303@upfrontsystems.co.za> Craeg Strong wrote: > That is exactly the same error message I got with 4Suite using a version > prior to the CVS > snapshot of 9/10/2002 (when the fix was applied), namely: > > Invalid base URI: urn:uuid:b0b0902-a03-c02-c0b-509070b901 I'm now using 2002-09-17-4Suite.tar.gz and I'm still getting that error .. Anything else I can do to diagnose? 192.168.1.2 - Anonymous [17/Sep/2002:14:08:12 +0200] "GET /xml/registry/docbook/html/html-rtf.xsl HTTP/1.0" 200 9919 "" "Python-urllib/1.15" 192.168.1.5 - jean [17/Sep/2002:14:08:13 +0200] "GET /xml/paper_4suite HTTP/1.1" 200 235 "" "Mozilla/5.0 (Windows NT 4.0; U) Opera 6.01 [en]" ==> var/z2.log <== In stylesheet http://blommie:15080/xml/registry/docbook/common/l10n.xsl, line 18, column 0 in "document('../common/l10n.xml')": Invalid base URI: urn:uuid:80d0506-30d-104-10c-9020201e0a -- Jean Jordaan Upfront Systems http://www.upfrontsystems.co.za From uche.ogbuji at fourthought.com Tue Sep 17 10:55:28 2002 From: uche.ogbuji at fourthought.com (Uche Ogbuji) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] 4Suite installation In-Reply-To: Message from Jeremy Rew of "Tue, 17 Sep 2002 10:24:30 +0800." <5.1.1.6.0.20020917101409.00b36210@localhost> Message-ID: For the edification of others: http://lists.fourthought.com/pipermail/4suite/2002-September/004372.html --Uche > I have 4suite 0.12.0a2 and am using python 2.1.3 (came with Zope). I am > trying to install it, only to run into the following errors: > > rendering build/docs/xml/modules/Ft.Lib.DistExt.xml -> > build/docs/html/modules/Ft.Lib.DistExt.html > Traceback (most recent call last): > File "/tmp/@12164.0.py", line 636, in ? > cmd.run() > File "build/lib.linux-i686-2.1/Ft/Lib/DistExt/BuildDocs.py", line 248, > in run > self.render_doc(doc) > File "build/lib.linux-i686-2.1/Ft/Lib/DistExt/BuildDocs.py", line 462, > in render_doc > raise DistutilsFileError, \ > distutils.errors.DistutilsFileError: could not render > 'build/docs/html/modules/Ft. > Lib.DistExt.html': this constructor takes no arguments > error: command '/usr/Zope-2.5.1-linux2-x86/bin/python' failed with exit > status 1 > > everytime I run the install, it stops at each successive html and txt file > with the same message. This seems to be documentation files (?). if so, is > there any way to skip the installation of the doc and download it seperately? > > Could anyone please help with this problem? > > Jeremy > > > _______________________________________________ > Zope-xml mailing list > Zope-xml@zope.org > http://lists.zope.org/mailman/listinfo/zope-xml > From uche.ogbuji at fourthought.com Tue Sep 17 11:01:42 2002 From: uche.ogbuji at fourthought.com (Uche Ogbuji) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] DocBook and XML Transform: select="document('../common/l10n.xml')" In-Reply-To: Message from Jean Jordaan of "Tue, 17 Sep 2002 10:52:56 +0200." <3D86ED68.1010301@upfrontsystems.co.za> Message-ID: > Hi Craeg > > > That is exactly the same error message I got with 4Suite using a version > > prior to the CVS > > snapshot of 9/10/2002 (when the fix was applied), namely: > > I'm using 2002-09-10-4Suite.tar.gz , but I'll try the latest. FYI, all. I'm wrapping up and testing my last feature to be added before 4Suite 0.12.0. Other developers have already frozen. From here on it will be testing, bug fixes, docs. This should help Craeg with more consistent packaging. Thanks for your patience. -- Uche Ogbuji Fourthought, Inc. http://uche.ogbuji.net http://4Suite.org http://fourthought.com Apache 2.0 API - http://www-106.ibm.com/developerworks/linux/library/l-apache/ Basic XML and RDF techniques for knowledge management, Part 7 - http://www-106.ibm.com/developerworks/xml/library/x-think12.html Keeping pace with James Clark - http://www-106.ibm.com/developerworks/xml/library/x-jclark.html From kvthan at wm.edu Tue Sep 17 14:48:28 2002 From: kvthan at wm.edu (kapil thangavelu) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] Upload an XML file from web In-Reply-To: <3D86C214.1090700@loisant.org> References: <3D86C214.1090700@loisant.org> Message-ID: <200209171148.28994.kvthan@wm.edu> On Monday 16 September 2002 10:48 pm, Erwan Loisant wrote: > Hello. > > I recently came to Zope and I need to get an XML file from user. That > means user will not upload the file from Zope management interface but > directly from the website I designed. > > I downloaded and installed ParsedXML, which seems to be a good product > for XML management. > > I looked in the doc and I've seen a dtml manage_addFile() function, > manage_addImage() function, and a function for each Zope base object. > > Is there such a method to add ParsedXML files ? the generic way of adding products is, context.manage_addProduct['ProductName'].manage_addProductFactoryName(args) the actual factory name and args is idiosyncratic to the particular product, a quick source inspection reveals the answer. >Or is it better to > upload it as file then parse it once it is a file object ? depends on what you want to do with it. if you want to use various xml tech. with it such as xpath/xslt than its probably better to keep it in a parsed xml object (assuming the tool(s) for using those technologies support parsed xml). personally, i'm an xml luddite, so i generally convert from xml to an object model via sax. hth, kapil From sean.upton at uniontrib.com Mon Sep 23 11:59:58 2002 From: sean.upton at uniontrib.com (sean.upton@uniontrib.com) Date: Sun Aug 10 16:54:52 2008 Subject: [zope-xml] Plz help me out in XML field index search using ZC atalog for numeric data Message-ID: You should consider using ParsedXML instead of XMLDocument... The latter is depreciated. Also, you should direct further list correspondence to zope-xml@zope.org, since zope-xml@yahoogroups.com has been depreciated and not in use for over a year. That said, I think your best option is to write Python scripts that use DOM methods to get the data you are interested in, convert it to the format you are interested in, and index those methods of your document, instead of trying to directly index values of nodes themselves. Sean -----Original Message----- From: Santosh Sawant [mailto:santee_sawant@yahoo.co.in] Sent: Sunday, September 22, 2002 11:47 PM To: zope-xml@yahoogroups.com Subject: [zope-xml] Plz help me out in XML field index search using ZCatalog for numeric data Hi! I am using XML document product and ZCatalog.... for my web based search utility.... I can search my XML data as per input.... but unable to show numeric data in search results.... My xml file structure is.... I don't know how to create field index for xml data file which can store numeric data as text index ignores double quotes, capital letters(converts to lower case) and numbers. Thanking you in advance. With best regards, Santee ------------------------ Yahoo! Groups Sponsor ---------------------~--> Home Selling? Try Us! http://us.click.yahoo.com/QrPZMC/iTmEAA/ySSFAA/2U_rlB/TM ---------------------------------------------------------------------~-> To Post a message, send it to: zope-xml@eGroups.com To Unsubscribe, send a blank message to: zope-xml-unsubscribe@eGroups.com Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ From ed at greengraphics.net Wed Sep 25 07:45:09 2002 From: ed at greengraphics.net (Ed Colmar) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] zope <> flash Message-ID: I'm a newbie to flash, so please pardon any silly questions. What is the most painless way to get data into and out of flash? I've found several xml-rpc documents (and I'm already a xml-rpc fan): http://www.zope.org/Members/ike/Flash-Zope/FLASH_xmlrpc_zope http://sourceforge.net/projects/xmlrpcflash Is there an easier way? I'm hesitant to use the swiftgenerator, as that seems less than ideal. I know flash can POST directly into dtml/sql methods, but can it do anything with the results? Thanks for any ideas! -ed- -- Green Graphics ::: Print and Web Design ::: 510.923.0000 From jtsitedesigns at yahoo.com Sat Sep 28 12:50:23 2002 From: jtsitedesigns at yahoo.com (John Tynan) Date: Sun Aug 10 16:54:52 2008 Subject: [Zope-xml] Getting Started with nXMLDocument Message-ID: <20020928165023.46217.qmail@web11507.mail.yahoo.com> Thanks to the good advice from the people on the freezope discussion list, I have recently installed the nXMLDocument product and have set up an xml file and xsl template at: http://kjzz.org:8080/kjzzredesign/xml/conference.xml?stylesheet=stylesheet Due to my limited experience with xml, I am not sure if this is working properly. If anyone here has experience with nXMLDocument and could help me resolve some issues with what I am trying to do, that would be great. I would gladly submit anything that I find out to be included in the documentation for nXMLDocument. Sincerely, John T. __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com