OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [xml-dev] Game of Life: an XSLT implementation

[ Lists Home | Date Index | Thread Index ]

Hi Didier,

Yes, this is an excellent idea!  Allowing the user to dynamically modify
the input will be a great way to introduce "noise/fluctuations" into the
system, thereby allowing us to explore alternative attractors.  Great
idea!  /Roger

Didier PH Martin wrote:
> Hi Roger,
> If I understood well, the XML document for the starting configuration
> contains 0s and 1s for each cell isn't it? If that is the case, I can do
> even better; do an xml editor to create that document.
> The scenario would be:
> a) An XSLT stylesheet transform (client side) an XML document containing a
> default configuration. The document is derived from what you saw.
> b) When users press the "edit" button, the table shows 0s and 1s that could
> be edited.
> c) When the users press the submit button, the simulation starts
> I need to find ways to get the equivalent in Mozilla of the
> "contentEditable" property available in IE. This property allows editing "in
> place" the XHTML content. When the user press the submit button, a script
> can use the DOM to update the XML document. Then we apply the templates on
> the xml document.
> We will have demonstrated a lot of features about
> a) Non linear systems.
> b) Client side XML processing.
> c) What you can do with XSLT as a development tool.
> d) as soon as we have a version ported on Mozilla, a good demonstration of a
> platform independent client side XML processing model; Could be useful as an
> example of the possibilities. And who knows, maybe ignite some best practice
> example in our community.
> What do you think of that?
> Cheers
> Didier PH Martin
> -----Original Message-----
> From: Roger L. Costello [mailto:costello@mitre.org]
> Sent: Monday, October 20, 2003 7:09 PM
> To: Didier PH Martin
> Cc: xml-dev@lists.xml.org
> 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
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
> The list archives are at http://lists.xml.org/archives/xml-dev/
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS