If you use
<span style="display: inline-block" class="teispace">
then you can much more easily change how it looks using CSS based on
browser in use, user preference, etc, at display time.
cheers
stuart
On 29/11/11 06:09, Martin Holmes wrote:
> You inherited one of my dumbitudes:
>
> <span style="inline-block"> should be
>
> <span style="display: inline-block">
>
> Cheers,
> Martin
>
> On 11-11-28 08:57 AM, Sebastian Rahtz wrote:
>> I just changed my XSL to do
>>
>> <xsl:template match="tei:space">
>> <span style="inline-block">
>> <xsl:if test="@extent">
>> <xsl:variable name="unit">
>> <xsl:choose>
>> <xsl:when test="@unit='chars'">
>> <xsl:text>em</xsl:text>
>> </xsl:when>
>> <xsl:when test="@unit">
>> <xsl:value-of select="@unit"/>
>> </xsl:when>
>> <xsl:otherwise>em</xsl:otherwise>
>> </xsl:choose>
>> </xsl:variable>
>> <xsl:attribute name="width">
>> <xsl:value-of select="@extent"/>
>> <xsl:value-of select="$unit"/>
>> </xsl:attribute>
>> </xsl:if>
>> <xsl:text> </xsl:text>
>> </span>
>> </xsl:template>
>>
>>
>> FWIW
>> --
>> Stormageddon Rahtz
>> Head of Information and Support Group
>> Oxford University Computing Services
>> 13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431
>>
>> Sólo le pido a Dios
>> que el futuro no me sea indiferente
>>
>>
>
|