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

RE: Fixing <b>

Subject: RE: Fixing <b>
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Wed, 27 Mar 2002 09:15:21 -0000
amp lt
> I've got data that looks like:
>
> <body>
>   <p>&amp;lt;b&amp;gt;Some Text&amp;lt;/b&amp;gt;&amp;lt;p&amp;gt;
>   &amp;lt;i&amp;gt;Some More Text&amp;lt;/i&amp;gt;&amp;lt;p&amp;gt;
>   </p>
> </body>

If your data was single-escaped, i.e. if it read:

<p>&lt;b&gt;Some text&lt;/b&gt; ...

then I would chide you gently to say that when nesting XML inside XML, it's
best not to hide the markup by escaping it; and then I would tell you how to
get out of the predicament by using disable-output-escaping="yes".

But your nested XML is double-escaped, that is the "<" is represented not as
"&lt;" but as "&amp;lt;". So you'll have to put it through two
transformations, each of which removes one layer of escaping by using d-o-e.

This is really bad news, and one really must question why such an
extraordinary data representation was chosen in the first place.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx
>
> And I need it to convert it to this:
>
> <body>
>   <p><b>Some Text</b><p/>
>   <i>Some More Text</i><p/>
>   </p>
> </body>
>
> I appreciate your help on this.
>
> Tammy Kohl
>
>
>
>  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
  • Fixing &amp;lt;b&amp;gt;
    • tammy - Tue, 26 Mar 2002 21:51:27 -0500 (EST)
      • Mike Brown - Tue, 26 Mar 2002 22:44:57 -0500 (EST)
      • Michael Kay - Wed, 27 Mar 2002 04:10:26 -0500 (EST) <=
      • <Possible follow-ups>
      • Lea Allison - Wed, 27 Mar 2002 01:12:29 -0500 (EST)
      • tammy - Wed, 27 Mar 2002 06:44:48 -0500 (EST)
        • naha - Wed, 27 Mar 2002 09:08:55 -0500 (EST)
        • Mike Brown - Wed, 27 Mar 2002 21:56:59 -0500 (EST)

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.