localRVT not head of list/Unexpected RVT flag (nil)
After upgrading my debian testing I got a new xsltproc version which is broken. I think the bug was introduced here 470b1734
My xsltproc version is:
Using libxml 20904, libxslt 10132 and libexslt 820
xsltproc was compiled against libxml 20904, libxslt 10132 and libexslt 820
libxslt 10132 was compiled against libxml 20904
libexslt 820 was compiled against libxml 20904
Minimal example:
bug.xml:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:str="http://exslt.org/strings"
xmlns:fn="http://exslt.org/functions"
xmlns:adoc="http://asciidoc.org/"
extension-element-prefixes="fn">
<fn:function name="adoc:sanitize">
<xsl:param name="id"/>
<xsl:variable name="tmp" select="str:replace($id, '__', '_')"/>
<xsl:choose>
<xsl:when test="contains($tmp, '__')">
<fn:result select="adoc:sanitize($tmp)"/>
</xsl:when>
<xsl:otherwise>
<fn:result select="$id"/>
</xsl:otherwise>
</xsl:choose>
</fn:function>
<fn:function name="adoc:sanitize2">
<xsl:param name="id"/>
<xsl:choose>
<xsl:when test="contains($id, '__')">
<fn:result select="adoc:sanitize(str:replace($id, '__', '_'))"/>
</xsl:when>
<xsl:otherwise>
<fn:result select="$id"/>
</xsl:otherwise>
</xsl:choose>
</fn:function>
<xsl:template match="*">
<!-- test 1 -->
<xsl:value-of select="adoc:sanitize(adoc:sanitize('_______'))"/>
<!-- test 2 -->
<xsl:value-of select="adoc:sanitize2(adoc:sanitize2('_______'))"/>
</xsl:template>
</xsl:stylesheet>
bug.xml
<foo/>
Is this the right place for the bug report or should it submitted to bugzilla?