samedi 9 mai 2015

Xpath to get nodes with distinct values(removing trailing and leading spaces)

I have an XML document in which I am trying to select nodes having distinct values with leading and trailing spaces removed.

I am using following Xpath and it is working:

ROW[COUNTRY[not(text() = following::ROW/COUNTRY[text()])]]

But when I am using normalize-space(text()) in above xpath then the results returned are not correct.

xml sample and xslt used.

Aucun commentaire:

Enregistrer un commentaire