[Zope-xml] Trying to get 4Suite and XMLTransform up and running
Jean Jordaan
jean at upfrontsystems.co.za
Tue Sep 10 11:47:44 EDT 2002
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 $
--
Jean Jordaan
Upfront Systems http://www.upfrontsystems.co.za
More information about the Zope-xml
mailing list