Skip to content

Instantly share code, notes, and snippets.

@davidamichelson
Created November 16, 2015 20:13
Show Gist options
  • Save davidamichelson/65f8f8892eb43c90ffce to your computer and use it in GitHub Desktop.
Save davidamichelson/65f8f8892eb43c90ffce to your computer and use it in GitHub Desktop.
xquery version "3.0";
declare namespace tei = "http://www.tei-c.org/ns/1.0";
for $node in doc("/Users/davidmichelson/GitHub Repositories/srophe/draft-data/data/works/Zanetti_XSL_Conversion/ZanettiBiblFull.xml")//tei:bibl/text()
return analyze-string($node
, "[,]*\s*[p]\.(\s)*\w*[-]*\w*.*$")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment