[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

Subject: 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)
xsl copy of html
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.