Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Re: < &tr; issue again...

Reply
Thread Tools

Re: < &tr; issue again...

 
 
A. Bolmarcich
Guest
Posts: n/a
 
      07-22-2003
In article <>, Morten Helgaland wrote:
> Hello
>
> I'm relatively new to xsl and I've taken over a bunch of of xml
> documents which have an element with escaped html in it. For example;
> <BodyCopy>&lt;p&gtThis is a paragraph&lt;/p&gt;</BodyCopy>
>
> And I need to use xsl to output this as
> <p>This is a paragraph</p>
>
> output method="text" won't do it because the rest of the stylesheet
> requires method="html"...
>
> I can't for the life of me figure out how to do it... I've seen
> something about output-escaping and CDATA sections, but all these
> hints seem to solve a "reversed" problem to mine.
>
> Are there any other answers than; "give up" and "rtfm"?


Do the following example xml and xsl documents help?

XML document:

<?xml version="1.0"?>
<BodyCopy>&lt;p&gt;This is a paragraph&lt;/p&gt;</BodyCopy>

XSL document:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlnssl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="BodyCopy">
<xsl:value-of select="." disable-output-escaping="yes"/>
</xsl:template>

</xsl:stylesheet>
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it a hardware issue or a config issue or something else Scooty Cisco 0 06-14-2008 04:02 PM
Data Storage Issue (Basic Issue) Srini Java 11 06-01-2008 01:17 AM
Service Pack 2: login issue's and power management issue's ?!? Skybuck Flying Windows 64bit 0 04-07-2007 03:12 PM
inspiron 8200 video issue and hd issue the pez lover Computer Support 1 02-05-2007 02:44 AM
Major ActiveX Domain issue. NOT LOCAL PC ISSUE joe.valentine@gmail.com Computer Support 8 02-06-2006 09:03 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57