Altova Mailing List Archives


RE: [xsl] Problems with characters

From: "Julian Reschke" <julian.reschke@------>
To:
Date: 2/20/2002 1:15:00 AM
> 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: [xsl] 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

Disclaimer

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.