Page 1 of 1

Avoid preview in ODD by example

Posted: Thu May 09, 2019 8:33 pm
by david_himself
I'm trying to run oddByExample.xsl over a folder of some 400 TEI/XML files, following Lou Burnard's instructions at 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.


Re: Avoid preview in ODD by example

Posted: Mon May 13, 2019 2:48 pm
by Radu
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.


Re: Avoid preview in ODD by example

Posted: Mon May 13, 2019 7:59 pm
by david_himself
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.