Question: What do you mean by value index?
Answer: A "value" or "range" index supports standard comparisons with =, >, < and the like. In short, the structural index helps with the expression
collection("/db")/doc/attribute/rut_afiliado
but you will also need a range index to speed up the value lookup on rut_afiliado: