daisy / pipeline-mod-braille

!! NOTE: This project is now part of the pipeline-modules project !! | Braille Production Modules for the DAISY Pipeline 2
1 stars 4 forks source link

Fix XSLT warnings that looks like errors #38

Closed josteinaj closed 7 years ago

josteinaj commented 9 years ago

screenshot from 2015-08-28 11 16 12

bertfrees commented 9 years ago

I know, that's very ugly.

josteinaj commented 9 years ago

Indeed. Without them there's only two messages though, there should probably be more messages output by the scripts as well about what's happening. And those two messages are quite useful but at the same time quite technical; is it possible to make them more human-readable?

bertfrees commented 9 years ago

Yes you're right, there should be more messages.

It's possible to make those two messages more human-readable. Basically when I select a transformer I print it using toString. Maybe transformers could have a nice name as well as a technical name, because the technical name is useful too. Could for example be printed when log level is lower. (Ideally I'd like to see a way in the UI to change the log level on the fly, after conversion, so that more/less messages appear as you move the log level slider.)

bertfrees commented 9 years ago

... Or the detailed log could be used for technical messages. But I wonder, how does that work? How does the Pipeline find out which log messages belong to which job? Is it something to do with threads?

josteinaj commented 9 years ago

Ideally I'd like to see a way in the UI to change the log level on the fly

Yes, I have an idea about collapsible debug messages in the backlog: https://github.com/daisy/pipeline-issues/issues/443

How does the Pipeline find out which log messages belong to which job?

No idea. Maybe @capitancambio knows?

bertfrees commented 8 years ago

One type of the XSLT warning is "SXXP0005:The source document is in namespace x, but none of the template rules match elements in this namespace" or "SXXP0005:The source document is in no namespace, but the template rules all expect elements in a namespace". See http://saxon-xslt-and-xquery-processor.13853.n7.nabble.com/SXXP0005-td11887.html for the reason why Saxon produces this warning. Not sure if we can make it go away.

The second type of XSLT warning is "Stylesheet module x is included or imported more than once. This is permitted, but may lead to errors or unexpected behavior". I can probably fix this.

The third type of warning is "XTRE0540: Ambiguous rule match for x ...". We should fix this in the XSLT.

Wouldn't it be possible to filter these kind of warning produced by Saxon itself out (only put them in the detailed log) and only print the ones that we produce ourselves? At the very least they should not look like errors because they are just warnings. @rdeltour and @capitancambio what are your thoughts on this?

bertfrees commented 8 years ago

See https://github.com/daisy/pipeline-mod-braille/commit/ce7f5459d40b43c65094c866ad7a78ba6977dc57

bertfrees commented 8 years ago

See https://github.com/snaekobbi/braille-css/commit/b86930a851a9b44029343d56ff80240854e9d8c1

bertfrees commented 8 years ago

Update:

bertfrees commented 7 years ago

Reopening because this is not on master yet.