Avoid preview in ODD by example

Here should go questions about transforming XML with XSLT and FOP.
david_himself
Posts: 10
Joined: Mon Oct 01, 2018 7:29 pm

Avoid preview in ODD by example

Post by david_himself » Thu May 09, 2019 8:33 pm

I'm trying to run oddByExample.xsl over a folder of some 400 TEI/XML files, following Lou Burnard's instructions at http://teic.github.io/TCW/howtoGenerate.html. If I follow Lou's instructions to the letter, I get an error: "Exception thrown by URIResolver: Malformed URL ...". This is from running the scenario on a single, opened file from the folder. So I tried changing ${cfd} to ${cfdu} in the Parameter setting for Corpus, and then it ran, but it only produced an ODD derived from that single TEI/XML file. Then I left the scenario cionfiguration unchanged (i.e. with my parameter setting), selected all the files from project view, and ran the scenario again. The problem then was that each file when processed produced an HTML version (why?), and these HTMLs opened tab after tab in my browser. I doubt my PC has the memory for 400+ tabs in Chrome.

What am I doing wrong? If I'm not doing wrong, how can I prevent auto preview of these unwanted HTMLs?

Sorry as usual if question seems dumb to you, but I'm stuck. Thanks.

David

Radu
Posts: 6453
Joined: Fri Jul 09, 2004 5:18 pm

Re: Avoid preview in ODD by example

Post by Radu » Mon May 13, 2019 2:48 pm

Hi David,

I do not know much about this specific transformation scenario created by a third party. Maybe you could also ask on the TEI users list.
About the scenario opening an HTML document on each transformation, if you edit the transformation scenario, in the "Output" tab you can probably uncheck the "Open->In System Application" checkbox.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

david_himself
Posts: 10
Joined: Mon Oct 01, 2018 7:29 pm

Re: Avoid preview in ODD by example

Post by david_himself » Mon May 13, 2019 7:59 pm

Thanks, Radu. I might try TEI-L at some point for questions specific to that transformation. I got it to run by setting the corpus parameter to ${pdu}.

As for the unwanted HTMLs, I'd already tried unchecking the "Open->In System Application' checkbox, but it hadn't helped. Today I figured out that the HTMLs weren't (directly) the result of running oddByExample.xslt. They must have come from a directive at the top of each TEI/XML file to a stylesheet normally used for producing HTML output, so I temporarily removed that line from the files. No more HTMLs. I expect there's a more elegant way of suspending the effect of that directive when irrelevant to the present purpose.

best
David

Post Reply