RE: [xsl] querystring and character escaping

Subject: RE: [xsl] querystring and character escaping
From: Jeremy Clarke <jeremy@xxxxxxxxxxxxxxxxxx>
Date: Fri, 1 Jun 2001 17:04:03 +0100
Thanks very much, does the trick fine.  Can you point me to where some of
these features might be 'documented'?


 -----Original Message-----
From: 	Mark Kennedy [mailto:MarkK@xxxxxxxx] 
Sent:	01 June 2001 15:24
To:	Jeremy Clarke; 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
Subject:	RE: [xsl] querystring and character escaping


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.

x = 0;
y = 1;
z = 2;
if( x < y && y < z ) { document.write( 'Hello, World!' ) }

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

The same thing can be used to output URLs with non-escaped ampersands.



> Firstly, my solution has to work with the
> <>  namespace
> which is really the problem in itself.  Therefore, I can't use <xsl:output
> method='html'/>, or disable-output-escaping.  How else can I ensure
> entities are correctly interpreted (i.e. not well-formatted) for
> I've tried lots of methods and have trawled through MS and the list
> archives, but can't find anything helpful.
> 	Secondly, my querystrings now have & replaced with &amp;, which is
> OK, as it happens, because IE interprets this 'correctly'. However, it
> doesn't get interpreted correctly with Web Page Dialogs, which don't
> understand XML either.  Does anyone know much about this, or can point me
> a resource about them, I can't find anything on Web Page Dialogs either.
> What exactly are they based on?

Mark Kennedy

 XSL-List info and archive:

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

 XSL-List info and archive:

Current Thread