[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"):
<li>AlexandreFAYOLLE</li>
Did I forget something very important in my XSLT or is this a bug of 4XSLT processor ?
Olivier Cayrol
olivier.cayrol@logilab.fr
---------------8<-------------------------------
file test.xslt:
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes" ?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
>
<xsl:output method="html" encoding="ISO-8859-1"/>
<xsl:template match="/">
<html>
<head>
<title>Address Book Test</title>
</head>
<body>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<xsl:template match="addressbook">
<p>My friends are:
<ul>
<xsl:apply-templates/>
</ul>
</p>
</xsl:template>
<xsl:template match="entry">
<li>
<xsl:value-of select="firstname"/><xsl:text> </xsl:text>
<xsl:value-of select="lastname"/>
</li>
</xsl:template>
</xsl:stylesheet>
----------------------------8<----------------------------
file test.xml
<?xml version="1.0" standalone="yes"?>
<!DOCTYPE addressbook >
<addressbook>
<entry>
<firstname>Alexandre</firstname>
<lastname>FAYOLLE</lastname>
</entry>
<entry>
<firstname>Nicolas</firstname>
<lastname>CHAUVAT</lastname>
</entry>
</addressbook>
--------------------------8<---------------------------
file test.html
My friends are:
* AlexandreFAYOLLE
* NicolasCHAUVAT
--------------------------8<---------------------------
For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=123172&group_id=6473