Re: [xsl] [ANN] XPathle

Subject: Re: [xsl] [ANN] XPathle
From: "Imsieke, Gerrit, le-tex gerrit.imsieke@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 22 Jun 2022 04:29:21 -0000
Michael,

Thanks for your kind words. I added a Share button that copies the score (and some more) to the clipboard.

Today's challenge is a slightly modified version of a stylesheet that I posted in response to a problem that you submitted to this list in April, 2010.

Have fun!

Gerrit

On 21.06.2022 20:03, Michael Mueller-Hillebrand michael.mueller-hillebrand@xxxxxxxxx wrote:
Gerrit,



This is an ingenious idea and a marvelous piece of XSLT and a great user interface as well. Everyone who was in Prague knows, why you could not win Demo Jam this year.



Thanks,

- Michael



PS: I am still thinking about ways to brag about my successes, like the Wordle share button...



-----Original Message-----

From: Imsieke, Gerrit, le-tex gerrit.imsieke@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>

Sent: Monday, June 20, 2022 9:50 PM

To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx

Subject: [xsl] [ANN] XPathle



Those of you who've been to XML Prague already know it: My demojam contribution is a Wordle-inspired game, written -- of course -- in XSLT and running in the browser using SaxonJS.



https://gimsieke.github.io/xpathle/



It's not just fun, but also educational. See for example the difference between

//li[position() mod 3 = 0]

and

/descendant::li[position() mod 3 = 0]

or

(//li)[position() mod 3 = 0]

when applied to the second example.



I cannot promise that there will be a "daily" challenge each and every day. But please send me links to XML files on Github or elsewhere, together with secret XPaths, and I will use them as input for the daily challenge, with some attribution if you don't object.



The distance calculation used to be so buggy, it haunted me until today when I finally got it right (which I thought at least five times already in the past 10 days). If it doesn't compute the distances as you'd expect them to be from the documentation, please file a bug report.



-Gerrit








-- Gerrit Imsieke GeschC$ftsfC<hrer / Managing Director le-tex publishing services GmbH Weissenfelser Str. 84, 04229 Leipzig, Germany Phone +49 341 355356 110, Fax +49 341 355356 510 gerrit.imsieke@xxxxxxxxx, http://www.le-tex.de

Registergericht / Commercial Register: Amtsgericht Leipzig
Registernummer / Registration Number: HRB 24930

GeschC$ftsfC<hrer / Managing Directors:
Gerrit Imsieke, Svea Jelonek, Thomas Schmidt

Current Thread