Problem with 4Dom xslt processor

Sunit Joshi sjoshi at ingr.com
Tue Feb 19 15:56:43 CET 2002


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'



More information about the Python-list mailing list