[lxml-dev] Using EXSLT extensions on Windows with standard lxml binaries
Stefan Behnel
stefan_ml at behnel.de
Thu Feb 28 18:30:29 CET 2008
Hi,
Alexander Kozlovsky wrote:
> I'm trying to use EXSLT extension functions on Windows
> with standard lxml binary distribution (lxml-1.3.6.win32-py2.4.exe)
>
> I'm trying to do the next, but it is not work as expected:
>
> <?xml version="1.0"?>
> <xsl:stylesheet version = '1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
> xmlns:str="http://exslt.org/strings" extension-element-prefixes="str">
>
> <xsl:template match="body">
> <body>
> <h1 class="{str:replace('abc', 'b', 'x')}">test</h1>
> </body>
> </xsl:template>
>
> </xsl:stylesheet>
>
> Is it possible to use EXSLT extensions on Windows without rebuilding
> of standard binaries?
I just checked the release notes of libxslt. They say that str:replace was
"improved" in libxslt 1.1.20. However, my tests show that it does not work in
any version before 1.1.21, so I assume the binary build uses 1.1.20 or an
older version.
http://xmlsoft.org/XSLT/news.html
Stefan
More information about the lxml-dev
mailing list