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=9441>. 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=9441 normalize-space() deletes an inner space ------- Additional Comments From [EMAIL PROTECTED] 2002-06-06 13:55 ------- To check whether multiple text nodes are the reason for the problem, I have tried the following modified stylesheet which essentially adds a rule to enclose text nodes in brackets: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="p"> <html><body><xsl:apply-templates/></body></html> </xsl:template> <xsl:template match="text()"> <xsl:text>(</xsl:text> <xsl:value-of select="normalize-space()"/> <xsl:text>)</xsl:text> </xsl:template> </xsl:stylesheet> However, the output is <?xml version="1.0" encoding="UTF-8"?> ()<html><body>(a b c d e f g h i j k l m n o pq r s t u v w x y z)</body></html>() and thus does not contain brackets between p and q of the form "... p)(q ...". Furthermore, I have tried the original test on an NT4 machine with java version "1.2.2" Classic VM (build JDK-1.2.2-W, native threads, symcjit) using the command line java -cp xalan.jar;xercesImpl.jar;xml-apis.jar org.apache.xalan.xslt.Process -IN normalize-space.xml -OUT normalize-space.html Apart from the added MS-style CRs at the line ends the result is identical to the original one, i.e. p and q are glued together. >From this I conclude that the problem is not too system-dependent.
