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

Re: How To Call XSL Template With Parameter From OnCli

Subject: Re: How To Call XSL Template With Parameter From OnClick Event
From: "Emmanuil Batsis (Manos)" <mbatsis@xxxxxxxxxxx>
Date: Thu, 06 Nov 2003 19:06:03 +0200
calling xsl template from javascript

Tom Mitchell Jr. wrote:
Hello all,

    I apologize if this has gone out twice, but apparently I had a
setting which caused an attachment to go through with the mail, so I am
resending.  I have a question regarding this recent post, and would
appreciate some clarification.  Here's the snippet that my questions
stem from:

                   <script language="javascript" type="text/javascript">
                    <!-- //
                         function callDetail(item_no)
                              <xsl:call-template name="detail">
                                   <xsl:with-param name="item_input">
                    // End -->

At the point where the transformation takes place, the XSL processor has
no knowledge of the item_no variable, correct?

True. The javascript will be processed by the browser rendering the result tree of the transformation.

> The transformation is
happening before any javascript is realized, so how is it the
transformation knows about this variable?

It doesn't, unless a variable with that name is available during the transform.

-- Manos Batsis

    _  __    __                    __
   / |/ /__ / /____ __ _ ___ _____/ /_
  /    / -_) __(_-</  ' Y _ `/ __/ __/
 /_/|_/\__/\__/___/_/_/_|_,_/_/  \__/

mbatsis at netsmart dot gr
(+30) 210 33 02 608
(+30) 210 33 02 658

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

Current Thread


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.
First Name
Last Name
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.