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

2008-03-22 Thread Michael Koch
reassign 470823 gcj-4.3 4.3.0-1
notfound 470823 9.0-3
thanks

On Thu, Mar 13, 2008 at 08:53:28PM +0100, Jakub Wilk wrote:
 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, *)'/
/xsl:template
 /xsl:stylesheet
 
 $ cat index.xml
 root/
 
 $ java -cp /usr/share/java/saxonb.jar net.sf.saxon.Transform index.xml 
 buggy.xsl; echo
 abracada*

That's a bug in GCJ. IT works fine with SUN JDK 6. Reassigning the bug.
I havent looked into the saxonb sources for this but I bet this is a
bug in the regexp implemented of GNU classpath.


Cheers,
Michael



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



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

2008-03-13 Thread Jakub Wilk

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, *)'/
  /xsl:template
/xsl:stylesheet

$ cat index.xml
root/

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


[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-4lightweight and fast library using
ii  libxom-java 1.1-2A new XML object model for Java

libsaxonb-java recommends no packages.

-- no debconf information

--
Jakub Wilk



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]