[XML-SIG] [XLST PyXML-0.7-1] bug request 510080 still alive ?

Uche Ogbuji uche.ogbuji@fourthought.com
Fri, 08 Feb 2002 19:12:12 -0700


The following patch to the cookbook sample given works with 4Suite 0.12.0a1, 
or current CVS

$ diff -u cook.py cook-new.py 
--- cook.py	Fri Feb  8 19:04:36 2002
+++ cook-new.py	Fri Feb  8 19:10:15 2002
@@ -1,5 +1,5 @@
-from xml.xslt.Processor import Processor
-from xml.xslt.StylesheetReader import StylesheetReader
+from Ft.Xml.Xslt.Processor import Processor
+from Ft.Xml.Xslt.StylesheetReader import StylesheetReader
 
 class StylesheetFromDict(StylesheetReader):
     "A stylesheet reader that loads XSLT stylesheets from a python dictionary"
@@ -20,11 +20,10 @@
         if parts[0] == 'internal' and self.styles.has_key(parts[1]):
             # load the stylesheet from the internal repository (our dict)
             return StylesheetReader.fromString(self, self.styles[parts[1]],
-                baseUri, ownerDoc, stripElements)
+                baseUri)
         else:
             # revert to normal behaviour
-            return StylesheetReader.fromUri(self, uri,
-                baseUri, ownerDoc, stripElements)
+            return StylesheetReader.fromUri(self, uri, baseUri)
 
 if __name__ == "__main__":
     # the sample stylesheet repository




$ python cook-new.py 
::: Using cDomlette
<?xml version='1.0' encoding='UTF-8'?>
<person>Guido van Rossum</person>


-- 
Uche Ogbuji                               Principal Consultant
uche.ogbuji@fourthought.com               +1 303 583 9900 x 101
Fourthought, Inc.                         http://Fourthought.com 
4735 East Walnut St, Boulder, CO 80301-2537, USA
XML strategy, XML tools (http://4Suite.org), knowledge management