XPath 1.0 node childs p:
/p/text()
() () - node
substring-before(/p/text()[1],'-')
:
William Faulkner
substring-after(/p/text()[1],'-')
:
'Light In August'
XPath 2.0:
/p/text()/substring-before(.,'-')
3 :
William Faulkner William Faulkner William Faulkner
/p/text()/substring-after(.,'-')
3 :
'Light In August' 'Sanctuary' 'The Sound and the Fury'
user357812