xsl-list
[Top] [All Lists]

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

2007-07-02 08:56:09
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(_dot_)staudinger(_at_)gmail(_dot_)com> 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 ;-)



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--