[XML-SIG] specifying xsl:version number with 4xslt

Uche Ogbuji uche.ogbuji at fourthought.com
Sun Jun 29 23:44:57 EDT 2003


> 
> > Hmmm?  This should never have worked with any version of 4Suite
> > 0.12.0.  It is invalid XSLT.
> 
> Oops.  Here you see me experimenting desperately. :) But the correctly
> non-qualified version number doesn't work either for me.  Same error
> with the following xsl file:
> 
> ------------------------------------------------------------
> <?xml version="1.0" ?>
> <xsl:stylesheet
>     version="1.0"
>     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>     >
>         <!-- what's wrong with my version number? -->
> </xsl:stylesheet>
> ------------------------------------------------------------
> 
> I tried installing 1.0a1, but am having some trouble:
> 
> > python
> Python 2.1.3 (#1, Apr 22 2002, 18:24:35) 
> [GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-98)] on linux2
> Type "copyright", "credits" or "license" for more information.
> >>> import Ft.Xml.Xslt
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File "/home/jedp/lib/python/Ft/Xml/Xslt/__init__.py", line 72, in ?
>     import XPatternParser
>   File "/home/jedp/lib/python/Ft/Xml/Xslt/XPatternParser.py", line 698, in ?
>     from Ft.Xml.XPath import ParsedAbbreviatedAbsoluteLocationPath
>   File "/home/jedp/lib/python/Ft/Xml/XPath/ParsedAbbreviatedAbsoluteLocationPath.py", line 16, in ?
>     from Ft.Xml.XPath import Util
> ImportError: cannot import name Util

I'm not sure what's going on here.  First I've ehard of such a problem.  Then 
again, Python 2.1 blows up under some circular import situatrions that Python 
2.2 handles OK.  Then again I and others have used 4XSLT 1.0a1+ just fine 
under python 2.1.

If you try the offending import directly, does it work?


-- 
Uche Ogbuji                                    Fourthought, Inc.
http://uche.ogbuji.net    http://4Suite.org    http://fourthought.com
XML Data Bindings in Python - http://www.xml.com/pub/a/2003/06/11/py-xml.html
Introducing Examplotron - http://www-106.ibm.com/developerworks/xml/library/x-x
mptron/
Charming Jython - http://www-106.ibm.com/developerworks/java/library/j-jython.h
tml
The commons of creativity - http://www-106.ibm.com/developerworks/xml/library/x
-think18.html
A custom-fit career in app development - http://www.adtmag.com/article.asp?id=7
744





More information about the XML-SIG mailing list