[XML-SIG] specifying xsl:version number with 4xslt
Jed Parsons
jedp at ilm.com
Tue Jun 24 10:31:03 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
The build commands were:
> python setup.py build
> python setup.py install --home=/home/jedp
Thanks as always for any suggestions,
j
Uche Ogbuji writes:
> >
> > I'm so confused. Stylesheets I used with 4Suite 0.12.0a2 break with
> > 0a3. For example, with the following two files:
> >
> > ---- file: dummy.xml ----
> > <?xml version='1.0'?>
> > <foo/>
> >
> > ---- file: test.xsl ----
> > <?xml version="1.0" ?>
> > <xsl:stylesheet
> > xsl:version="1.0"
> > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> > >
> > <!-- what's wrong with my version number? -->
> > </xsl:stylesheet>
>
> Hmmm? This should never have worked with any version of 4Suite 0.12.0. It is
> invalid XSLT. You mean
>
> <?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>
>
> You only qualify the version name if you're using literal result as element
> (if you're not familiar with that trick, don't give it a thought :-) ).
>
> BTW a newer version is out: 1.0a1.
>
>
> --
> 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
>
--
Jed Parsons / Industrial Light + Magic : 415.448.2974
grep(do{for(ord){$o+=$_&7;grep(vec($j,+$o++,1)=1,5..($_>>3||print"$j\n"))}},
(split(//,"))*))2+29*2:.*4:1A1+9,1))2*:..)))2*:31.-1)4131)1))2*:\7Glug!")));
More information about the XML-SIG
mailing list