Hi, whats wrong with: <?xml version="1.0"?> <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xsl:template match="/"> <xsl:value-of select="xs:date('2010-01-01') - xs:dayTimeDuration('P1D')" /> </xsl:template> </xsl:stylesheet> as I get: result_tree = transform(doc) File "xslt.pxi", line 599, in lxml.etree.XSLT.__call__ (src/lxml/lxml.etree.c:153823) lxml.etree.XSLTApplyError: XPath evaluation returned no result. regards Henrik
Hi,
Von: "Henrik Genssen" <hg@mediafactory.de> An: lxml@lxml.de,
whats wrong with: <?xml version="1.0"?> <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xsl:template match="/"> <xsl:value-of select="xs:date('2010-01-01') - xs:dayTimeDuration ('P1D')" /> </xsl:template> </xsl:stylesheet>
as I get: result_tree = transform(doc) File "xslt.pxi", line 599, in lxml.etree.XSLT.__call__ (src/lxml/ lxml.etree.c:153823) lxml.etree.XSLTApplyError: XPath evaluation returned no result.
lxml does not support XPath or XSLT 2, as libxml2/libxslt don't support it. And I haven't seen signs that libxml2 will ever support it...has anyone? Alas, there's an ongoing Saxonica effort for providing a C-variant of Saxon, albeit using a proprietary java compiler tool, see http://www.saxonica.com/saxon-c/index.xml. Here's a (quite old) blog entry by Stefan that may still be of help: http://blog.behnel.de/index.php?p=12 Regards Holger Landesbank Baden-Wuerttemberg Anstalt des oeffentlichen Rechts Hauptsitze: Stuttgart, Karlsruhe, Mannheim, Mainz HRA 12704 Amtsgericht Stuttgart
participants (2)
-
Henrik Genssen
-
Holger Joukl