Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Testing with MSXML 3.0 or MSXML 6.0 (WAS: XSL 2.0 and .NET and VB)

From: Robert Koberg <rob@---------->
To:
Date: 7/2/2007 3:56:00 PM
On Mon, 2007-07-02 at 09:08 -0600, M. David Peterson wrote:
> On Mon, 02 Jul 2007 06:47:26 -0600, Manfred Staudinger  
> <manfred.staudinger@xxxxxxxxx> wrote:
> 
> > The other consideration was, should I upgrade to MSXML6 ? Sure I should,
> > but when ? Would this mean to lose the ability to test with MSXML3 ?
> > You see, many question marks, few if any answers (from MS).
> 
> Just noticed that the source for the msxsl.exe utility is now available >  
> http://www.microsoft.com/downloads/details.aspx?FamilyId=2FB55371-C94E-4373-B0E9-DB4816552E41&displaylang=en
> 
> Not sure if this will be of any help, but never noticed the source was  
> available before now.  Something new?  Well, regardless, this should be  
> easy enough to hack into specifying which version of MSXML to use during  
> the transformation.

How about:

var versions = ["Msxml2.DOMDocument.6.0", "Msxml2.DOMDocument.5.0",
"Msxml2.DOMDocument.4.0", "Msxml2.DOMDocument.3.0", ,
"MSXML2.DOMDocument", "MSXML.DOMDocument", "Microsoft.XMLDOM"];

for (var i=0; i < versions.length; i++) {
  try {
    new ActiveXObject(versions[i]);
    alert("Using: " + versions[i]);
    break;
  } catch (e) {}
}

best,
-Rob

> 
> I think ;-)


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