Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XSLT Table defination question..

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello,

I have question about XSLT. I have table with many columns. I want to restrict one of the table column no bigger that say 20 characters. But the problem is value I am putting in from XML file may have words which are longer than 20 characters and so table goes wide... !
e.g if the word is testverylongstringgreaterthantwentychar .
What happens is table goes wider.. and don't restrict it to 20 characters and rest show in next row..
I would like to have output something as follows..
testverylongstringic-
hgreaterthantwentych-
ar

Here is the sample of table defination within XSLT

<TABLE BORDER=&quot;true&quot; CELLSPACING=&quot;1&quot; CELLPADDING=&quot;4&quot; WIDTH=&quot;98%&quot;>
<TR>
<TD WIDTH=&quot;20%&quot; VALIGN=&quot;TOP&quot; BGCOLOR=&quot;#66cccc&quot; HEIGHT=&quot;10&quot;>
<B><center>
<FONT SIZE=&quot;2&quot;>
Attribute Name
</FONT>
</center></B>
</TD>
</TABLE>

Do anyone know anyway I can do what I need ? I would be more than happy even if you point me to right place (if you know) for the question I have.

Thanks a lot for your help,
Mehul.
mehul_k_mehta@msn.com
 
I'm sorry, but I don't see how this relates to Tcl/Tk. Perhaps you should try posting your question to the XML forum. - Ken Jones, President
Avia Training and Consulting
866-TCL-HELP (866-825-4357) US Toll free
415-643-8692 Voice
415-643-8697 Fax
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top