[XML-SIG] Fwd: Problem with 4Dom xslt processor

Sylvain Thenault thenault@isty-info.uvsq.fr
Wed, 27 Feb 2002 16:55:14 +0100 (CET)


On Mon, 25 Feb 2002 Alexandre.Fayolle@logilab.fr wrote:

>
> I'm forwarding this message from c.l.p., in hope it will be answered
> here.
>
> Alexandre Fayolle
> ----------------------------------------------------
> From: sjoshi@ingr.com (Sunit Joshi)
> Newsgroups: comp.lang.python
> Subject: Problem with 4Dom xslt processor
> Date: 19 Feb 2002 06:56:43 -0800
>
> Hello all
> I'm trying to use the 4DOM's xslt processor I keep getting this error
> (below) when trying to append a stylesheet. Any pointers are greatly
> appreciated.
>
> thanks
> Sunit
>
> >>> from xml.xslt.Processor import Processor
> >>> proc = Processor()
> >>> proc
> <xml.xslt.Processor.Processor instance at 007E45D4>
> >>> proc.appendStylesheetUri('ships.xsl')
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File "C:\Python21\_xmlplus\xslt\Processor.py", line 95, in
> appendStylesheetUri
>
>     sty = self._styReader.fromUri(styleSheetUri, baseUri)
>   File "C:\Python21\_xmlplus\xslt\StylesheetReader.py", line 297, in
> fromUri
>     ownerDoc, stripElements)
>   File "C:\Python21\_xmlplus\xslt\minisupport.py", line 58, in fromUri
>     return self.fromStream(stream, baseUri, ownerDoc, stripElements)
>   File "C:\Python21\_xmlplus\xslt\StylesheetReader.py", line 304, in
> fromStream
>     self.initParser()
>   File "C:\Python21\_xmlplus\xslt\StylesheetReader.py", line 344, in
> initParser
>     if self._force8Bit:
> AttributeError: StylesheetReader instance has no attribute
> '_force8Bit'

I have fixed this bug in the PyXMl CVS a few weeks ago

-- 
Sylvain Thenault