Results 1 to 4 of 4

Thread: create html elements with fixed width using XSLT

  1. #1
    Join Date
    Oct 2006
    Location
    San Francisco
    Beans
    140
    Distro
    Ubuntu 7.04 Feisty Fawn

    create html elements with fixed width using XSLT

    Hi,

    I have a table that shows some text from the database. The I have defined a fixed width for all elements and table with CSS. But, if one of the element has all letters connected like this gggggggggggggggggggggggggggggggggggggggggggggggggg gggggggggggggggggggggggggggggggggggggggggggggggggg ggggggggggggg

    it will break everything and becomes very big.

    I'm using xslt to transfer my xml document to html, but I don't know if there is any function that can solve this problem.

    I really appreciate you spending your time reading this.

    Thanks in advance.

  2. #2
    Join Date
    May 2007
    Location
    Denmark
    Beans
    139
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: create html elements with fixed width using XSLT


  3. #3
    Join Date
    Oct 2006
    Location
    San Francisco
    Beans
    140
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: create html elements with fixed width using XSLT

    thanks, but it didn't work. I believe there should be a way to do it in xslt.

  4. #4
    Join Date
    May 2007
    Location
    Denmark
    Beans
    139
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: create html elements with fixed width using XSLT

    XSLT converts your to HTML. You should add an attribute to your TD tag (if it is a HTML-table you are creating).
    Code:
    <td style="overflow:hidden">

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •