Subject: RE: [xsl] XML object to Javascript string From: "Michael Kay" <mhk@xxxxxxxxx> Date: Mon, 31 Mar 2003 23:04:53 +0100 |
Convert the node to a string in the calling code, not the called code, by calling the XPath string() function. Michael Kay Software AG home: Michael.H.Kay@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > Mac Martine > Sent: 31 March 2003 21:25 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] XML object to Javascript string > > > > Hi- > I am having trouble getting an xml object to convert to a > string. I have tried everything I can think of. Could someone > please help? > > Here are the code snippets, but calling toString() is not > doing what I expect... > > Thanks- > Mac > > <msxsl:script language="Javascript" implements-prefix="my"> > function split( str, toMatch ) > { > var newString = str.toString() > return newString; > } > </msxsl:script> > > <xsl:value-of select="my:split( @task, $nextTask )" /> > > > 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XML object to Javascript stri, Mac Martine | Thread | Re: [xsl] Don't include JavaScript , Jason White |
[xsl] xsl:element namespace issues., Shawn O. McKenzie | Date | Re: [xsl] xsl:element namespace iss, Niko Matsakis |
Month |