GNOME Bugzilla – Bug 55723
xsl:element mis-handles qname in name attribute
Last modified: 2009-08-15 18:40:50 UTC
The following xsl: <?xml version='1.0'?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:a="http://a"> <xsl:template match="*"> <xsl:element name="{name()}"/> </xsl:template> </xsl:stylesheet> Given the following input: <a:a xmlns:a="http://a"/> Should produce (according to http://www.w3.org/TR/xslt.html#section-Creating-Elements-with-xsl:element): <?xml version="1.0" encoding="utf-8"?> <a:a xmlns:a="http://a"/> But instead produces: <?xml version="1.0"?> <a/> Steve
Okay fixed ... this was related to a problem generating the namespace when the current insertion node in the generated document is the document node. orchis:~/XSLT/tests/general -> xsltproc bug-35-.xsl ../docs/bug-35-.xml <?xml version="1.0"?> <a:a xmlns:a="http://a"/> orchis:~/XSLT/tests/general -> http://cvs.gnome.org/bonsai/cvsquery.cgi?module=libxslt&branch=HEAD&branchtype=match&dir=libxslt&file=&filetype=match&who=veillard&whotype=match&sortby=Date&hours=&date=explicit&mindate=06%2F10%2F01+15%3A54&maxdate=06%2F10%2F01+15%3A54&cvsroot=%2Fcvs%2Fgnome thanks for the report and the example ! Daniel
One more bug which should be closed in 0.12.0, Daniel