Cómo aplicar la función XPath 'substring-after'
¿Cuál es la expresión XPath que usaría para obtener la cadena que sigue a 'HarryPotter:' para cada libro?
es decir. Dado este XML:
<bookstore>
<book>
HarryPotter:Chamber of Secrets
</book>
<book>
HarryPotter:Prisoners in Azkabahn
</book>
</bookstore>
Volvería:
Chamber of Secrets
Prisoners in Azkabahn
He intentado algo como esto:
/bookstore/book/text()[substring-after(. , 'HarryPotter:')]
Creo que mi sintaxis es incorrecta ...