[xslt] Segmentation fault (namespace axis)



I do some work an XML - files with mixed
xhtml an xfroms namspaces.

I think my example is wrong, but I couldn't
find a working example and there is a seg fault.

Questions:
========
Is there a working example with namespace axis?
Is this the place to report Segmentation fault errors?

The broken example:
===============

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
        version="1.0"
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        xmlns:libxslt="http://xmlsoft.org/XSLT/namespace"
        xmlns:test1="http://www.test1.com"
        xmlns:test2="http://www.test2.com"
        >
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
 
<xsl:template match="/all/*">
        <xsl:for-each select="namespace::*">
                <xsl:copy-of select="."/>
        </xsl:for-each>
</xsl:template>
 
</xsl:stylesheet>

bz@linuxdaheim:~/firma/technisches/xforms/namespaces$ more test.xml
<?xml version="1.0"?>
<all>
<one xmlns="http://www.test1.com">1</one>
<two xmlns="http://www.test2.com">2</two>
</all>

bz@linuxdaheim:~/firma/technisches/xforms/namespaces$ xsltproc -V
Using libxml 20400 and libxslt 10000
xsltproc was compiled against libxml 20400 and libxslt 10000
libxslt 10000 was compiled against libxml 20400

bz@linuxdaheim:~/firma/technisches/xforms/namespaces$ xsltproc test.xsl 
test.xml
Segmentation fault




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]