Hi,
A distinct() function is not part of the W3C draft. Instead it specifies the
distinct-values() function which extracts distinct values from a given input sequence. Applied on a node sequence it extracts the typed value from each node and performs a duplicate elimination.
In order to count the number of distinct values hold by the “Titulo” element you have to rewrite your query in the following way:
count(distinct-values(input()/book/Titulo))
Best regards,
Thorsten Fiebig
#API-Management#Tamino#webMethods