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

RE: querystring and character escaping

Subject: RE: querystring and character escaping
From: Mark Kennedy <MarkK@xxxxxxxx>
Date: Fri, 1 Jun 2001 16:14:59 -0400
querystring character
Jeremy:

Unfortunately, I don't know where to go for full documentation of the IE5
parser. I found the 'no-entities' feature awhile ago while having the same
problem you did. I found the answer on deja.com, I think, in a posting from
a MS employee who had worked on the project. He said it was 'undocumented'
because it was non-standard and could result in not well-formed output
(which in many cases is exactly the point :-)

HTH!

MK

>Date: Fri, 1 Jun 2001 17:04:03 +0100 
>From: Jeremy Clarke <jeremy@xxxxxxxxxxxxxxxxxx>
>Subject: RE:  querystring and character escaping
>
>Thanks very much, does the trick fine.  Can you point me to 
>where some of
>these features might be 'documented'?
>
>J.
>
> -----Original Message-----
>From: 	Mark Kennedy [mailto:MarkK@xxxxxxxx] 
>Sent:	01 June 2001 15:24
>To:	Jeremy Clarke; 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
>Subject:	RE:  querystring and character escaping
>
>Jeremy:
>
>I think this might help you. I hope so...
>
>There is an 'undocumented feature' for the IE5 parser that 
>allows you to
>disable output escaping using the <xsl:eval> element with the 
>no-entities
>attribute set to true. I've used it to output non-well-formed HTML from
>CDATA sections. The following example will output the 
>JavaScript into the
>result document without escaping the < or & characters.
>
>XML:
><foobar>
><![CDATA[
>x = 0;
>y = 1;
>z = 2;
>if( x < y && y < z ) { document.write( 'Hello, World!' ) }
>]]>
></foobar>
>
>XSL:
><xsl:template match="foobar">
>	<xsl:eval no-entities="true">this.text</xsl:eval>
></xsl:template>
>
>The same thing can be used to output URLs with non-escaped ampersands.
>
>HTH!
>
>MK

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


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.