xsl-list
[Top] [All Lists]

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

2005-01-10 02:36:09
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 Sonnengöttin 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 Sonnengöttin 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(_dot_)hanel(_at_)gmx(_dot_)at
----------------------------

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>