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

Denormalizing formatting

Subject: Denormalizing formatting
From: "Charles O'Connor" <charles.oconnor@xxxxxxxxxxxx>
Date: Mon, 8 Oct 2012 16:07:30 -0400
 Denormalizing formatting
Hi,

I am trying to denormalize formatting tags to transform:

<p>Here is some <bold>funky bold text with <italic>some of it also italic and
perhaps <underline>underlined</underline>as well.</italic></bold></p>

to:

<p>Here is some <bold>funky bold text with </bold><bold><italic>some of it
also italic and perhaps
</italic></bold><bold><italic><underline>underlined</underline></italic></bol
d><bold><italic> well.</italic></bold></p>

The developer I'm working with wants to use string manipulation in .NET, but
I'm thinking that XSL would be a more elegant solution.

Can anyone point me to a snippet of code that I could modify to get the
desired effect? I imagine someone has at some time needed to do something
similar.

Thanks!
Charles

CHARLES O'CONNOR| WORKFLOW AUTOMATION SPECIALIST
DARTMOUTH JOURNAL SERVICES
5 Pilgrim Park Rd, Suite 5 | Waterbury, VT 05676 | Direct 802.882.1670
charles.oconnor@xxxxxxxxxxxx     www.sheridan.com

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.