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

RE: Pulling XML data into an HTML form and...

Subject: RE: Pulling XML data into an HTML form and...
From: "John Meyer" <jmeyer@xxxxxxxxxxx>
Date: Fri, 21 Nov 2003 15:31:28 -0500
inserting xml data into html
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:  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

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.