XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Raj ParmarSubject: Passing nodesets to stylesheets using addParameter
Author: Raj Parmar
Date: 29 Dec 2006 08:47 AM
Hello

I am trying to pass some XML to a stylesheet using MSXML in classic ASP.

Here's a snippet of the ASP:

dim fragment : set fragment = Server.CreateObject("Msxml2.FreeThreadedDOMDocument.4.0")

Call fragment.loadXML(string_containing_fragment)
If Not fragment.parseError.errorCode = 0 Then
response.write("Failed to parse session variables into XML: " & fragment.parseError.reason)
End If

' missed out lines to create an XSLProcessor etc. Now set parameter
xslProcessor.addParameter "fields", fragment.selectNodes("/fields")


In my XSL, I have

<xsl:param name="fields"/>
<xsl:key name="field_lookup" match="field" use="@name"/>


When I try to perform the lookup, I don't get *any* values back.
I can take a copy of the XML fragment and paste it directly into the body of the $field parameter, and everything works ok.

What am I doing wrong?

Thanks for any help.

Raj


Posttop
Minollo I.Subject: Passing nodesets to stylesheets using addParameter
Author: Minollo I.
Date: 29 Dec 2006 10:29 AM
Raj,
what Stylus Studio version and build number are you running? (Help > About)

Have you tried running the same XSLT from inside Stylus?

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.