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

Re: Decoding HTML tags

Subject: Re: Decoding HTML tags
From: Karl Stubsjoen <kstubs@xxxxxxxxx>
Date: Mon, 1 Oct 2012 08:46:37 -0700
Re:  Decoding HTML tags
Wow.  I didn't think that worked like that.  Cool, thanks.

On Mon, Oct 1, 2012 at 8:42 AM, Martin Honnen <Martin.Honnen@xxxxxx> wrote:
> Karl Stubsjoen wrote:
>>
>> Is there anyway to get from an encoded html tag to the actual tag in
>> an xsl transformation?  If I have an element like this:
>>
>> <content>&lt;b&gt;Straight Body Cast Handstand Drill&lt;/b&gt;&lt;br
>> /&gt;&lt;br /&gt;I like the drill:  &lt;a
>>
>> href="http://gymnasticscoaching.com/new/2012/09/straight-body-cast-hand-drill/"
>> </content>
>>
>> I need this from the content element (i added line returns to make
>> easier to read):
>>
>> <b>Straight Body Cast Handstand Drll</b>
>> <br/>
>> I like the drill:
>> <a href="....">....</a>
>>
>> and so on..
>
>
> Assuming your XSLT processor supports it you can do
>
> <xsl:template match="content">
>   <xsl:value-of select="." disable-output-escaping="yes"/>
> </xsl:template>
>
>
>
> --
>
>         Martin Honnen --- MVP Data Platform Development
>         http://msmvps.com/blogs/martin_honnen/
>



-- 
Karl Stubsjoen
MeetScoresOnline.com
(602) 845-0006

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.