This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: 𡁀 coming out as ?
- From: "Julian Reschke" <julian dot reschke at gmx dot de>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Sat, 9 Mar 2002 09:31:19 +0100
- Subject: RE: [xsl] 𡁀 coming out as ?
- Reply-to: xsl-list at lists dot mulberrytech dot com
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Randy Belknap
> Sent: Saturday, March 09, 2002 1:54 AM
> To: 'xsl-list@lists.mulberrytech.com'
> Subject: RE: [xsl] 𡁀 coming out as ?
>
>
> >Post a code sample of how you are creating the document and invoking the
> transformer
>
> I created the simplified index.asp page shown below to reproduce the
> problem. Below that is the result I get when I run the page and
> look at the
> html source. Below that is what I was hoping to get. Thanks! Randy
>
> ==== index.asp ======
> <%@ Language=JScript %>
> <html>
> <body>
> <p>到<br>
> <%
> var style_data = "<?xml version=\"1.0\"?>" +
> "<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/TR/WD-xsl\"
BTW: this is not XSLT (but in this case this isn't relevant to your
problem).
> language=\"JScript\">" +
> "<xsl:template match=\"/\">" +
> " Hello: 到 <xsl:value-of select
> =\"greeting\"/>" +
> "</xsl:template></xsl:stylesheet>";
>
> var style = new ActiveXObject("Microsoft.XMLDOM" );
> style.loadXML(style_data);
>
> var xml_data = "<greeting>Randy 到 </greeting>";
> var xml = new ActiveXObject( "Microsoft.XMLDOM" );
> xml.loadXML(xml_data);
>
> Response.Write( xml.transformNode(style) );
Use
xml.transformNodeToObject(style, Response);
(and tell MSDN to finally fix their examples).
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list