Re: [xsl] Stylesheet works in oXygen fails in Python with Saxonc

Subject: Re: [xsl] Stylesheet works in oXygen fails in Python with Saxonc
From: "O'Neil Delpratt oneil@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 22 Jan 2025 09:40:30 -0000
Hi,

In terms of documentation, a good place to start for writing XSLT applications
in Python  is here:
https://www.saxonica.com/documentation12/index.html#!using-xsl/saxonc-transfo
rmation/python-api-transformation


Kind regards,

O'Neil

> On 21 Jan 2025, at 23:34, dvint dvint@xxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> You have to start somewhere.  The sample file provided no documentation on
what it did or why the method was selected for getting started with python and
saxon.
>
> I also wasn't expecting to have multiple ways to run a stylesheet against
content. The sample ran and created output and I swapped my pieces in.
>
> ..dan
>
>
>
> Sent from my Verizon, Samsung Galaxy smartphone
>
>
> -------- Original message --------
> From: "Michael Kay michaelkay90@xxxxxxxxx <mailto:michaelkay90@xxxxxxxxx>"
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx
<mailto:xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>>
> Date: 1/21/25 3:14 PM (GMT-08:00)
> To: xsl-list <xsl-list@xxxxxxxxxxxxxxxxxxxxxx
<mailto:xsl-list@xxxxxxxxxxxxxxxxxxxxxx>>
> Subject: Re: [xsl] Stylesheet works in oXygen fails in Python with Saxonc
>
> >I was just following a sample file I found.
> >
>
> That's the way people write code these days. Copy and paste, no need to
understand it. Either that, or ask ChatGPT to do it for them. I guess ChatGPT
looks at more examples and is therefore more likely to get it right. Who
knows, it might even read the documentation.
>
> I guess that for people like us developing APIs the important lesson is to
try and make the method names as explicit as we possibly can.
"set_initial_match_selection" was, I suppose, an attempt to do that. But it's
only explicit if you know what the "initial match selection" is, and I suppose
most people don't.
>
> It's hard to see how to avoid such problems.
>
> Michael Kay
> Saxonica
>
>
> XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>
> EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/1363285> (by
email <>)

Current Thread