Bug#470823: libsaxonb-java: fn:replace() does not work as expected

Jakub Wilk ubanus at users.sf.net
Thu Mar 13 19:53:28 UTC 2008

Package: libsaxonb-java
Version: 9.0-3
Severity: normal

replace("abracadabra", "bra", "*") returns "abracada*", but according to 
[1] it should return "a*cada*":

$ cat buggy.xsl
<xsl:stylesheet version='2.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
   <xsl:output method='text'/>
   <xsl:template match='/'>
     <xsl:value-of select='replace("abracadabra", "bra", "*")'/>

$ cat index.xml

$ java -cp /usr/share/java/saxonb.jar net.sf.saxon.Transform index.xml buggy.xsl; echo

[1] http://www.w3.org/TR/xquery-operators/#function-replace

-- System Information:
Debian Release: lenny/sid
   APT prefers testing
   APT policy: (900, 'testing'), (600, 'unstable'), (500, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libsaxonb-java depends on:
ii  gij-4.2 [java1-runtime]     4.2.1-5      The GNU Java bytecode interpreter
ii  java-gcj-compat [java2-runt 1.0.77-4     Java runtime environment using GIJ
ii  libdom4j-java               1.6.1+dfsg-2 flexible XML framework for Java
ii  libjdom1-java               1.0-4        lightweight and fast library using
ii  libxom-java                 1.1-2        A new XML object model for Java

libsaxonb-java recommends no packages.

-- no debconf information

Jakub Wilk

More information about the pkg-java-maintainers mailing list