Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: SetProperty Problem

From: "Umut Alev - MSFT" <xml@---------.--->
To: NULL
Date: 10/10/2006 10:09:00 PM

"The stylesheet does not contain a document element. The stylesheet may be 
empty, or it may not be a well-formed XML document."

If you get this error then the stylesheet loading has failed. After calling 
doc.load make sure to check the result by doc.parseError.reason to ensure 
that the documents are loaded.

-- 
Regards,
- Umut Alev [MSFT]

This email sent from a machine running Vista RC1.


"Anthony Jones" <Ant@y...> wrote in message 
news:OC96N765GHA.4644@T......
>
> "Zeffy" <Zeffy@d...> wrote in message
> news:AC023DCA-7060-4160-A9FE-8890CAF56ECD@m......
>> Yes, I am using it on a client.
>>
>> Here is the snippet:
>>
>> Set xslData = CreateObject("MSXML2.DOMDocument.3.0")
>> xslData.async = false
>> xslData.setProperty "ServerHTTPRequest", True
>
> My question was WHY are you using the above line??
>
>> xslData.load("XSLFiles/blalba.xsl")
>>
>> In some computers the setProperty works and in some it throws an error.
>>
>
> You are getting this error when you actually try to use the provided
> stylesheet?
> The error goes away when you comment out the setProperty?
> Do the clients that fail use a proxy server?
> If you use the command line:-
>
> proxycfg -u
>
> on the failing clients does it start working?
>
> (proxycfg -d to undo changes done)
>
>
>
>
>> -- 
>> Unshared knowledge is lost knowledge, and lost knowledge is wasted
> capital.
>>
>> Don't forget to vote :-)
>>
>>
>> "Anthony Jones" wrote:
>>
>> >
>> > "Zeffy" <Zeffy@d...> wrote in message
>> > news:9D2FA7B4-F42C-410B-8ED2-F8CC24FFAE32@m......
>> > > Hey All,
>> > >
>> > > We are using IIS6 with ASP and VBScript on client side.
>> > > Our clients are using Windows XP SP2 and NT SP6 with MSXML 3.0.
>> > >
>> > > We are trying to load an XML from a URL located on our server.
>> > >
>> > > We are getting an error message:
>> > >
>> > > "The stylesheet does not contain a document element. The stylesheet
> may be
>> > > empty, or it may not be a well-formed XML document." on SOME 
>> > > specified
>> > WINXP
>> > > clients, on the rest (Other XP's and All NT's) are working correctly.
>> > >
>> > > We've added a ServerHTTPRequest flag to the MSXML object and we got
>> > another
>> > > error while parsing the XML.
>> > >
>> > > 1. I wanted to know if there are any software dependencies to use
>> > > ServerHTTPRequest flag?
>> >
>> > It's depends on WinHTTP which will be present on a standard XP and 2003
> box.
>> >
>> > However why are you using it on a client?
>> >
>> > > 2. Why it is failing on some machines when we don't have it / add it?
>> >
>> > It's a very strange error to be getting from msxml3's DOMDocument load
>> > method
>> > Can you show us a small snippet of code on the client and what the
> server
>> > uses to send?
>> >
>> >
>> > >
>> > >
>> > > Thanks.
>> > >
>> > > -- 
>> > > Unshared knowledge is lost knowledge, and lost knowledge is wasted
>> > capital.
>> > >
>> > > Don't forget to vote :-)
>> >
>> >
>> >
>
> 



transparent
Print
Mail
Like It
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.

.
.

transparent

transparent