Anybody using 4suite for xslt processing?

Marko Faldix mf at mrinfo.de
Fri Jul 19 10:44:54 EDT 2002


Hi,

sometimes I think I am first man on earth want to process xslt.

I got python on windows 2000 Server with iis and 4suite, I could change to
linux if necessary.


The following script:

###############################################

from Ft.Xml.Xslt import Processor

xslfilename = "abc.xsl"
xmlfilename = "abc.xml"

path = "C:\\serverdirectory\\me\\python\\"


xslfile = path+xslfilename
xmlfile = path+xmlfilename


processor = Processor.Processor()

processor.appendStylesheetUri(xslfile)

result = processor.runUri(xmlfile)


print 'Content-type: text/html\n'
print result

###############################################

throws this in browser:


::: Using minidom
Traceback (most recent call last):
  File "C:\home\marko\python\bxslt.py", line 15, in ?
    processor.appendStylesheetUri(xslfile)
AttributeError: Processor instance has no attribute 'appendStylesheetUri'


But documentation contains method 'appendStylesheetUri'. Somebody any idea?
I am at the point that installation is ready and try to process our first
xslt to see that it can be used for it.


--
Marko Faldix
M+R Infosysteme
Hubert-Wienen-Str. 24     52070 Aachen
Tel.: 0241-93878-16     Fax.:0241-875095
E-Mail: marko.faldix at mplusr.de








More information about the Python-list mailing list