[Zope-xml] Re: Trying to get 4Suite and XMLTransform up and running
Craeg K Strong
cstrong at arielpartners.com
Tue Sep 10 23:50:41 EDT 2002
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: """
> <?xml version="1.0"?>
> <!DOCTYPE Document>
> <Document>Hello, <subthing>subting</subthing>
> </Document>
> """
>
> registry/simple.xsl: """
> <?xml version="1.0"?>
> <xsl:stylesheet
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
> <xsl:output method="text"/>
> <xsl:include href="included.xsl" />
> <xsl:template match="document"> <xsl:apply-templates/>
> </xsl:template>
> </xsl:stylesheet>
> """
>
> registry/included.xsl: """
> <?xml version="1.0"?>
> <xsl:stylesheet
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
> <xsl:output method="html"/>
> <xsl:template match="subthing">
> <div class="subthing"> Included! <xsl:apply-templates /> </div>
> </xsl:template>
> </xsl:stylesheet>
> """
>
> 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:
> <Products.XMLTransform.FourSuite12Processor.ResolvingInputSource
> 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 at blommie XMLTransform $ cat version.txt
> 0-8-0
> jean at 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 at 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 $
More information about the Zope-xml
mailing list