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

RE: How can I do a string substitution for turning ent

Subject: RE: How can I do a string substitution for turning entities into html tags
From: "Bill Chmura" <Bill@xxxxxxxxxxxxx>
Date: Wed, 16 Apr 2003 00:01:15 -0400
substitution html
Right that has to be part of it...  But first I need to convert the
&lt;p&qt; to a <p>...
Which has to be done a variable amount of times in the same tag,
followed by all the other conversions before I output the whole tag.

That's the part that has got me...



-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Avula, Raj
Sent: Tuesday, April 15, 2003 7:18 PM
To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
Subject: RE:  How can I do a string substitution for turning
entities into html tags




<xsl:value-of select="text"  disable-output-escaping="yes"/>

-----Original Message-----
From: Bill Chmura [mailto:Bill@xxxxxxxxxxxxx]
Sent: Tuesday, April 15, 2003 2:38 PM
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject:  How can I do a string substitution for turning entities
into html tags



I am not sure if the subject line conveyed it, but I am not really sure
how to describe it at this point.

Here is an example of my xml data

<text>
   &lt;p&gt;Sometext here. Followed by more text&lt;/p&gt;
   &lt;p&gt;More text.&lt;/p&gt;
   &lt;li&gt;For more info see &lt;/li&gt;
</text>

Because of the way the program that generates it is handling it, the
html markup tags are converted to the entities for < and >.  In my XSL I
need to change them back to the specific markup tags.

What is the best way to go about this?  

Any advice or examples would be fantastic and much appreciated

Bill


 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


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.