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

Re: Game of Life: an XSLT implementation


xslt implementation in javascript
Hi Didier,

Great job!  That really looks nice.  Thanks.

I think that a useful parameter to the stylesheet would be one that
identifies the XML document that is to be the starting configuration.  I
can implement that quickly.  What other type of parameter were you
thinking of?  /Roger

Didier PH Martin wrote:
> 
> Hi Roger,
> 
> I posted the updated "game of life" on my web site. It is now possible to
> see the evolution of the game dynamically. You can check it at:
> http://xml.netfolder.com/life-game
> 
> What could be useful now is to add parameters in the stylesheet to create
> different configurations. Just declare the parameters at the beginning of
> the stylesheet (global scope) and I'll manage to provide the front end to
> set the params in the stylesheet. Doing so, we will kill several birds at
> the same time:
> a) Show a dynamic system created with stylesheets. Up to now, most of the
> demos are static documents or do not allow several transformation through
> time.
> b) Client side transformation techniques. Most of the actual illustrated
> transformation techniques are server side not client side. Unfortunately the
> mainframe ghost came back to life with the web in its present incarnation
> :-)
> c) Prototype instance based programming. Yes JavaScript is OO and the
> index.html document proves it.
> d) A team work. I am tired of reading the political bullshit that too
> frequently inhabit XML dev. Once in a while its good to see concrete stuff
> and best practice in action :-) (Again, thanks Roger for your initiative,
> and thanks to Len in advance for his intro - a bit of peer pressure Len :-)
> and thanks in advance to anyone who wants to contribute, we will all learn
> in the process.
> 
> You can download the files from:
> http://xml.netfolder.com/life-game/package.zip
> 
> To len:
> Len, if you can write an intro, your prose is better than mine (send it to
> me via email and I will update the page and package)
> 
> To all:
> It would be interesting if somebody else tries to port the index.html page
> to Mozilla.
> 
> PS: for those of you curious about the code, please notice that I use
> "prototype instance based programming" techniques with javascript which is
> quite unusual with javascript. In javascript an object is not derived from a
> class, it is a prototype. You can add new function or properties to objects.
> For instance, you'll notice that I added new functions to a <div> element,
> hence expanding its property set at run time. If you are interested with
> such techniques, email me, I am organizing a webcast seminar.
> 
> Cheers
> Didier PH Martin
> http://didier-martin.com


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.