Subject: Re: [xsl] Stylesheet works in oXygen fails in Python with Saxonc From: "dvint dvint@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Tue, 21 Jan 2025 23:34:02 -0000 |
You have to start somewhere.B The sample file provided no documentation on what it did or why the method was selected for getting started with python and saxon.B 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...danSent from my Verizon, Samsung Galaxy smartphone -------- Original message --------From: "Michael Kay michaelkay90@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: 1/21/25 3:14 PM (GMT-08:00) To: xsl-list <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 KaySaxonica
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Stylesheet works in oXyge, Michael Kay michaelk | Thread | Re: [xsl] Stylesheet works in oXyge, O'Neil Delpratt onei |
Re: [xsl] Stylesheet works in oXyge, Michael Kay michaelk | Date | Re: [xsl] Running XSLT from Python, dvint dvint@xxxxxxxx |
Month |