xsl-list
[Top] [All Lists]

Re: JavaScript and XSLT

2003-11-20 11:41:48
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(_at_)mulberrytech(_dot_)com
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



<Prev in Thread] Current Thread [Next in Thread>