RE: [xsl] XSL, Escaping, undocumented?

Subject: RE: [xsl] XSL, Escaping, undocumented?
From: Americo Albuquerque <melinor@xxxxxxx>
Date: Mon, 16 Jun 2003 16:40:33 +0100
Hi

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> FireNet - Information
> Sent: Sunday, June 15, 2003 1:00 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: SV: [xsl] XSL, Escaping, undocumented?
> 
> 
> I'm using MS XML 4, XSL transformation.
> 
> My problem seems to be, that the document() function in XSL 
> doesn't pass a GET request when the URL contains >>&amp;<<. 
> Tests have shown that ASP (IIS) converts things like 
> >>&amp;<< to >>&<< automaticly.
> 
> The problem therefore lies in the document() function. I 
No. the problem lies in the way asp connect to files. Document() function in
asp only opens local files, it doesn't open http:// ot ftp:// files. With or
without &amp;

> _could_ write # instead of &, and make the ASP script switch 
> the characters.
>  - surely, I'd rather have it work the right way. Any ideas?
> 

If you do the transformation on the client your document('www.bla.com') will
work just fine.
The way I usualy do it on the server side is:
Create a MSXML2.ServerXMLHTTP
Load the http:// or ftp:// file
Append it to the original xml doc with
doc.documentElement.appendChild(httpdoc.responseXML.documentElement)
And the do the Transformation

Hope thi shelps you

(...)



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


Current Thread