W3C home > Mailing lists > Public > spec-prod@w3.org > January to March 2009

Re: question about td's

From: Doug Davis <dug@us.ibm.com>
Date: Wed, 28 Jan 2009 10:32:32 -0500
To: David Carlisle <davidc@nag.co.uk>
Cc: spec-prod@w3.org
Message-ID: <OF4DC1A657.0E8AE51A-ON8525754C.00552888-8525754C.005562BB@us.ibm.com>
Thanks David. 
I basically did what you suggested and added special logic 'phrase'. While 
I was in there I added logic to support a role to "bold" to add <b>'s 
around the text since <b> doesn't seem to be supported either.
It seems odd to me that certain things are not supported by default in the 
xsl - like <br/> or even <b>.  Would you (or anyone else) happen to know 
why such basic things were purposely excluded?

thanks
-Doug
______________________________________________________
STSM  |  Web Services Architect  |  IBM Software Group
(919) 254-6905  |  IBM T/L 444-6905  |  dug@us.ibm.com



David Carlisle <davidc@nag.co.uk> 
01/28/2009 09:54 AM

To
Doug Davis/Raleigh/IBM@IBMUS
cc
spec-prod@w3.org
Subject
Re: question about td's







Depending on why you want line breaks it may make sense to have 

<phrase role="something">jg gasca</phrase>
<phrase role="something">kjhg kjyfg uft </phrase>
<phrase role="something">ausxh iquw qiwu  </phrase>


together with

<xsl:template match="phrase[@role='something']">
<xsl:apply=templates/>
<xsl:if test="following-sibling::*"><br/></xsl:if>
</xsl:template>

in a local xsl file that imports the main one.

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________
Received on Wednesday, 28 January 2009 15:33:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:19:14 GMT