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

RE: Portability function-available tips

Subject: RE: Portability function-available tips
From: "Andrew Welch" <AWelch@xxxxxxxxxxxxxxx>
Date: Fri, 9 Jan 2004 11:33:50 -0000
andrew welch
> No I don't think you want that, I think you want
> 
>   <xsl:for-each select="exsl:node-set($foo-rtf)">
> 
> Together with 
> 
> <msxsl:script language="JScript" implements-prefix="exsl">
>    function node-set(r) {
> some javascript to return the thing cast to a node set
> which I'm sure you can do but don't have the doc to hand
> }
> </msxsl:script>

Thanks David, spell it out and I get there eventually...

However, the next stumbling block and possibly the nail in the coffin is
that function names cannot contain hypens.  So merely having:

function node-set() { }

Throws an error.

Can any msxsl:script'ers on the list get this stylesheet working with
msxml 4 purely by editing the script block?

<xsl:stylesheet version="1.0"
  xmlns:exsl="http://exslt.org/common"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:msxsl="urn:schemas-microsoft-com:xslt">

<msxsl:script language="JScript" implements-prefix="exsl">
  function node-set(nodelist) {
    //return me a node set
  }
</msxsl:script>

<xsl:variable name="foo-rtf">
  <foo>hello</foo>
</xsl:variable>
<xsl:variable name="foo" select="esxsl:node-set($foo-rtf)"/>

<xsl:template match="/">
  <xsl:value-of select="$foo/foo"/>
</xsl:template>

</xsl:stylesheet>


Thanks
andrew


 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.