DCLP / dclpxsltbox

Sandbox for development, testing, and review of XSLT for DCLP
http://dclp.github.io/dclpxsltbox/
1 stars 5 forks source link

Stray empty text divs #341

Closed Edelweiss closed 6 years ago

Edelweiss commented 6 years ago

Some DCLP files have two text divs, one of which is empty, like in this case:

https://github.com/DCLP/idp.data/blob/master/DCLP/64/63477.xml

Edelweiss commented 6 years ago

Is it mandatory that the commentary information (<div type="commentary" subtype="frontmatter" xml:space="preserve">) is written in one line?

as in the file mentioned above:

https://github.com/DCLP/idp.data/blob/master/DCLP/64/63477.xml#L79

Edelweiss commented 6 years ago

It’d be best to get rid of these empty text divs before assembling a TM list for Marc as requested in tickt #340

Edelweiss commented 6 years ago

Here I found a file that has two text divs both of which have content:

https://github.com/DCLP/idp.data/blob/master/DCLP/66/65740.xml

Edelweiss commented 6 years ago

in issue branch and master branch:

https://github.com/DCLP/idp.data/commit/9acdb170ec8b4cd750489cd047b944823a59a53f

Edelweiss commented 6 years ago

Has been fixed

https://github.com/DCLP/idp.data/blob/master/DCLP/66/65740.xml#L109