TEIC / TEI

The Text Encoding Initiative Guidelines
https://www.tei-c.org
Other
269 stars 88 forks source link

fixed Schematron check for unused <rendition> definitions #2325

Closed rvdb closed 1 year ago

rvdb commented 1 year ago

@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 commented 1 year ago

Hi @rvdb , thanks for confirming! From my side, no change is needed—I was just spelling it out for documentary reasons :) Will merge now!