Re: [xsl] Running XSLT from Python

Subject: Re: [xsl] Running XSLT from Python
From: "Peter Flynn peter@xxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 18 Jan 2025 11:12:50 -0000
On 18/01/2025 00:29, dvint dvint@xxxxxxxxx wrote:
Tidy was failing because of some bad unknown elements.

There is a config file somewhere and I think it lets you add bogus element types.


From oxygen i get a message about the specific element that is wrong.
From python I get a bit of a dump and then the name of the file where
the problem is. I need to give the writers at least the element in
the file with the problem.

Any normal parser should give you the name of the element type with the line number and character offset. Both rxp and onsgmls do this, and as command line tools, their output can be captured by a script and presented to your users in a (hopefully) meaningful way.


Peter

Current Thread