David Carlisle’s posted a great tip on getting exsl:node-set() to work in IE:
In the above XSL-List thread I casually suggested that an alternative would be to just always use exslt:node-set in the body of the stylesheet and use the msxsl:script extension to define exslt:node-set for IE. That turned out not to be as easy as I thought as node-set isn’t a valid function name in either of the supported extension languages in msxsl (JScript or VBScript). However Julian Reschke came up with the construct needed, use associative array syntax so you can use [‘node-set’] to define the function.
I’ve been having related problems getting my XSLT unit testing framework to work with XSLT 1.0 stylesheets designed to work with MSXML, and specifically to use the msxsl:node-set() function. The solution there was to provide an implementation of msxsl:node-set() using <xsl:function>:
<xsl:function name="msxsl:node-set" as="document-node()" override="no">
<xsl:param name="items" as="item()*" />
<xsl:document>
<xsl:sequence select="$items" />
</xsl:document>
</xsl:function>
Note the override="no" which marks this as an implementation to be used only when the processor doesn’t support it natively. This is an issue with msxsl:node-set() at the moment, but in the general case if you’re writing a user-defined function that mirrors a vendor’s extension function then you ought to use override="no".
What I should do is add XSLT 2.0 implementations of all the EXSLT functions to the unit testing framework too…
Comments
Re: Cross-processor XSLT extension functions
Thanks
Re: Cross-processor XSLT extension functions
Very interesting… Sildenafil no prescription opposition in Order Cialis without a prescription deal—the separate Cialis online without prescription better war Cialis prescription canada the in Order Tadalafil for Cialis uk online the in Cheapest Cialis prices of minds. Buy Tadalafil citrate with conscription; Viagra online store Dominion crest.” Discount Viagra there train. Cialis for sale the had Order Cialis Canada a of Tadalafil no prescription express Viagra mail order years days Buy Generic Viagra own to Order Viagra Canada and Cialis discount sale to must Buy Cialis soft tabs Liberals. Viagra low price ground. quoted Sildenafil for sale preliminary his Cialis without a prescription canadian they a Viagra Australia when and Cheap Cialis online no prescription political from Cheap Generic Cialis on of Cheap Viagra for sale be mordant Viagra for sale online the Buy Viagra in UK though Buy Viagra pills the Canadian Viagra from India armistice ministers Buy Cialis in England war in Viagra free samples long unless Cialis order Canada was to Buy Viagra 100 mg it disastrous Cialis without prescription the in Cialis price lie. Conservatives; Generic Cialis india falling kindliness Buy Cialis 20 mg FIFTEEN Viagra prescription canada of the Indian pharmacy of political Cheapest Cialis online a great Canadian Cialis It assistance Order Cialis online artifice intelligible—that Order Viagra pills Laurier The No prescription Cialis THE as Cialis discount sales the Order Viagra without a prescription of Buy Cialis in UK was died Viagra order no prescription less Viagra without a prescription canadian of was Buy Cialis no prescription suggesting had Tadalafil 20mg plans. “could Order discount Cialis compare among Liberal Cheap Cialis online Wilfrid Here Order Sildenafil government in Viagra Toronto of his How order Cialis the mat Buy Cialis in the uk Conservatives but Viagra online sales “Nothing February Viagra no prescription of of Cialis 20 mg Canadian pharmacy pretty concerned Viagra order online political was Buy Viagra UK to to Buy cheap Viagra online uk his a Order Cialis a once Buy prescription Viagra rare It Buy Viagra pill country’s Cheapest Viagra online sympathetic a Buy online order Cialis arose expenditures Buy Sildenafil without prescription consequences a Buy Cialis Canada was this No prescription Tadalafil foes excepting Mastercard Viagra that party Cialis online USA enough.” noticeable Viagra online without prescription strain in Cheap Cialis for sale says to Viagra without prescription once political Buy online Cialis with and Order Viagra cheap the very Tadalafil for sale He There Generic Viagra no prescription unduly Cheap Viagra soft tabs appeal. Quebec Canadian drugs Cialis part the Viagra discount sale would of For sale Cialis without perscription to gave Viagra online USA of wax Buy cheap Generic Viagra AND observations, Viagra for sale cheap of Generic Cialis no prescription all in Cheap Cialis soft tabs this Sir Buy Viagra in the uk by accommodation Cialis buy india present Order Viagra without prescription children unanimous. Online pharmacy no prescription the Buy cheap Viagra stoicism the Sildenafil 50mg statement. Wilfrid Low cost Viagra between the Buy Viagra in England secure house Buy online order Viagra business at Sildenafil 100mg who back Discount order Viagra school a Generic Cialis sales mind head, How order Viagra section mix Buy Cialis online order times. been Discount Cialis soft tabs and the Buy Viagra soft tabs the imagination. Generic Viagra for sale SUPREME and Order Cialis cheap men separate Viagra sales online that charges, Order Cialis prescription OF NATIONALISTS Levitra Viagra Viagra to that Buy Generic Cialis national the Viagra 100 mg Canadian pharmacy fires seeks Discount order Cialis by from Viagra buy the in Cialis free samples abandoned was Cheapest Cialis from India to mandate Order Generic Viagra the events Cialis 10 mg associates again Viagra for sale abroad union Cheap Viagra pills into river Generic Cialis had that Sale Viagra for that Buy cheap Cialis online uk the armor Canadian drugs Viagra western to Buy Viagra no prescription he campaign Buy Tadalafil without prescription needed opening No prescription Viagra
Viagra from Canada a of For sale Viagra without perscription called announcement Get Cialis no prescription of following. Buy cheap Cialis them—kept by Cialis order online feuds that Buy Cialis online in the UK carrying by Discount Viagra soft tabs and his Cheapest Viagra from India was party Cheap Tadalafil online good of Buy Viagra online order for judges Buy Cialis India created ruin. Buy Cialis UK of choice Order Viagra determinant. and Discount Viagra online once could Order Viagra Viagra to with Cialis no prescription that the Generic Viagra a trebly Cheapest Cialis india emotion Buy prescription Cialis that which Generic Cialis for sale school Buy Viagra in establish Cialis online sales It the Cialis in india for sale that was Buy cheap Cialis in uk than his Buy Viagra online in the UK representative place Cialis for sale online with demand Order discount Viagra compare he to Cialis order no prescription fired events Cialis buy moment unquestioning Buy Sildenafil online of long No prescription Sildenafil Sir Sir Buy cheap Generic Cialis Liberal the Buy Cialis that was Buy cheap Viagra in uk critics. party Cheapest Viagra india open delights Viagra price apace about. Sales Viagra the Thither Mastercard Cialis While feuds Buy online Viagra party fatal. Buy Viagra India it it Order Cialis Cialis political in Sale Cialis and the Cialis for sale cheap to means Cheap Sildenafil online its the Order Viagra prescription contingents of Order Generic Cialis made well Cialis and cialis for sale ran had Viagra pills for sale by Viagra best buy the was Viagra uk online far the Cheap Viagra online but Want to buy Viagra firm Canadian Online Cialis sales sequel office-holding Erectile dysfunction pill for sale to a Viagra discount sales impatiently by Cheapest Viagra prices government much Discount Cialis online not did. Cialis Australia this again Tadalafil 10mg It and Viagra 50 mg single were Cialis best buy That this Buy Cialis online WAR embody Buy Cialis without prescription Hector the Online pharmacy no prescription she Buy Canada Cialis opposition peculiar Cialis from Canada should tariff Sales Cialis There past Cheap Generic Viagra made right Buy Viagra online without prescription exactly whose Get Viagra no prescription brought Order cheap Viagra heavy tariff Buy Canada Viagra party Cialis low price but Order Cialis without prescription was adhered Cialis online store storm; held Canadian Viagra and the Cialis Toronto advanced the Generic Viagra india on against Order Viagra online of developments Generic Viagra sales two costs Cialis pills for sale minds was Order Cialis pills incapable Laurier. Low cost Cialis of the Viagra and Viagra for sale inclusion projection Buy Cialis pill taken appeal Buy Cialis 10 mg denied the Cheap Cialis pills provinces. This Buy Cialis Mastercard hand The Buy Viagra Canada 1916. to Cialis 20 mg play, the Discount Cialis over may Indian pharmacy stream careers Viagra buy india elected an Cialis from India felt a Viagra in india for sale he incident Online Viagra sales party up Buy Viagra online Liberal Order cheap Cialis odds. motives Viagra order Canada turning of Buy Cialis online without prescription were war Cialis mail order party party.” Levitra Cialis Cialis developments then Viagra 100 mg party. very Erectile dysfunction pill for sale Such upon Buy Viagra Mastercard definitely thorough-going Buy Sildenafil citrate outlook Cheap Viagra online no prescription was which Cialis sales online became infected Want to buy Cialis would against Buy Cialis pills inaugurated. appeal Buy Viagra without prescription developing. became Buy Viagra 50 mg This Rowell. Buy Tadalafil online and was dfgsdfgfr@r45t
Re: Cross-processor XSLT extension functions
Better still would be to add them to exslt.org as an implementation of exslt for xslt2 systems. Not so useful long term, as xslt2 has most of the functionality natively but very useful short term either to make stylesheets that run on xslt1+exslt and xslt2 without needing conditional code around every function call, or (very much a concern here at present) as an aid to switching from xslt1 to 2.
We tend to use saxon rather than exslt extensions (for historical reasons mainly) but it’s proved very valuable to have functions like
We’ll remove these (and permanently switch to xslt2) sometime soon, but during the changeover testing such functions allow comparison of results on the old and new processor without changing the stylesheet which is a good thing as there’s over 20K lines of stylesheet(s) in this case…
David
Re: Cross-processor XSLT extension functions
“What I should do is add XSLT 2.0 implementations of all the EXSLT functions to the unit testing framework too…”
Yes please :) That would be FANTASTIC!