RE: [xsl] accessing xsl with XML DOM and javascript

Subject: RE: [xsl] accessing xsl with XML DOM and javascript
From: "Crowers, Steve" <scrowers@xxxxxxxxxxxx>
Date: Tue, 24 Jul 2001 09:38:50 -0400
I'm not sure (since I've not tried this before) but try:

Steve Crowers
Software Engineer

Liberate Technologies
2 Walnut Grove,
Suite 200
Horsham, PA 19044
Phone: 215-773-9400 x 9514
Fax: 215-773-9401

-----Original Message-----
From: Elise D. [mailto:tyris_azriel@xxxxxxxx]
Sent: Tuesday, July 24, 2001 9:27 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] accessing xsl with XML DOM and javascript

hi all,

i do have an xsl where i call a javascript function
inside :

	<xsl:for-each select="./*[1]">
		<tr bgcolor="6699cc">
			<xsl:for-each select="./*">

and here is the script inside the xsl :

xmlns:user="urn:user-namespace-here" version="1.0">
<msxsl:script language="javascript"
    	function getName(node)		
		return node.item(0).nodeName;

here is my xml structure :

		<field name="Project Site">Paris</field>
		<field name="end date">07/04/2001</field>
		<field name="Project name">Microsoft Visio 10 VS
Help </field>
		<field name="Project Code">ITOSE01001</field>
		<field name="Status">Go</field>

the problem is that my function returns me the name of
the node (field) and in fact i'd like to get the value
of the "name" attribute (example : end date).
i tryed to put return

but it doesn't work.

so someone give me the correct syntax ?

elise, xml learning girl

Do You Yahoo!? -- Vos albums photos en ligne, 
Yahoo! Photos :

 XSL-List info and archive:

 XSL-List info and archive:

Current Thread