I need some help with the different kind of indexes in Tamino 4.2.1.
for example although there is standard index at “@value” and “@id”
and there are only a few instances the following query needs quite long.
for $q in input()/foo/featList/feat[@value=“NP”],
$a in input()/foo/structList/struct[@id=$q/@ref]
I tried to set a unique-key constraint on @id, but I was not successful.
The system is complaining that the elements/attributes pointed to must have a cardinality of 1 together with line number which has nothing to do with the constraint and the relevant attribute has cardinality of 1.
I think, instead of discussing the specific schema I use, a couple of examples for the different kind of indexes methods(Unique, multipath, Compound, reference…) might be very helpful.
If you have some nice tamino-schemas please post them to email@example.com or to this forum.
thank you for your help