Re: [xsl] JavaScript and XSLT

Subject: Re: [xsl] JavaScript and XSLT
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Thu, 20 Nov 2003 13:41:48 -0500
Kevin,

At 01:14 PM 11/20/2003, you wrote:
<a href="javascript:myFunction(<xsl:value-of select="."/> );"><xsl:value-of
select="."/></a>

<a href="javascript:myFunction({.});"> <xsl:value-of select="."/> </a>

In the XSLT, it's not a Javascript function call, it's just a string like any other.

Present the result to a processor that knows Javascript and it may be recognized as such; but that's not on the XSLT side.

The syntax for an Attribute Value Template (the thing with the {}) is among the most Frequent of FAQs.

Cheers,
Wendell


====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread