Loading ...
Sorry, an error occurred while loading the content.

50130XSL + YUI data overflow

Expand Messages
  • aravind dinakar
    Jul 1, 2009

    I am trying to use yui grids inside an XSL. XSL code block and style sheet are attached at the end of the mail.

    I have this problem of having a small border but the content goes outside of the border.
    I expected the contents of //items to be inside the border but I get content which is outside of the border.
    When I use firefox/firebug extension to verify the generated output, each of the yui-u blocks are positioned inside the border but it's the contents from each of the yui-u block that go outside of the border.
    Output is attached with this mail.

    Is there something I am doing wrong. Any pointers would help

    Thanks & Regards,

    --------------XSL block------------------
    <xsl:template match="List">
        <div class="Border" style="padding-bottom:0.2em;">
            <div class="Title" style="padding-left:0.3em">
                <xsl:value-of select="//title"/>&#160;&#160;
                <xsl:value-of select="//link" disable-output-escaping="yes" />
                  <xsl:apply-templates select="//items"/>

       <xsl:template match="items">
            <div class="Text">
                <div class="yui-gf" style="width:100%; padding:1px;">
                    <div class="yui-u first">
                       <strong><a href="{url}"><xsl:value-of select="date"/></a></strong>
                    <div class="yui-u" style="float:left">
                            <a href="{url}"><xsl:value-of select="text" /></a>
                            Random text to lengthen content
                <br />    
    CSS properties of Border, Title, Text classes