hi
i using (html2tei.xsl),
sample: \<b>Test\</b> convert to \<hi rend="bold" >Test\</hi>
but when i using (html.xsl),
sample: \<hi rend="bold" >Test\</hi> convert to \<span style="font-weight:bold" >Test\</span>
and finally i using (html2tei.xsl),
sample:\<span style="font-weight:bold" >Test\</span> convert to \<hi style="font-weight:bold" >Test\</hi>
result: after several convert attribute (rend="bold") removed.
interesting. I cannot quite decide whether this is a good thing or not. Since values for @rend on <hi>
are not pre-defined, the TEI to HTML convert has to make a guess, and instantiate “bold” as meaning
CSS’ font-weight: bold. I am a little reluctant to convert that back to a @rend value. But I will look at this.
--
Sebastian Rahtz
Director (Research) of Academic IT
University of Oxford IT Services
13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431
Não sou nada.
Nunca serei nada.
Não posso querer ser nada.
À parte isso, tenho em mim todos os sonhos do mundo.
I have added code to catch some of these special examples, and also made the round trip more friendly by dropping the autogenerated header and footer.
Although this is already closed, I would say that a) round-tripping is not an explicit requirement for the stylesheets, and b) in this particular case, going from an uncontrolled vocabulary (@rend="bold") to a controlled one (CSS) is a positive improvement.