[XML-SIG] [Bug #123172] 4XSLT does not process xsl:text correctly 4Suite 0.9.2

noreply@sourceforge.net noreply@sourceforge.net
Wed, 22 Nov 2000 08:10:04 -0800

Bug #123172, was updated on 2000-Nov-22 08:10
Here is a current snapshot of the bug.

Project: Python/XML
Category: 4Suite
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Summary: 4XSLT does not process xsl:text correctly  4Suite 0.9.2

Details:    I am using XSLT to transform data stored in XML files into viewable
HTML files. 

   In the attached test example, I stored in an XML file (test.xml) my
address book and I want to see a list of all my friends (i.e. people in my
address book). 

   To deal with this, I use an XSL Transformation (test.xslt). To have
better rendering, I insert a space between the first and the last name
with an <xsl:text> node :
      <xsl:value-of select="firstname"/><xsl:text> </xsl:text>
      <xsl:value-of select="lastname"/>

   Unfortunately, 4XSLT seems to ignore completely my <xsl:text> node as
it produces the following HTML code (you can notice that there is no
space between "Alexandre" and "FAYOLLE"):

   Did I forget something very important in my XSLT or is this a bug of 4XSLT processor ?

Olivier Cayrol

file test.xslt:
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes" ?>


  <xsl:output method="html" encoding="ISO-8859-1"/>

  <xsl:template match="/">
  <title>Address Book Test</title>
  <xsl:template match="addressbook">
<p>My friends are:

  <xsl:template match="entry">
    <xsl:value-of select="firstname"/><xsl:text> </xsl:text>
    <xsl:value-of select="lastname"/>

file test.xml
<?xml version="1.0" standalone="yes"?>

<!DOCTYPE addressbook >

file test.html
My friends are:
 *  AlexandreFAYOLLE
 *  NicolasCHAUVAT

For detailed info, follow this link: