[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: RE: NEED good information on alternative for dyn:

Subject: RE: RE: NEED good information on alternative for dyn:evalua te() for MSXML
From: Pieter Reint Siegers Kort <pieter.siegers@xxxxxxxxxxx>
Date: Fri, 28 May 2004 08:34:20 -0500
server.createobject msxml2.freethreadeddomdocument
This may help you:

http://www.biglist.com/lists/xsl-list/archives/200111/msg01083.html

Cheers,
<prs/>

-----Original Message-----
From: Steve Brown [mailto:stevebrown@xxxxxxxxx] 
Sent: Friday, May 28, 2004 8:26 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: RE:  NEED good information on alternative for
dyn:evaluate() for MSXML

Filter.asp (fragment):

	set lxml = server.CreateObject("MSXML2.FreeThreadedDOMDocument.4.0")
	lxml.async = false
	lxml.loadXML(leadxml)
	
	Set outxsl =
Server.CreateObject("MSXML2.FreeThreadedDOMDocument.4.0")
	outxsl.async = false
	outxsl.load (Server.MapPath("filteroutput.xsl"))

	Set outtemplate = Server.CreateObject("MSXML2.XSLTemplate.4.0")
	outtemplate.stylesheet = outxsl
	set outprocessor = outtemplate.createProcessor()

	outprocessor.input = lxml
		
	outprocessor.addParameter "filter", "//lead[contains(FName,'a') and
LName='Schiff']"
	 
60     outprocessor.transform()
        Response.write (outprocessor.output)


filteroutput.xsl:
<xsl:param name="filter" select="//lead[contains(FName,'a') and
LName='Schiff']"/>

<xsl:template match="/">
	<xsl:apply-templates select="$filter"/> </xsl:template>

<xsl:template match="leadlist">

Sorry about that...
Thanks,
~Steve


On Fri, 28 May 2004 08:06:53 -0500, Pieter Reint Siegers Kort
<pieter.siegers@xxxxxxxxxxx> wrote:
> 
> Steve, why don't you post more code, especially filter.asp?
> A reference to a 'line 60' does not help us... :-)
> 
> <prs/>
> 
> 
> -----Original Message-----
> From: Steve Brown [mailto:stevebrown@xxxxxxxxx]
> Sent: Friday, May 28, 2004 8:00 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  NEED good information on alternative for 
> dyn:evaluate() for MSXML
> 
> Yes, this code does work as is, but when I pass in a parameter from 
> ASP it returns this error:
> 
> msxml4.dll error '80004005'
> 
> Reference to variable or parameter 'filter' must evaluate to a node list.
> 
> /lead/filter.asp, line 60
> 
> On Fri, 28 May 2004 09:59:35 +0100, David Carlisle <davidc@xxxxxxxxx>
wrote:
> >
> >
> >   XSL:
> >   <xsl:param name="filter" select="//person[contains(FName,'a') and
> >   LName='Brown']"/>
> >
> >   <xsl:template match="/">
> >           <xsl:apply-templates select="$filter"/>  (this is what 
> > does not
> work,
> >   some parsers offer a evaluate function to convert a string to XPath
> >   but not MSXML)
> >   </xsl:template>
> >
> >
> > That does not require an extension function, it is just standard 
> > XSLT and should work as is.
> >
> > David
> >
> > --
> > The LaTeX Companion
> >   
> > http://www.awprofessional.com/bookstore/product.asp?isbn=0201362996
> >
> > http://www.amazon.co.uk/exec/obidos/tg/detail/-/0201362996/202-72578
> > 97
> > -0619804
> >
> > ____________________________________________________________________
> > __ __ This e-mail has been scanned for all viruses by Star Internet. 
> > The service is powered by MessageLabs. For more information on a 
> > proactive anti-virus service working around the clock, around the 
> > globe, visit:
> > http://www.star.net.uk
> > ____________________________________________________________________
> > __
> > __

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.