[XML-SIG] specifying xsl:version number with 4xslt
Jed Parsons
jedp at ilm.com
Mon Jun 30 10:32:40 EDT 2003
Hi, Uche,
> If you try the offending import directly, does it work?
Ah - that gives me this:
>>> from Ft.Xml.XPath import Util
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/home/jedp/lib/python/Ft/Xml/XPath/__init__.py", line 122, in ?
from Util import NormalizeNode
File "/home/jedp/lib/python/Ft/Xml/XPath/Util.py", line 17, in ?
from Ft.Xml import Domlette, XML_NAMESPACE, XMLNS_NAMESPACE, EMPTY_NAMESPACE
File "/home/jedp/lib/python/Ft/Xml/Domlette.py", line 33, in ?
from cDomlette import implementation, nonvalParse, valParse
File "/home/jedp/lib/python/Ft/Xml/cDomlette.py", line 16, in ?
import cDomlettec
ImportError: Expat version mismatch; expected 1.95.6, found 1.95.2
Er, how do I swap in a more current Expat?
Thanks for all your help,
Jed
On Sun, Jun 29, 2003 at 10:44:57PM -0600, Uche Ogbuji wrote:
> >
> > > 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
>
>
>
> _______________________________________________
> XML-SIG maillist - XML-SIG at python.org
> http://mail.python.org/mailman/listinfo/xml-sig
--
Jed Parsons Industrial Light + Magic (415) 448-2974
grep(do{for(ord){(!$_&&print"$s\n")||(($O+=(($_-1)%6+1)and
grep(vec($s,$O++,1)=1,1..int(($_-6*6-1)/6))))}},(split(//,
"++,++2-27,280,481=1-7.1++2,800+++2,8310/1+4131+1++2,80\0. What!?")));
More information about the XML-SIG
mailing list