4 Replies Latest reply: Sep 27, 2013 9:51 AM by kamalakarg RSS

    Page break <xsl:attribute name="break-before">page</xsl:attribute> not working as expected

    kamalakarg


      Hi

       

      Below is XML structure for Pack Slip Report

       

      <?for-each@section:G_C_DEL_CUSTOMER_ID?>

         <?CF_FROM_LOCATION?>  ......<?C_SHIP_DATE?>

          <?for-each:G_C_SRC_HDR_ID?> 

        <?if@row:position() mod 1=0?> <xsl:attribute name="background-color" xdofo:ctx="incontext">#DDDDDD</xsl:attribute><?end if?>
           <?C_SO_NUMBER?>  <?SOURCE_HEADER_TYPE_NAME?>  <?CF_REL_OR_NOT?>  <?CF_PO_NUMBER?>
      <?end for-each?>

      <?for-each:G_PARENT_LPN_NO?> 

           <?CONTAINER_NAME?> ....<?CP_TOT_VOL_MASTER_MT?>
            <?for-each:G_C_SHIP_INSTRUCTIONS?> 
         <?CF_ITEM_NUM?> .. <?CF_EXPIRY_DATE?> ..
              <?if:CP_HAZ_FLAG !=0 ?> 
            <?CP_LABEL1?> ....<?CP_LABEL7?>
              <?end if?>
             <?end for-each?>
          <?split-by-page-break:?>
        <?end for-each?>

         <?if: CF_UNSHIPPED = 'Y'?> 
           <?for-each:G_BO_UNSHIPPED_QTY?> 
      <?CF_UNSHIP_ITEM_NAME?> ....<?CP_SDS_UNSHIP_ITEM_DESC?> 
       
             <?end for-each?>
         <?end if?>

      <?end for-each?>

       

      1.Tried Page break <xsl:attribute name="break-before">page</xsl:attribute> at <?for-each:G_PARENT_LPN_NO?>

      Though it is breaking at each LPN but getting extra page in the begining and also one page with printing sales order.

       

      2.Used <?split-by-page-break:?> before <?end for-each?> for group G_PARENT_LPN_NO  but no success

       

      Let me know if there is any otherway we can acheive page break for each LPN change

       

      Thanks

      Kamalakar.G