[XML-SIG] 4xslt not installed?
Fri, 07 Jun 2002 12:43:45 -0600
> On Thu, Jun 06, 2002 at 11:59:38PM -0600, Matt Gushee wrote:
> > What version of 4Suite did you install? Unfortunately, 0.11.x and
> > earlier don't work with PyXML 0.7. That incompatibility could account
> > for your import error.
> > > import Ft.Xml.Xslt
> I installed 0.11x because I was told that 0.12 had a bug with
> python 2.2.
Huh? Who said that? I said that 0.11.1 is what has a bug with 2.2. 0.12.0
works just fine.
> So I assumed I had to install python 2.13, then
> install 4Suite 0.11.
> I read the README when I installed PyXML, and it said that there
> could be a conflict with Xpath and Xslt in the PyXML suite, and
> and Xpath and Xslt in the 4Suite. The solution, it said, was to
> build like this:
> python setup.py build --without-xpath --without-xslt
> python setup.py install --without-xpath --without-xslt
> This is what I did.
Then I'm not sure why you're having an import problem. I certainly can't
reproduce it. Is there any other info you can offer?
> > Actually, I think xsltproc is backwards. Every other XSLT processor
> > I know of, including 4XSLT, does it:
> > <xsltcommand> document.xml stylesheet.xsl
> I enter
> $ 4xslt test.xml test.xsl
> I get an error message, which I included below.
> Traceback (most recent call last):
> File "/usr/local/bin/4xslt", line 3, in ?
> File "/usr/local/lib/python2.1/site-packages/Ft/Lib/CommandLine/CommandLineApp.py", line 87, in run
> File "/usr/local/lib/python2.1/site-packages/Ft/Lib/CommandLine/Command.py", line 83, in run_command
> self.function(self.clOptions, self.clArguments)
> File "/usr/local/lib/python2.1/site-packages/_xmlplus/xslt/_4xslt.py", line 106, in Run
> File "/usr/local/lib/python2.1/site-packages/_xmlplus/xslt/Processor.py", line 101, in appendStylesheetUri
> sty = self._styReader.fromUri(styleSheetUri, baseUri)
> File "/usr/local/lib/python2.1/site-packages/_xmlplus/xslt/StylesheetReader.py", line 579, in fromUri
> ownerDoc, stripElements)
> File "/usr/local/lib/python2.1/site-packages/Ft/Lib/ReaderBase.py", line 76, in fromUri
> rt = self.fromStream(stream, newBaseUri, ownerDoc, stripElements)
> File "/usr/local/lib/python2.1/site-packages/_xmlplus/xslt/StylesheetReader.py", line 622, in fromStream
> File "/usr/local/lib/python2.1/site-packages/_xmlplus/xslt/Stylesheet.py", line 140, in setup
> File "/usr/local/lib/python2.1/site-packages/_xmlplus/xslt/Stylesheet.py", line 183, in _setupChildNodes
> File "/usr/local/lib/python2.1/site-packages/_xmlplus/xslt/VariableElement.py", line 30, in setup
> self._name = Util.ExpandQName(name_attr, namespaces=self._nss)
> File "/usr/local/lib/python2.1/site-packages/_xmlplus/xpath/Util.py", line 83, in ExpandQName
> split_name = (nss[prefix], local)
This is the clash between 4Suite 0.11.1 and PyXML 7.1 that was pointed out.
OK. This is probably more complex than it should be, but here it is in a
Python 2.1 + 4Suite 0.11.1 + PyXML 0.6.6
Python 2.0, 2.1 or 2.2 + 4Suite 0.12.0 + (optionally PyXML 0.7.1)
Uche Ogbuji Fourthought, Inc.
http://uche.ogbuji.net http://4Suite.org http://fourthought.com
Track chair, XML/Web Services One (San Jose, Boston):
DAML Reference - http://www.xml.com/pub/a/2002/05/01/damlref.html
The Languages of the Semantic Web - http://www.newarchitectmag.com/documents/s=
XML, The Model Driven Architecture, and RDF @ XML Europe -