If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Problem with double quotes in xsl

Hi, I am a web developer for a company in Greece and I came across with a problem with NO solution ( well no easy solution)

The problem is:

I have a text box in HTML and I am getting its contents from an XML document Eg.
<input type="text" name="myText">
<xsl:attrinbute name="value"><xsl:value-of select="Document/text"/></xsl:attribute>
</input>
The XML that is used is this:
<Document>
<text>
-- A simple sentence "with" double quotes --
</text>
</Document>

When I produce this output to my browser, within the textbox I get this value:
-- A simple sentence
Instead of -- A simple sentence "with" double quotes --

The truth is that I can solve this problem with javascript but I donít have the time to start parsing the string for finding double quotes Is there any solution to this?

I think that the problem arise at the moment that the XSLT translates the contents of the <text> element.
In other words when the XSLT converts the &quot; to " then this value is being strored in HTML like this:
<input type="text" name="myText" value="-- A simple sentence "with" double quotes --"/>

this line of code will produce a text box with this value:-- A simple sentence

uuups!!!
I found the problem.
I am working for a company and i didnt realised that there were a piece of code that transform all the &amp; to & and all the &quot; to "
Since these are being transformed then the generated HTML is the following: