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

RE: Re: How To Call XSL Template With Parameter From O

Subject: RE: Re: How To Call XSL Template With Parameter From OnClick Event
From: cknell@xxxxxxxxxx
Date: Thu, 06 Nov 2003 12:10:02 -0500
xslt with parameter
>> At the point where the transformation takes place, the XSL
>> processor has no knowledge of the item_no variable, correct? 

That is correct.

>> How can the value-of be resolved?

XSLT has no way of resolving the value. So far as I know, Microsoft is the only major XSLT processor that offers an extension that permits javascript to be used in custom functions during a transformation. It's the secret stuff inside IE that does the resolution.
-- 
Charles Knell
cknell@xxxxxxxxxx - email



-----Original Message-----
From:     Tom Mitchell Jr. <tmitchel@xxxxxxxxxxxx>
Sent:     Thu, 06 Nov 2003 11:46:10 -0500
To:       xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  Re:  How To Call XSL Template With Parameter From OnClick Event

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">
                                        <xsl:value-of
select="$item_no"/>
                                   </xsl:with-param>
                              </xsl:call-template>
                         }
                    // End -->
                    </script>

At the point where the transformation takes place, the XSL processor has
no knowledge of the item_no variable, correct?  The transformation is
happening before any javascript is realized, so how is it the
transformation knows about this variable?  Is it simply passing
*something* along to the template to be used?  How can the value-of be
resolved?  Sorry for the confusion, but I am curious........

Thanks.
Tom

"Emmanuil Batsis (Manos)" wrote:
> 
> cknell@xxxxxxxxxx wrote:
> 
> > Yes, it is possible with javascript, but there's no browser-agnostic
> > solution.
> 
> If you consider IE and Mozilla are the only browsers where the original
> poster's task applies, Sarissa[1] sould do the trick as the
> "browser-agnostic" solution ;-)
> 
> Beverly  will just have to use the Sarissa API to control the
> transformation and obtain the result tree, then common DOM to inject the
> it to the new window.
> 
> [1] http://sarissa.sourceforge.net/
> 
> hth,
> 
> --
> Manos Batsis
> 
>      _  __    __                    __
>     / |/ /__ / /____ __ _ ___ _____/ /_
>    /    / -_) __(_-</  ' Y _ `/ __/ __/
>   /_/|_/\__/\__/___/_/_/_|_,_/_/  \__/
> 
> http://www.netsmart.gr
> mbatsis at netsmart dot gr
> (+30) 210 33 02 608
> (+30) 210 33 02 658
> http://forte.netsmart.gr/foaf/manos_foaf.rdf
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

-- 
============================ Tom Mitchell,Jr.
Fathom Development Team
Progress Software
One Indian Head Plaza
Nashua, NH 03060
603.594.6905
www.progress.com
============================ I close my eyes
And feel the water rise around me
Drown the beat of time
Let my senses fall away
I can see much clearer now,
I'm blind.
Find all you need in your mind
If you take the time.
                  -Dream Theater
============================= 
 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

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