Re: author elements in tei headers [resolved]

From: Eric Lease Morgan <emorgan_at_nyob>
Date: Mon, 9 Jan 2017 12:18:59 -0500
To: CODE4LIB_at_LISTS.CLIR.ORG
On Jan 9, 2017, at 12:17 PM, Ashley M. Clark <as.clark_at_NORTHEASTERN.EDU> wrote:

> have to go from my starting position, get me all descendants that match the next thing I specify". So you can use a slightly more explicit XPath to find what you need:
> 
> `//teiHeader//author` -> "Go to <teiHeader>, then get all its descendant <author>s"
> `//text//author` -> "Go to <text>, then get all its descendant <author>s"
> 
> To get counts in pure XPath (you'll have to check if your parser can handle functions like this), you can use the count function:
> 
> `count(//teiHeader//author)` -> "Get a count of the results for `//teiHeader//author`"
> 
> -- 
> Ashley M. Clark
> XML Applications Developer
> Digital Scholarship Group
> Northeastern University Libraries
> as.clark_at_neu.edu <mailto:as.clark_at_neu.edu>
> (617) 373-5983


  Resolved. This works perfectly. Thank you very much. —ELM
Received on Mon Jan 09 2017 - 12:20:07 EST