[Zope-xml] Trying to get 4Suite and XMLTransform up and running

Craeg Strong cstrong at arielpartners.com
Wed Sep 11 14:29:02 EDT 2002


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





More information about the Zope-xml mailing list