Limits on both sides of a HeaderBodyLinesColumn

Last post 07-03-2009 3:23 AM by jimfaker. 4 replies.

Sort Posts:

  • Limits on both sides of a HeaderBodyLinesColumn

    07-02-2009, 7:31 AM
    • Member
      point Member
    • jimfaker
    • Member since 06-25-2009, 9:31 AM
    • Posts 8

    Hi everyone!

    well i'm working with HeaderBodyLines and HeaderBodyLinesColumn and the thing is that i need to put some limit on the HeaderBodyLinesColumn. I get too much results and i want to put them like this:

    Result1, result2, result3, result4, result5, result6,

    result7, result8, result9, result10, result11

    and not like this (now i'm getting it like this, because of the end of the screen):

    Result1, result2, result3, result4, result5, result6, result7, result8, result9,

    result10, result11

    so my code is this:

    <xsl:choose>
    <xsl:when test="ns1:TpzLineaPedidoAlt">
    <HeaderBodyLines pos="center">
    <HeaderBodyLinesColumn style="default" pos="center" size="180">
    <table border="1" width="12px" height="200px">
    <tr>
    <xsl:value-of select="$sep"/>
    <xsl:value-of select="$sep"/>
    <xsl:for-each select="/ns1:dsTelepizzaAvenewSale/ns1:PosLog/ns1:Transaction/ns1:Sale_Type/ns1:Invoice/ns1:TpzLineaPedido/ns1:TpzLineaPedidoAlt">
    <xsl:apply-templates select="./ns1:Tpz_Nombre" />
    <xsl:if test="position()!=last()">
    <xsl:value-of select="','"/>
    </xsl:if>
    </xsl:for-each>
    </tr>
    </table>

    </HeaderBodyLinesColumn>
    </HeaderBodyLines>
    </xsl:when>
    <xsl:otherwise>
    <xsl:text>
    </xsl:text>
    </xsl:otherwise>
    </xsl:choose>


    As you can see, i use the size but it's not the size of the line, is the size of the text inside. I tried to put it in a table but it doen't work...

    what else i can do to put some limit on the row of the results to put it like on a paragraph with some limits on both sides, left and right (and grow vertically).


    Thanks in advance...

  • Re: Limits on both sides of a HeaderBodyLinesColumn

    07-02-2009, 9:43 AM

    First of all there are lots of errors in ur xslt.. i dont think u can load it..are u able to do it?

    as in the xsl:choose u cant write < br> tag ..u must write xsl:when and xsl:otherwise.. also ther are many un-closed tags like <br and all.. can u please paste a proper code???

    Please mark this post as Answer if it is of help to you!

    " Every wall is a door..! "
  • Re: Limits on both sides of a HeaderBodyLinesColumn

    07-03-2009, 2:03 AM
    • Member
      point Member
    • jimfaker
    • Member since 06-25-2009, 9:31 AM
    • Posts 8
    oh! sorry is the "insert code" thing, i don't know how to used it properly...

    i paste it again without it:

    <xsl:choose>
                  <xsl:when test="ns1:TpzLineaPedidoAlt">
                    <HeaderBodyLines pos="center">
                      <HeaderBodyLinesColumn style="default" pos="center" size="180">
                        <table border="1" width="12px" height="200px">
                          <tr>
                            <xsl:value-of select="$sep"/>
                            <xsl:value-of select="$sep"/>
                            <xsl:for-each select="/ns1:dsTelepizzaAvenewSale/ns1:PosLog/ns1:Transaction/ns1:Sale_Type/ns1:Invoice/ns1:TpzLineaPedido/ns1:TpzLineaPedidoAlt">
                              <xsl:apply-templates select="./ns1:Tpz_Nombre" />
                              <xsl:if test="position()!=last()">
                                <xsl:value-of select="','"/>
                              </xsl:if>
                            </xsl:for-each>
                          </tr>
                        </table>

                      </HeaderBodyLinesColumn>
                    </HeaderBodyLines>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:text>&#xA;</xsl:text>
                  </xsl:otherwise>
                </xsl:choose>
  • Re: Limits on both sides of a HeaderBodyLinesColumn

    07-03-2009, 3:05 AM

    Please provide sample input xml to this xslt

    Please mark this post as Answer if it is of help to you!

    " Every wall is a door..! "
  • Re: Limits on both sides of a HeaderBodyLinesColumn

    07-03-2009, 3:23 AM
    • Member
      point Member
    • jimfaker
    • Member since 06-25-2009, 9:31 AM
    • Posts 8

    ok:

    <?xml version="1.0" standalone="yes"?>
    <?xml-stylesheet type="text/xsl" href="Test.xsl"?>
    <dsTelepizzaAvenewSale xmlns="http://tempuri.org/AvenewSale.xsd">
      <PosLog>
        <Transaction>
          <Sale_Type CurrentPhase="CurrentPhase">
            <Invoice>
              <TpzLineaPedido>
                <Tpz_Nombre>PIZZA PROVENZAL</Tpz_Nombre>
                <TpzLineaPedidoAlt>
                  <Tpz_Nombre>EXTRA QUESO</Tpz_Nombre>
                </TpzLineaPedidoAlt>
                <TpzLineaPedidoAlt>
                  <Tpz_Nombre>S.ROSA</Tpz_Nombre>
                </TpzLineaPedidoAlt>
                <TpzLineaPedidoAlt>
                  <Tpz_Nombre>POLLO</Tpz_Nombre>
                </TpzLineaPedidoAlt>
                <TpzLineaPedidoAlt>
                  <Tpz_Nombre>BACON</Tpz_Nombre>
                </TpzLineaPedidoAlt>
                <TpzLineaPedidoAlt>
                  <Tpz_Nombre>QUESO MOZZARELLA</Tpz_Nombre>
                </TpzLineaPedidoAlt>
                <TpzLineaPedidoAlt>
                  <Tpz_Nombre>SALSA TOMATE  &amp;  ORÉGANO</Tpz_Nombre>
                </TpzLineaPedidoAlt>
                <TpzLineaPedidoAlt>
                  <Tpz_Nombre>BASE PROVENZAL</Tpz_Nombre>
                </TpzLineaPedidoAlt>
              </TpzLineaPedido>
              <TpzLineaPedido>
                <Tpz_Nombre>BOTELLA 1L FANTA LIMÓN</Tpz_Nombre>
              </TpzLineaPedido>
            </Invoice>
          </Sale_Type>
        </Transaction>
      </PosLog>
    </dsTelepizzaAvenewSale>

Page 1 of 1 (5 items)