This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: disable-output-escaping not working?


Firstly, be aware you are using WD-XSL and no XSLT

wd-xsl does not have disable-output-escape="yes", this is part of xslt

For wd-xsl, you would need to use 'no-entities':

<xsl:template match="message">
  <xsl:eval no-entities="true">this.text</xsl:eval>
</xsl:template>

However, the best move is to learn xslt

cheers
andrew



-----Original Message-----
From: Henry E. Lee, Jr. [mailto:henrylee@spiritwood.com]
Sent: 04 July 2002 12:58
To: XSL-List@lists.mulberrytech.com
Subject: [xsl] disable-output-escaping not working?


Hello all,

First I would like to say I am new to XML/XSL, please bear with me!

Second, I did look through all of the archives before posting, and I did
find the solution to my problem, except that part of it does not work.

I am creating an application that will use XML/XSL to display data for
message boards, news items, etc. As a result, it is imperative that I
allow
people to insert HTML directly into my XML documents.

So far to do this I have tried two different techniques. The first was
to
use commenting like so:

<message>
  <!--
  My HTML can go here with line breaks<br>
  and <b>bold</b> font.
  -->
</message>

The second technique I tried was the CDATA like so:

<message>
  <![CDATA[
  My HTML can go here with line breaks<br>
  and <b>bold</b> font.
  ]]>
</message>

In my XSL document, I have been trying to use
disable-output-escaping="yes"
but it seems to be getting completely ignored. I have tried using:

<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl";>
  ...
  <xsl:value-of select="message/comment()"
disable-output-escaping="yes"/>
  ...
</xsl:stylesheet>

I have also tried a variety of other things as well. Of the ones that
work,
they all display the HTML without interpreting the tags and such.

Thanks so much for the assistance,

Hank

----------------------------------------
Henry E. Lee, Jr.
----------------------------------------


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list





---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/2002
 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]