Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • L libxslt
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 14
    • Issues 14
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • libxslt
  • Issues
  • #2
Closed
Open
Issue created Jun 13, 2018 by Ghost User@ghost

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?

Assignee
Assign to
Time tracking