Hi all, This is my parse on the two issues in 246, both of which I think we could actually fix during our call: 1. Simple bug: In Oxygen, open P5/Exemplars/tei_jtei.odd, and transform it with "TEI ODD to PDF". You should get an error "Cannot convert a zero length string to an integer". The error comes in common/common_figures.xsl, line 228. The basic problem arises out of the assumption that if a <graphic> element has @width, it will also have @height. That's not necessarily the case, so that assumption is flawed. What we need to do is a more complex <choose> which takes into account two conditions: @width and @height only @width, only @height or neither attribute For the first case, we can retain the existing process. For the second, we can set max-width to 80% and set content-height to "scale-to-fit". 2. More complex bug: In Oxygen, save the tei_jtei.odd file with a new name. Edit that file, and on the root TEI element, add a second namespace prefix declaration for the examples namespace, so there are two: [...] xmlns:eg="http://www.tei-c.org/ns/Examples" xmlns:egXML="http://www.tei-c.org/ns/Examples" [...] This looks strange, but it's not uncommon, and it's likely to happen when ODDs XInclude other files or are chained. Now try to transform this file with "TEI ODD to XHTML". You'll get this error: XPTY0004: A sequence of more than one item is not allowed as the first argument of translate() ("eg:", "egXML:") on line 1396 of common/functions.xsl. The problem here is that the Stylesheets assume that only one prefix has been defined for each unique namespace URI. Ron has suggested two possible fixes on the ticket. Cheers, Martin On 2017-03-31 11:25 AM, Syd Bauman wrote:
We are planning to meet next Thu, 04-06 at 13:00Z, i.e.:
Thu 2017-04-06 06:00 PDT (poor Martin) Thu 2017-04-06 09:00 EDT Thu 2017-04-06 14:00 BST Thu 2017-04-06 15:00 CEST
Martin will be sending out details on 2 more issues we thought might be worth addressing. They are https://github.com/TEIC/Stylesheets/issues/246 and another (that I don't think has a ticket yet) which is an error in common/common_figures.xsl (roughly lines 226-240): the stylesheet makes the erroneous assumption that if there is a @width attribute, then there will be a @height attribute.
Moreover, there are still the agenda items from our last meeting, most of which are still to be addressed. They include:
* table review (http://wiki.tei-c.org/index.php/Mapping_ODD_processing) - we still need rows for TEI ODD -> documentation * generation of PDF from within oXygen framework * stylesheet re-write project * re-working the Stylesheet/Test/ suite (see Martin's Test2/, which uses 'ant') * ticket: https://github.com/TEIC/Stylesheets/issues/227
I can try to be the one to establish a Google Hangout and invite people, but I have been remarkably unsuccessful at this in the past. So if anyone would like to volunteer ...