This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Passing XML value to JavaScript function


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@Newport.com>
To: <xsl-list@lists.mulberrytech.com>
Sent: Tuesday, July 10, 2001 1:24 PM
Subject: RE: [xsl] 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@koberg.com]
> Sent: Tuesday, July 10, 2001 11:26 AM
> To: xsl-list@lists.mulberrytech.com
> Subject: Re: [xsl] 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]