DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5357>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5357

Function substring() doesn't work with http://www.w3.org/1999/XSL/Transform





------- Additional Comments From [EMAIL PROTECTED]  2001-12-12 08:59 -------
This is exactly what I do on the command line:

carina:/export/home/software/XML/linux> file testXSLT
testXSLT: ELF 32-bit LSB executable, Intel 80386, version 1, dynamically linked 
(uses shared libs), not stripped
carina:/export/home/software/XML/linux> ldd testXSLT
        libxalan-c1_2.so => ./libxalan-c1_2.so (0x40018000)
        libxerces-c1_5_1.so => ./libxerces-c1_5_1.so (0x404c8000)
        libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 
(0x4074d000)
        libm.so.6 => /lib/libm.so.6 (0x40796000)
        libc.so.6 => /lib/libc.so.6 (0x407b3000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x408bf000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
carina:/export/home/software/XML/linux> testXSLT -Q -IN pp.xml -XSL pp.xsl -OUT 
pp.html

XSLException Type is: XSLTProcessorException
Message is: The substring() function takes two or three arguments! 
(file:///home/software/XML/linux/pp.xsl, line 9, column 58)
carina:/export/home/software/XML/linux> cat pp.xsl
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:template match="/">
<html>
   <xsl:apply-templates>
   </xsl:apply-templates>
</html>
</xsl:template>
   <xsl:template match="root">
      <xsl:value-of select='substring(descripcion,1,10)'></xsl:value-of>
   </xsl:template>
</xsl:stylesheet>
carina:/export/home/software/XML/linux> cat pp.xml
<?xml version="1.0" encoding="UTF-8"?>
<root>
   <descripcion>Esta es la descripcion</descripcion>
</root>
carina:/export/home/software/XML/linux>

Remember that I downloaded many source files of Xalan 1.2 of the Repositorie 
because of my last problem with XalanTransformer::transform() and I recompiled 
it. This is, my Xalan 1.2 isn't the release or stable version.
My previous version of Xalan was 1.1 and Xerces was 1.4 and it works fine.

My host is LINUX

Thanks

Reply via email to