[tei-council] extraordinary rendition

John A. Walsh jawalsh at indiana.edu
Sat Oct 27 10:30:23 EDT 2007


Sebastian,

You can do the same thing with @rendition, i.e., have a pre-written CSS 
stylesheet with classes that correspond to @xml:id attributes on 
<rendition> elements.  In your XSLT processing, dumpt the "#" and pass 
your xml:id's into an @class, and it works.  And the way CSS works, you 
can have multiple values in  @class and the various style properties 
from those classes will combine.  E.g., @rendition="#b #i" becomes 
@class="b i" and the corresponding HTML element would be rendered as 
both bold and italic.

John
--
| John A. Walsh
| Assistant Professor, School of Library and Information Science
| Indiana University, 1320 East Tenth Street, Bloomington, IN 47405
| www: <http://www.slis.indiana.edu/faculty/jawalsh/>
| Voice:812-855-8758 Fax:812-856-2062 <mailto:jawalsh at indiana.edu>


Quoting Sebastian Rahtz <sebastian.rahtz at oucs.ox.ac.uk>:

> John A. Walsh wrote:
>>
>> As Conal points out, the <rendition> elements could be easily
>> transformed into an external CSS style sheet.  @rend now is more
>> likely to be transformed into an  html @style attribute, if one is
>> using CSS syntax in @rend.
>>
> or in fact its even easier to say @rend="foo" and have
> a prewritten CSS stylesheet with ".foo {....}" in it...... :-}
>
> --
> Sebastian Rahtz
>
> Information Manager, Oxford University Computing Services
> 13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431
>
>





More information about the tei-council mailing list