You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Sven Doerr <do...@time4you.de> on 2000/12/17 14:48:40 UTC

trouble with text mode output of newlines

hello,


i have a bit trouble with the output of text using
<xsl:output method="text" /> :

<xsl:value-of select="'&'" />     gives a parse error (that's ok)
<xsl:value-of select="'&amp;'" /> gives "&amp;" (should be "&")
<xsl:value-of select="'&#xA;'" /> gives a space (should be a newline)

so how can i output a "&", and how a line break ?


regards,
  -sven-


(i am using xalan version 1.2.1 on
 java Classic VM build Linux_JDK_1.2.2_RC4, native threads, sunwjit)


-- 
time4you GmbH
Geschäftsleitung

PS: Besuchen Sie uns auf der LEARNTEC 2001 in Karlsruhe auf unserem
Stand 157 in der Schwarzwaldhalle... 

******************************************************************
IBT ® SERVER eLearning suite. Software-at-work! All-in-one &
plug-able...
Unsere Campus-Management-Plattform liegt jetzt in einer neuen
Software-Version vor!
******************************************************************
the knowledge professionals

time4you GmbH
communication & learning
Maximilianstraße 4
76133 Karlsruhe

Telefon 0721.830.16.0
Telefax 0721.830.16.16
http://www.time4you.de

Re: trouble with text mode output of newlines

Posted by Sven Doerr <do...@time4you.de>.
> i have a bit trouble with the output of text using
> <xsl:output method="text" /> :
> 
> <xsl:value-of select="'&'" />     gives a parse error (that's ok)
> <xsl:value-of select="'&amp;'" /> gives "&amp;" (should be "&")
> <xsl:value-of select="'&#xA;'" /> gives a space (should be a newline)

oops; the output method did not take effect because i
specified the xml method in the serializer explicitly.
the above results then came from the xml method.
it works now ;-)