@peterstadler Indeed, thanks for elaborating. The test is sufficient: a <rendition> is in use once it's being referred to from at least one @rendition attribute. I agree the expression might be a bit terse; this version would probably be more transparent:
some $i in key('idrefs', @xml:id) satisfies $i instance of attribute(rendition)
I could change it, but then again there will be lots of such implicit expressions in the file (whose implicitness I'm probably not even aware of) that might be candidates for more transparency.
@peterstadler Indeed, thanks for elaborating. The test is sufficient: a
<rendition>
is in use once it's being referred to from at least one@rendition
attribute. I agree the expression might be a bit terse; this version would probably be more transparent:I could change it, but then again there will be lots of such implicit expressions in the file (whose implicitness I'm probably not even aware of) that might be candidates for more transparency.