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

Re: Passing XML value to JavaScript function

Subject: Re: Passing XML value to JavaScript function
From: "Robert Koberg" <rob@xxxxxxxxxx>
Date: Tue, 10 Jul 2001 15:48:04 -0700
javascript xml value
Is it a random sort? If it is, use javascript. If not, I would do it with
xml/xsl.

Currently you get the values somehow from the server, right?  Could the
server send an xml file/stream instead of whatever it is sending for the
javascript? Then you would match the root element of the incoming stream and
:

<xsl:apply-templates>
  <!-- check out xsl:sort, there is more to it... -->
   <xsl:sort order="descending" select="aColumn"/>
</xsl:apply-templates>

Then your company would be further down the road to sweet XML goodness.

hope it helped,
Rob


----- Original Message -----
From: <CMangano@xxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, July 10, 2001 1:24 PM
Subject: RE:  Passing XML value to JavaScript function


> I have a javascript function in the xsl that dynamically sorts a column.
I
> pass the column to the javascript function.  The problem is, the column is
> dynamic as well, so I never know what is getting passed.  Chris mentioned
> that I am using the old namespace.  This was the way I learned off of a
> tutorial late last year, so I thought I was doing it right.
>
> Chris, I tried to view your tutorial, but I got the error "Keyword
> xsl:call-template may not be used here."  I checked the version of MSXML I
> am running, and it is MSXML2 in Replace mode.  What else do I need?
Thanks
> for everyone's help.
>
>
> -----Original Message-----
> From: Robert Koberg [mailto:rob@xxxxxxxxxx]
> Sent: Tuesday, July 10, 2001 11:26 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  Passing XML value to JavaScript function
>
>
> Can I ask why you would want to do this? Usually you can do it in XSL.
One
> use might be 'date' but I can't think of anything else off the top of my
> head.
>
>
> > Well, I have tried this every possible way I can think of, and I am
still
> > getting the error.  According to what Chris says, I should be able to do
> it.
> > I have even tried many variations, all with no success.  Has anyone ever

> > done this before?  (for those who don't feel like scrolling, I am trying
> to
> > pass xml to a Javascript function using XSL).  Thanks.
> >
>
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>  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.