[XML-SIG] 4xslt not installed?

Paul Tremblay phthenry@earthlink.net
Fri, 7 Jun 2002 12:50:56 -0400

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. 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.

> 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)


*Paul Tremblay         *