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=4546>.
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=4546

normalize-space does not properly handle text data





------- Additional Comments From [EMAIL PROTECTED]  2002-03-22 21:18 -------
I am seeing this bug with the following data and configuration.
I'm using the xalan-j_20020322 nightly build with a SUN 1.3 JDK on NT.
The input file is listed below. I have noticed that the behavior
is delicately dependent on the contents of this file (Not just of the
problem string); these elements are on single lines in the test case.
The output file is also listed: note that the 
phrase "allfaculty designers" has replaced "all faculty designers".
The XSL file is list last; it is a snippet, but serves to reproduce
the problem. 

INPUT FILE:
------------------
<?xml version="1.0" encoding="UTF-8"?>
<training-program name="UNIVERSITY OF ARIZONA" region="Southwestern" 
state="Unknown" revised="" author="">
<head><title>uarizona</title>
</head>

   <degree-program degree="BFA/BA" area="in Theatre with Costume Emphasis, 
Design/Technology"/>
   <degree-program degree="MFA" area="Design , Technology"/>

   <faculty name="Nanalee Raphael" area="Design"/>
   <faculty name="Richard Tuckett --Shop Manager, Costume Technology"/>
   <faculty name="Al Tucci, Design"/>

   <staff name="Overhire of wigmakers, drapers, and stitchers as the season 
dictates"/>
   <focus desc="Design"/>
   <focus desc="Pattern making and Draping"/>
   <statement>
   <paragraph>Intensive coursework and practical production experiences in 
costume design and technology everysemester. Emphasis on research,development of 
creativity, use of traditional and electronic technology. Guest artist master 
classes each year. Collaborative student projects in advanced and graduate 
courses team-taught by all faculty designers.</paragraph>
   <paragraph/>
   </statement>

   <address>Peter Beudert, Head of Design/Technology Area</address>
   <address>Department of Theatre Arts</address>
   <address>University of Arizona.</address>
   <address>Tucson, AZ 85721</address>
   <webAddresses>
   <webAddress label="Peter BeudertEmail:502-621-5862" 
displayedLink="[EMAIL PROTECTED]" href="mailto:[EMAIL PROTECTED]"/>
   <webAddress label="Rick TuckettEmail: " 
displayedLink="[EMAIL PROTECTED]" href="mailto:[EMAIL PROTECTED]"/>
   <webAddress label="University of Arizona:" 
displayedLink="http://www.arts.arizona.edu"; 
href="http://www.arts.arizona.edu/"/>
   <webAddress label="University of Arizona II:" 
displayedLink="http://www.arizona.edu"; href="http://www.arizona.edu/"/>
   </webAddresses></training-program>
------------------

OUTPUT FILE
------------------
<html>
<body>Intensive coursework and practical production experiences in costume 
design and technology everysemester. Emphasis on research,development of 
creativity, use of traditional and electronic technology. Guest artist master 
classes each year. Collaborative student projects in advanced and graduate 
courses team-taught by allfaculty designers.</body>
</html>
-------------------

XSL FILE
-------------------
<?xml version="1.0"?>
<!--   Reproduce Xalan bug #4546 -->
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:output method="html" indent="yes" />

<xsl:template match="training-program" >
<html>
<body>
<xsl:apply-templates select = "statement" />
</body>
</html>
</xsl:template>

<xsl:template match="statement" >
<xsl:for-each select="paragraph">
   <xsl:value-of select="normalize-space(.)"/>
</xsl:for-each>
</xsl:template> <!-- statement -->

</xsl:stylesheet>
-------------------

Reply via email to