[tei-council] @style /rend/rendition coexistence

Kevin Hawkins kevin.s.hawkins at ultraslavonic.info
Fri Oct 5 16:48:01 EDT 2012


On 10/5/2012 4:41 PM, Lou Burnard wrote:
> On 05/10/12 21:39, Kevin Hawkins wrote:
>> On 10/5/2012 4:15 PM, Lou Burnard wrote:
>>> Also, I believe the rule is that if the same property gets specified
>>> more than once, you are supposed to take the last one. so if @render
>>> says font family is bembo and @style says it is garamond, you believe
>>> the latter.
>>
>> How do you define "the last one"?  Surely this doesn't have to do with
>> the order in which the attributes are serialized in the XML?
>>
>
> Sorry, no, I was unclear. I meant the last one in the list in my
> example, i.e. the one that is hierarchically nearest the element you're
> trying to figure out how it was rendered.
>
> @style is first
> @rendition is next
> @render is last

Okay, you really did mean @render (on <tagsDecl>) -- this wasn't a typo 
auto-corrected from @rend as I assumed.

Since @render only appears on <tagsDecl>, it is farther in the XML 
hierarchy from @style or @rendition, used on an element in the body and 
should therefore be considered to be overridden (in the sense of a CSS 
inheritance) by @style and @rendition.

And if you have both @style and @rendition on the same element, the TEI 
document should be understood in a way that gives @style precedence over 
@rendition.  (Whether and how a processor handles this is another matter.)

Have I got all of that right?

K.


More information about the tei-council mailing list