[Zope-xml] Trying to get 4Suite and XMLTransform up and running
Jean Jordaan
jean at upfrontsystems.co.za
Wed Sep 11 02:57:07 EDT 2002
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
More information about the Zope-xml
mailing list