John-
This is great, thank you.
I had looked into copy-of before for this, but it always copied the
container in addition to the content... I didn't even think to apply it
this way... Thank you so much!
Cynthia
-----Original Message-----
From: John Meyer [mailto:jmeyer(_at_)cstlink(_dot_)com]
Sent: Friday, November 21, 2003 1:31 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Pulling XML data into an HTML form and...
Cynthia,
xsl:value-of converts the intro element into a string. What you probably
want to do is copy the child nodes of intro using <xsl:copy-of
select="xml/intro/node()"/>
John Meyer
Senior Software Engineer
Clinician Support Technology
1 Wells Avenue, Suite 201
Newton, MA 02459
www.cstlink.com
-----Original Message-----
From: Cynthia DeLaria [mailto:cdelaria(_at_)quris(_dot_)com]
Sent: Friday, November 21, 2003 3:21 PM
To: XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Pulling XML data into an HTML form and...
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
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list