RE: Re: [xsl] extending xsl with javascript

Subject: RE: Re: [xsl] extending xsl with javascript
From: cknell@xxxxxxxxxx
Date: Thu, 08 Nov 2007 13:00:56 -0500
As I interpret the original post, the desire is to produce one transformation from a set of alternates, based on the value of one or more parameters supplied to the stylesheet. Hence, a common entry point followed by a "branch" to one or another alternative. The poster wants, I believe, to control the logic of this branching via Javascript.

I don't see where Javascript is necessary for this, and I suspect that the original poster is comfortable with Javascript and unfamiliar with XSLT, hence April's desire to control the branching with Javascript.
-- 
Charles Knell
cknell@xxxxxxxxxx - email



-----Original Message-----
From:     Steve <subsume@xxxxxxxxx>
Sent:     Thu, 8 Nov 2007 12:46:44 -0500
To:       xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  Re: [xsl] extending xsl with javascript

Could someone explain 'branching logic'?

-Steve

On Nov 8, 2007 12:45 PM, Colin Adams <colinpauladams@xxxxxxxxxxxxxx> wrote:
> That would be sensible if the OP's question were actually about XSLT,
> but it looks to me like it is actually a dynamic HTML question (and
> therefore off-topic here).
>
>
> On 08/11/2007, cknell@xxxxxxxxxx <cknell@xxxxxxxxxx> wrote:
> > Why not keep things simple and let XSLT do the branching?
> > --
> > Charles Knell
> > cknell@xxxxxxxxxx - email
> >
> >
> >
> > -----Original Message-----
> > From:     april@xxxxxxxxxxx
> > Sent:     Thu, 8 Nov 2007 12:11:14 -0500 (EST)
> > To:       xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Subject:  [xsl] extending xsl with javascript
> >
> > Hi,
> >
> > I am interested using JavaScript with my xsl templates to control branching logic but do not have a clue where to start. For example one ability I'd like to create is to be able to access command line parameters to a page:
> >
> > myXML2HTMLpage.xml?mode=List
> >
> >
> > I have come across a couple of web sites but they all make my head spin (it is not pretty!) and I'm not sure if I'm ready to embrace a third party library (especially since hugs are no longer allowed in US schools...?)
> >
> > Can anyone suggest a good, introductory, place to start? hopefully with examples...
> >
> >
> > Thanks in advance for your help!
> >
> > Kind Regards,
> > April

Current Thread