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

Re: [MSXML3] Howto generate a node-set in an extension funct

Subject: Re: [MSXML3] Howto generate a node-set in an extension function ?
From: "Richard Birkby" <rbirkby@xxxxxxxxxxx>
Date: Mon, 27 Nov 2000 07:12:55 -0000
xpattern selectnodes
I've used

return selectNodes("<your XPattern>")

from a JScript extension function before. Note that the functionality
between MSXML3 September and MSXML3 gold changed here. The default language
changed from XPattern to XPath and since using Namespaces with XPath in an
extension function isn't possible (due to the XML Document being read only)
it may leave you in the situation of using the September MSXML3 in
preference.


Richard

----- Original Message -----
From: "Gavin Bong" <gavinb@xxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxx>
Sent: Monday, November 27, 2000 1:08 AM
Subject: [MSXML3] Howto generate a node-set in an extension function ?


> Hi,
>
> Extension functions in MSXML are implemented in COM objects
> or in JScript/VBScript code inside the XSLT file (or included/imported
> files).
>
> According to the faq,
>
> > "You get node-sets from a source tree
> > (which is usually derived from an XML document".
>
> Is there some way of generating node-sets as I want to create
> and modify node-sets passed in as parameters into my extension
> functions and return them to the callee ?
>
> The other way could be to return an RTF and call the msxsl:node-set
> built in function.
>
> e.g. <xsl:variable name="retnodeset"
> select="msxsl:node-set( myext:doSomething('//someXpathExpression') )" />
>
> where myext is the extension namespace prefix. But it looks so ugly.
>
> Thank you all.
>
> Regards,
>
>
> Gavin Bong
> ------------------------------------------------------------------------
> I accept Mastercard, Visa or fully vested stock options
> in pre-IPO companies with significant venture backing.
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


 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.