Some Notes:
I started this as a personal educational project to see how much of the data management and rules I could encode in XSLT. The main page uses javascript to handle the mouse-events and to generate the random numbers. Everything else is done in 3 different xslt files. The first stylesheet takes a set of random numbers and a pair of min/max values and returns a list of elements representing a full grid. The next style sheet transforms the list of nodes into grid of HTML buttons. The third sheet returns the set of squares that are revealed when the user clicks on a square. This is a recursive algorithm that looks for flags in squares bordering the square that was clicked. That set is then sent to the same algorithm, and the template finds the flags bordering those squares, etc, until no more bordering flags are found.
The app made 'Cool Site of the Day' on the XSLT:Blog!
This is a link to the Mozilla bug I submitted regarding the performance of Firefox compared to MS-IE
Useful XSLT tools:
Sarissa is a great tool for masking the syntactical differences between MS-IE and Mozilla browsers.
Sarissa: a cross-browser ECMAScript library for client side XML manipulation
FXSL is a library of math functions and tool set for implementing functions and dynamic, variablized, function calls. Really, a must-read.
FXSL: an xslt Functional Programming Library.
The XSLT:Blog is a rich source of information regarding all things XSLT. Created by
M. David Peterson.
XSLT:Blog - An XSLT community news, commentary, code samples, and evangelism weblog.
My java applet web examples:
A Scrabble game, and java version of Minesweeper that plays a good game by itself.
Feedback:
You can mail feedback to:
seanwhalen@comcast.net