[xsl] Pulling XML data into an HTML form and...

Subject: [xsl] Pulling XML data into an HTML form and...
From: "Cynthia DeLaria" <cdelaria@xxxxxxxxx>
Date: Fri, 21 Nov 2003 13:20:48 -0700
Here is what I'm trying to accomplish:

I have a bit of xml that looks something like this:

<xml>
    <intro>
        This is my copy with an <i>italics</i> template applied.
    </intro>
</xml>

I have a stylesheet that is pulling in the value of the <intro> node,
and yet it is not displaying the value of the italics tags... (i.e. I'd
like to have my textbox actually say "This is my copy with an
<i>italics</i> template applied.") As it stands, everytime I call the
value of this node into my form, I have to re-insert the italics tags
(or whatever other template I may be applying), which is
less-than-desirable when editing large amounts of text at one time.

In my XSL stylesheet that displays the form, I have tried the following:

<textarea><xsl:value-of select="xml/intro/."
disable-output-escaping="yes" /></textarea>

But I know that d-o-e doesn't do exactly what I'm intending it to
here... So the question:

Is there a way to have the formatting pulled into the text box with the
text??

Thanks!

Cynthia

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread