tla / stemmatology

11 stars 1 forks source link

TEI parser can break if run twice in the same Perl invocation #10

Closed tla closed 10 years ago

tla commented 10 years ago

If the TEI parser has to parse a file with namespaces more than once (or, presumably, a file without namespaces after a file with), it will break with an error like this:

XPath error : Invalid expression
//tei:tei:listWit/tei:tei:witness
         ^ at /opt/local/lib/perl5/site_perl/5.16.1/Text/Tradition/Parser/TEI.pm line 128.