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

RE: Problems with characters

Subject: RE: Problems with characters
From: "Julian Reschke" <julian.reschke@xxxxxx>
Date: Wed, 20 Feb 2002 12:17:52 +0100
asp character problem
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Ragulf
> Pickaxe
> Sent: Wednesday, February 20, 2002 11:48 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  Problems with characters
>
>
>
> >Ragulf Pickaxe wrote:
> > > Well, actually I do seem to have more problems because I deleted a
> >comment
> > > in the second stylesheet and it suddently worked, showing the right
> > > characters(!).
> >
> >Luck :)
> >
> > > Then I tried oppening a new window, not changing anything,
> and it showed
> >it
> > > wrongly (again).
> >
> >See? :)
>
> Well, I have tested some more, and I think the problem is not
> about data but
> about loading the stylesheet.
>
> All times, when I open a new window, first time it shows it
> wrongly, second
> and subsequent times it shows the characters right.
>
> This is the part of the asp page, that loads and transforms the
> document, I
> note that I have not written anything about
> xml/xsl.async = false. Can this be the problem?

It should be set to false unless you really are prepared to handle
asynchronicity.

> ..
> Set oXml = Server.CreateObject("MSXML2.DOMDocument")
> Set oXsl = Server.CreateObject("MSXML2.DOMDocument")
>
> call oXml.loadXML(vXmlData)
> call oXsl.load(Server.MapPath(".\Stylesheets\File.xsl"))
>
> sData=oXml.transformNode(oXsl)
> Response.Write(sData)

Never do that. You'll loose encoding information.

Use

	oXml.transformNode(oXsl, Response)

instead.

And complain to MSDN about their faulty examples.


 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.