Print

Print


On Jan 9, 2017, at 12:17 PM, Ashley M. Clark <[log in to unmask]> 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
> [log in to unmask] <mailto:[log in to unmask]>
> (617) 373-5983


  Resolved. This works perfectly. Thank you very much. —ELM