This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Passing XML value to JavaScript function
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: Re: [xsl] Passing XML value to JavaScript function
- From: "Robert Koberg" <rob at koberg dot com>
- Date: Tue, 10 Jul 2001 15:48:04 -0700
- References: <8556E4267B19DC44BD9BCD04A14D6FB40472B819@irvexc01.int.newport.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
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