author elements in tei headers

From: Eric Lease Morgan <emorgan_at_nyob>
Date: Mon, 9 Jan 2017 11:55:15 -0500
To: CODE4LIB_at_LISTS.CLIR.ORG
I have an XPath question, and more specifically, how can I determine the number of author elements found an a TEI header?

I would like to create summary files similar to the files created by the late Sebastian Rantz and found on GitHub. [1] I can easily determine the number of author elements found in an entire TEI file with a Perl-esque XPath statement similar to this:

  $parser->find( ā€œ//author" )->size

But I’d like to know how to limit the finding of author elements to only the teiheader or text elements. 

[1] see, for example - https://github.com/textcreationpartnership/A00002

—
Eric Morgan
Received on Mon Jan 09 2017 - 11:56:22 EST