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

RE: Re: nodeset extension in .Net?

Subject: RE: Re: nodeset extension in .Net?
From: "Kirk Allen Evans" <kaevans@xxxxxxxxxxxxx>
Date: Tue, 6 Aug 2002 09:32:19 -0400
.net xpath
> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of bryan
> Sent: Monday, August 05, 2002 9:25 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  Re: nodeset extension in .Net?
>
> Now you don't happen to know where there's a good
> example of passing a node-set as a param using addparam on an
> Xsltargumentlist do you?

Bryan -
	I just posted an example in the thread "nodeset extension in .NET" on this
mailing list.  The  key is to pass the correct class type.  The mapping of
XPath types to .NET XPath classes is shown:

W3C XPath Type		.NET XPath Class
===========================================================
String			System.String
Boolean			System.Boolean
Number			System.Double
Node Fragment		System.Xml.XPath.XPathNavigator
Node Set			System.Xml.XPath.XPathNodeIterator


To pass a node set, you only need to pass an XPathNodeIterator as the
paramter to the stylesheet.  You can create an XPathNodeIterator using the
CreateNavigator method of the XmlNode class, which XmlDocument inherits.

Kirk Allen Evans
http://www.xmlandasp.net
"XML and ASP.NET", New Riders Publishing
http://www.amazon.com/exec/obidos/ASIN/073571200X


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


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-2013 All Rights Reserved.