[xsl] xsl:copy-of problem with < and > chars by html output

Subject: [xsl] xsl:copy-of problem with < and > chars by html output
From: "Markus Hanel" <markus.hanel@xxxxxx>
Date: Mon, 10 Jan 2005 10:36:09 +0100 (MET)
hello,

I am having a problem with the xsl:copy-of function by creating html output.
I want to fill in a complete node set with content into a textarea and have
problems with the < and > chars.

the xml file:
<interview>
<forms>
<form>
<OneQuestOneAnswer>
  <question>1.1</question><tab /><text>Eine \berlieferung aus dem
Shintoismus f|hrt die japanische Dynastie auf die Sonnengvttin Amaterasu
zur|ck und betont damit die Funktion des Kaisers als Staatsoberhaupt und
Gottheit.</text><br /><br /><question>Wie nennt man den Titel des
japanischen Kaisers ?</question>
  <tab/><solution
points="5"><valid_input>Tenno</valid_input><valid_input>tenno</valid_input></solution><points/>
</OneQuestOneAnswer>
...
</forms>
</interview>

stylesheet
...
<textarea>
  <xsl:attribute name="rows">30</xsl:attribute>
  <xsl:attribute name="cols">80</xsl:attribute>
  <xsl:attribute name="name">forms</xsl:attribute>
  <xsl:copy-of select="./forms"/>
</textarea>
...

The output in the textarea should be:

<forms>
<form>
<OneQuestOneAnswer>
  <question>1.1</question><tab /><text>Eine \berlieferung aus dem
Shintoismus f|hrt die japanische Dynastie auf die Sonnengvttin Amaterasu
zur|ck und betont damit die Funktion des Kaisers als Staatsoberhaupt und
Gottheit.</text><br /><br /><question>Wie nennt man den Titel des
japanischen Kaisers ?</question>
  <tab/><solution
points="5"><valid_input>Tenno</valid_input><valid_input>tenno</valid_input></solution><points/>
</OneQuestOneAnswer>
...
</form>

mozilla shows no content in the textarea; problem are the < and > chars!

Thank you much, in advance,

markus

-- 
-----------------------------
Mag. Markus Hanel
Rottweilerstra_e 29
A-6460 IMST
0650 - 7847941
markus.hanel@xxxxxx
----------------------------

Current Thread