RE: MSXML variables and DOCTYPE

Subject: RE: MSXML variables and DOCTYPE
From: "Steven Livingstone, ITS, SENM" <steven.livingstone@xxxxxxxxxxxxx>
Date: Thu, 23 Mar 2000 16:09:44 -0000
You should also be able to instatiate COM objects within your XSL. So create
your ASP as a Window Script Component, register it and call it that way !?!
That way you should be able to pass stuff from ASP.

Pretty cool.

cheers,
Steven

Author
Pro XML
http://www.wrox.com/Consumer/Store/Details.asp?ISBN=1861003110
Pro Site Server 3, Wrox Press
http://www.wrox.com/Consumer/Store/Details.asp?ISBN=1861002696
Pro Site Server 3.0 Commerce Edition, Wrox Press
http://www.wrox.com/Consumer/Store/Details.asp?ISBN=1861002505

Steven Livingstone
Glasgow, Scotland.
07771 957 280 or +447771957280


> -----Original Message-----
> From:	Jonathan Marsh [SMTP:jmarsh@xxxxxxxxxxxxx]
> Sent:	23 March 2000 15:26
> To:	'xsl-list@xxxxxxxxxxxxxxxx'
> Subject:	RE: MSXML variables and DOCTYPE
> 
> You can pass in parameters using the addParameter method on the
> XSLProcessor
> object.  This is documented in the SDK downloadable from
> http://msdn.microsoft.com/downloads/webtechnology/xml/msxml.asp.
> 
> The docs include this JScript example, which is easily translated into
> VBScript:
> 
> Using a variable in XSL:
> 
>   <xsl:stylesheet xmlns:xsl="...">
>     <xsl:param name="myBaseName" />
>     ...
>     <xsl:value-of select="$myBaseName" />
>     ...
>   </xsl:stylesheet>
> 
> Using a variable in JScript:
> 
>   var myVariable = 5;
>   //...load XML, XSL, and create xslTemplate here
>   var myProc = myTemplate.createProcessor():
>   myProc.input = xmldoc;
>   myProc.addParameter(myVariable, "myBaseName");
>   //now you can perform the transformation.
> 
> 
> > -----Original Message-----
> > From: Simon.Heathfield@xxxxxxxxxxxxxxxx
> > [mailto:Simon.Heathfield@xxxxxxxxxxxxxxxx]
> > Sent: Thursday, March 23, 2000 3:48 AM
> > To: XSL-List@xxxxxxxxxxxxxxxx
> > Subject: RE: MSXML variables and DOCTYPE
> > 
> > 
> > 
> > DOCTYPE does work, there was a problem in the entity set that 
> > xml authority
> > did
> > not complain about (I need to look at it). This caused MSXML 
> > to give an
> > unrelated
> > error message seeming to indicate that the DOCTYPE defn was 
> > unrecognised. So
> > my fault
> > really.
> > 
> > I have downloaded the latest MSXML and variables and 
> > parameters do indeed
> > work. However
> > I cannot find any information on passing the parameters into the xsl
> > stylesheet (initially
> > I want to do it from ASP VBScript).
> > 
> > Any ideas? 
> > 
> > ----------
> > Simon Heathfield
> > IPS Technical Manager
> > ESOFT Global Ltd 
> > 
> > 
> > CONFIDENTIAL
> > The contents of this email and any attachements may be
> > confidential.  It is intended for the named recipient(s).  
> > If you are not the named recipient please notify the sender
> > immediately and do not disclose the contents to any other
> > person or make any copies.
> > 
> > 
> >  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> > 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
________________________________________________________________________

This message is sent in confidence for the addressee only.
It may contain legally privileged information. The contents are not to
be disclosed to anyone other than the addressee. Unauthorised recipients
are requested to preserve this confidentiality and to advise the sender
immediately of any error in transmission.



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread