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

RE: Re: extending xsl with javascript

Subject: RE: Re: extending xsl with javascript
From: cknell@xxxxxxxxxx
Date: Thu, 08 Nov 2007 13:00:56 -0500
RE: Re:  extending xsl with javascript
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:  extending xsl with javascript

Could someone explain 'branching logic'?


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:   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


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