The XPath below presupposes that the TEI element is in no namespace, but this is only true for very old TEI files (since 2002, TEI elements including the TEI element have been defined to be in the namespace http://www.tei-c.org/ns/1.0).
The XPath could be changed to be compatible with both modern and old-style TEI by using the same idiom as the other XPath expressions in the same file, e.g.
The XPath below presupposes that the
TEI
element is in no namespace, but this is only true for very old TEI files (since 2002, TEI elements including theTEI
element have been defined to be in the namespacehttp://www.tei-c.org/ns/1.0
).https://github.com/voyanttools/trombone/blob/b4120480f6810d4073b8eab0eb9ac1b312dbea55/src/main/resources/org/voyanttools/trombone/input-formats/teicorpus.xml#L4
The XPath could be changed to be compatible with both modern and old-style TEI by using the same idiom as the other XPath expressions in the same file, e.g.