Como aplicar a função XPath 'substring-after'
Qual é a expressão XPath que eu usaria para obter a sequência a seguir 'HarryPotter:' para cada livro.
ie Dado este XML:
<bookstore>
<book>
HarryPotter:Chamber of Secrets
</book>
<book>
HarryPotter:Prisoners in Azkabahn
</book>
</bookstore>
Eu voltaria:
Chamber of Secrets
Prisoners in Azkabahn
Eu tentei algo como isto:
/bookstore/book/text()[substring-after(. , 'HarryPotter:')]
Acho que minha sintaxe está incorreta ...