Subject: RE: [xsl] Pulling XML data into an HTML form and... From: "John Meyer" <jmeyer@xxxxxxxxxxx> Date: Fri, 21 Nov 2003 15:31:28 -0500 |
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@xxxxxxxxx] Sent: Friday, November 21, 2003 3:21 PM To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Pulling XML data into an , David Carlisle | Thread | RE: [xsl] Pulling XML data into an , Cynthia DeLaria |
[xsl] Pulling XML data into an HTML, Cynthia DeLaria | Date | Re: [xsl] Converting Duration, tim |
Month |