?split-by-page-break:?

Hi
i am trying to use the command <?split-by-page-break:?> to skip a page in my XmlPublisher report if a certain
condition is true.
The Command doesn't work.( it works only in a loop...)
I tried the commands
<xsl:attribute name="break-before">page</xsl:attribute></xsl:if>
or
<xsl:attribute name="break-after" xdofo:ctx="incontext">page</xsl:attribute>
still unsuccessfuly...
I tried <?if:...> word-page-break <?end if?> .
It creates an empty page if i dont want to skip the page and the page is the last page.
If there was an OR or AND operands in the Bi Publisher IF , i might have solved it..
Is there OR or And opernads in Bi Publisher IF ?
how can i had a dynamic page-break?
Thanks

Conjunction and disjunction are available in "if", but make sure they are in lower case: and or

Similar Messages

  • Error:  Namespace prefix 'split-by-page-break' used but not declared.

    I have my machine reimaged, now when I try to preview an rtf template I get the below error. Nothing has changed in my template and I am using 1.0.0 Build 9 as before my reimage as well. This is an uregent problem that I am not able to find the solution for on my own. Please advise with any help.
    Caused by: oracle.xdo.parser.v2.XPathException: Namespace prefix 'split-by-page-break' used but not declared.
         at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:782)
         at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:564)
         ... 14 more
    Thanks

    I'm just new to XMLP and am receiving the same error.. My error is occuring when trying to use sub-templates in my master template.
    I believe I have the syntax correct:
    To import template file:
    <?import:file:h:///CN_LTR_TEMPLATES.rtf?>
    to call the sub-template:
    <?call-template: signature:?>
    Its the call-template to signature thats generating my error message.. My only thought is that its not calling my import properly..
    Anyway.. Hope this might help you a bit.. you never mentioned anything about using a sub-templates. Perhaps since you formated your computer, your template may be in a different location or gone all together (that is if you are using sub-templates).
    If i figure anything out in the mean time, i'll let you know..
    Edited by: user8682333 on Aug 16, 2009 6:51 AM

  • Do nested tables conflict with ?split-by-page-break:? -getting blank pages

    I have an RTF template with multiple levels of groupingwith sub-totals and pagebreaks at several levels. I'm using nested tables to keep the lowest level group together. The nested table works fine as far as keeping the rows together - if a group doesn't fit on a page, it is pushed to the next page; however, it has created some blank pages in the report. The first time I report the lowest level group details, if they don't fit on one page, I get a blank page followed by the data. Each time the lowest level group changes, this may or may not occur depending on the amount of data.
    If you have come across this before or have some suggestions, I would really appreciate a response. I've been working on this for quite some time and have run out of things to try.
    The template is quite complex and the XML very long, so I won't post. However I can email them to you if you'd like to take a look.
    Thank you for your help,
    Tam
    Edited by: Tam_11 on Nov 19, 2009 2:42 PM

    Thanks for replying.
    Yes, I tried removing the <?split-by-page-break:?> and using MS hard page break (ctrl-enter) and that doesn't work either. My totals moved to a separate page by themselves and I'm still getting the blank pages.
    <?split-by-page-break:?> did exactly what it was supposed to until I added in the nested tables. It's very possible that I did something wrong with my nested tables (only my second XML report). Does anyone have a sample with nested tables that they would be willing to share?

  • Issue With Page Break When Sorting is also applied on group

    Hi
    I am facing an issue with Page break only when I have sorting applied on the grouping that I have in the template.
    The following is the sample XML
    <ROWSET>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Accounts</ORGANIZATION>
    <FULL_NAME>test1,</FULL_NAME>
    <ELEMENT_NAME>TEST BONUS</ELEMENT_NAME>
    <CLASSIFICATION>Supplemental Earnings</CLASSIFICATION>
    <RUN_VALUE>250</RUN_VALUE>
    <MONTH_VALUE>500</MONTH_VALUE>
    <QUARTER_VALUE>500</QUARTER_VALUE>
    <YEAR_VALUE>500</YEAR_VALUE>
    </ROW>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Finance</ORGANIZATION>
    <FULL_NAME>test2</FULL_NAME>
    <ELEMENT_NAME>VOLUNTARY AD AND D</ELEMENT_NAME>
    <CLASSIFICATION>Voluntary Deductions</CLASSIFICATION>
    <RUN_VALUE>5.19</RUN_VALUE>
    <MONTH_VALUE>10.38</MONTH_VALUE>
    <QUARTER_VALUE>10.38</QUARTER_VALUE>
    <YEAR_VALUE>10.38</YEAR_VALUE>
    </ROW>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Finance</ORGANIZATION>
    <FULL_NAME>test3</FULL_NAME>
    <ELEMENT_NAME>HMO MEDICAL</ELEMENT_NAME>
    <CLASSIFICATION>Pre-Tax Deductions</CLASSIFICATION>
    <RUN_VALUE>19.67</RUN_VALUE>
    <MONTH_VALUE>39.34</MONTH_VALUE>
    <QUARTER_VALUE>39.34</QUARTER_VALUE>
    <YEAR_VALUE>39.34</YEAR_VALUE>
    </ROW>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Finance</ORGANIZATION>
    <FULL_NAME>test4</FULL_NAME>
    <ELEMENT_NAME>PENSION NR DC</ELEMENT_NAME>
    <CLASSIFICATION>Pre-Tax Deductions</CLASSIFICATION>
    <RUN_VALUE>0</RUN_VALUE>
    <MONTH_VALUE>360</MONTH_VALUE>
    <QUARTER_VALUE>360</QUARTER_VALUE>
    <YEAR_VALUE>360</YEAR_VALUE>
    </ROW>
    </ROWSET>
    In the template I group the data based on CLASSIFICATION and then sort on the same column CLASSIFICATION. I have a page-break applied for every group.
    When I generate the PDF, I am not getting the page-breaks for every group. Instead some of them are displayed in the same page.
    But when I remove the sorting that I had in the template on the column CLASSIFICATION, I am getting the output in the desired way but not in a sorted order.
    kumar

    Hi All,
    I am using MS-WORD 2007 and BI Publisher desktop 10.1.3.3.3.
    When I use split-by-page-break, splitting is performed for every line .. but not for group of lines.
    Can anybody throw some light on this?
    FYI...
    I am using this code:
    ?if: position() mod 6= 0?
    ?split-by-page-break:?
    ?end if?
    (Of course with in tags)
    in G_LINES loop.
    Can anybody help me out :-(
    --Saritha                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Page Break in rtf template

    Hi
    We have inserted page break using split-by-page-break in rtf template, it is working if we use page break syntax for 2 sub sections after main section
    where as it is not working if we have 3 sections giving syntax below in both cases
    Groups and syntax used with 2 sections (Page break at G_OPERATIONS is working)
    <?for-each@section:G_JOB?>
    <?start:body?>
    <?for-each:G_OPERATIONS?>
    <?IF:CF_SHOW_RES='Y' ?>
    <?for-each:G_RESOURCES?> <?end for-each?>
    <?end if?>
    <?split-by-page-break:?> <?end for-each?>
    <?end for-each?>
    <?end body?>
    Groups and syntax used with 3 sections (Page break at G_OPERATIONS is not working)
    <?for-each@section:G_JOB?>
    <?start:body?>
    <?for-each:G_OPERATIONS?>
    <?IF:CF_SHOW_RES='Y' ?>
    <?for-each:G_RESOURCES?> <?end for-each?>
    <?end if?>
    <?IF:CF_SHOW_OP='Y' ?>
    <?for-each:G_INSTRUCTIONS?> <?end for-each?>
    <?end if?>
    <?split-by-page-break:?> <?end for-each?>
    <?end for-each?>
    <?end body?>
    Let me know if any hints on fixing this issue

    Try using <xsl:attribute name="break-before">page</xsl:attribute> within a form field instead of using the split-by-page-break.
    You can also use this <xsl:attribute name="break-after">page</xsl:attribute> depending on your requirement..
    Thanks,
    Bipuser

  • Page Break In XML Publisher RTF Templates Are Not Working

    Please refer to the Metalink Doc below:
    Subject:      Page Break In XML Publisher RTF Templates Are Not Working.
    Doc ID:      559111.1      
    Type:      PROBLEM
    Modified Date:      24-MAR-2008      
    Status:      MODERATED
    In this Document
    Symptoms
    Cause
    Solution
    References
    This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process, and therefore has not been subject to an independent technical review.
    Applies to:
    Oracle XML Publisher - Version: 5.6.3
    This problem can occur on any platform.
    Symptoms
    Using XML Publisher version 5.6.3 in 11.5.10.
    Find <?split-by-page-break:?> syntax is ignored.
    EXPECTED BEHAVIOR
    Expect page breaks to occur at point set by "split-by-page-break:" code.
    STEPS
    The issue can be reproduced at will with the following steps:
    1. Create a template.
    2. Call split-by-page-break: inside a loop.
    3. Output is not formatted correctly, page break call is ignored,
    Cause
    Unpublished BUG 5011628 SPLIT-BY-PAGE-BREAK NOT WORKING IF ADDED SORT WITHIN DYNAMIC GROUP
    Unpublished BUG 5011628 matches the client issue as it is a call to split-by-page-break inside a loop.
    Fix is in ScalableStringList.java version 115.4.
    This is delivered in <Bug 6165466> XDOFX:CHR(N) FUNCTION FAILING.
    Solution
    To implement the solution, please execute the following steps:
    1. Apply Patch 6165466 when it is released.
    2. Test your report.
    References
    Bug 6165466 - XDOFX:CHR(N) FUNCTION FAILING
    Keywords
    XML~PUBLISHER; LOOP; DYNAMIC~GROUP; PAGE~BREAK;
    Help us improve our service. Please email us your comments for this document. .

    Hi JDev,
    Check this out:
    http://oracle.anilpassi.com/xml-publisher-developing-reports-printed-on-pre-printed-stationary-2.html
    Hope this might help.
    Thanks

  • How to Page Break in RTF Format

    Hello XML Gurus,
    We are changing the reports from Oracle Reports to XML.
    For this, We are using RTF template.
    Can you Please let me know, how to put Page Breaks in RTF format.
    Your reply will be much appreciated.
    Regards
    Ganesan

    Put this where you want the page break :
    <?split-by-page-break:?>

  • Page Break Issue

    Hi All,
    I would need to apply page break on one BI Publisher report.
    For each empoyee the result should get displayed in separate page. I have made Emplid as Group by field in the rtf and applyied <?split-by-page-break:?> on this group.
    I have the below tags in my rtf...
    <?for-each-group:ROW;./Emplid?>
    data filed1,data filed2..................
    <?split-by-page-break:?><?end for-each-group?>
    If rtf file is having one page of report fileds and applied <?split-by-page-break:?> at end of the group, the PDF output places the page-breaks perfectly. In a case of report fileds are in more than one page(rtf contains 2 pages of code) and If I apply <?split-by-page-break:?> at the end of the group. So the report is not making page breaks rather it shows continues data.
    I am using BI 10.1.3.3.2 and word2007. Is the version makes any difference? Can you pls help me on this?
    Thanks in advance!!!
    Regards,
    Ramesh

    The scenario directly below puts an extra line on the top of the page after a group page break:
    <?for-each-group:ROW;.//row?>
    data filed1,data filed2..................
    <?split-by-page-break:?><?end for-each-group?>
    The scenario directly works perfectly, no extral line:
    <?for-each-group:.//row?><xsl:attribute name="break-before">page</xsl:attribute>
    data filed1,data filed2..................
    <?end for-each?>
    Thanks for this one!

  • Problems with page break

    I have a report that is group Row by Land then for each current group by Parcel. So in other words this report is group by Land number and within each land number are the parcel details for this land. My problem is when the next land number with the detail portion of the land number cannot fit all on the same page, I want it to go to the next page. Is there a way to programatically find the number of lines on a current page and when there is only a certain amount of lines left to have it go to the next page? I am using this logic now for my page break and it doesn't work like I want it to:
    <?if@row:position() mod 7=0and position()!= last()?><xsl:attribute name="break-before"xdofo:ctx="incontext">page</xsl:attribute><?end if?>
    Plus for some reason I get a blank page for page 5???
    Anyone that may have any suggestions for me will be greatly appreciated.
    Susie

    hi
    you have to write
    <?split-by-page-break:?> syntax before the <?end for each?> of the parcel group.
    the o/p wouldn/t contain any blank page.

  • Invoice data repeating Address after page break

    Hello forum mebers,
    i have a problem to create a rtf template which prints invoice data with more than one address.
    The original data has more than one invoice to print all papers within one output.
    It is for repeat printing. I want to mark several invoices to print.
    The source data is splitting into header information (Address,Invoice number,summaries), invoice positions and company information (client).
    How to create the xml source ?
    How to create the word rtf template to repeat the invoice address on each page also if the first invoice has more than one page.
    I have tried the <?template feature, but this only repeats the first address of the data.
    I have tried the <?start:body feature, but this creates all addresses on the first page.
    I have tried the <?split-by-page-break feature, but this creates no repeating address header.
    I am clueless.
    Do you have any help or example for this problem ?
    Regards
    Frank

    Hallo Jorge,
    danke für die Antwort und das RTF, aber soweit war ich auch schon.
    Wenn mann jetzt noch sortiert nach ID und einen Header (template) und Footer hinzufügt, funktioniert es nicht mehr.
    Gruß
    Frank

  • How to add a page break after 40 records in a BI Publisher word template

    I have a report with one Group and sub total for each group. I want to check before the start of a new group if the # of rows displayed per page is > 40. If it is >40 I would rather start the new Group on a new page instead of starting at the bottom of the page.
    I have tried something like this but it is not working:
    <?if:position() mod 40 = 0?>PAGE BREAK APPLIED<?split-by-page-break:?><?end if?><?end for-each-group?>
    Anyone has any ideas ?
    Thanks in advance for any assistance you can provide

    Please do not post same questions repeatedly.
    GENERATION OF REPORT USING SQL OR PL/SQL
    See PAGESIZE,NEWPAGE SQL*PLUS commands.

  • Page break problem in Sales Order Report

    Hi,
    I have made a RTF template for Sales Order Report. The template is designed to contain max 10 lines.
    Now if number of lines are less than 10(1 page) or more than 10(2 pages) then PDF output is coming fine.
    But if there are exactly 10 lines then instead of printing only 1 page it prints 2 pages, 1st page with 10 lines of data and 2nd page with only header & footer.
    Can anybody help?
    Regards.

    How do you define when they page break happens?
    Try to use:
    <?split-by-page-break:?>
    Check the user guide for more information.
    Cheers,
    Klaus

  • ?for-each-group? dosen't work with page break - rtf template???

    Hello all,
    When I give a page break inside the for-each-group the group doesn't iterate any code after the page break. I can't give <?split-by-pagebreak?> in this case because I want that loop to be iterated for every department, and should show the report in one column(ms word column), and the department description in two columns.....as this has to happen for every department I can't write separate code........everything should go into one file......
    Final file should look like:
    <for every department>
    <department_report-a table>--one column(ms word column)
    <department_description-a huge text>--two columns(ms word columns)
    <next department>
    how can I achieve this - please help, its urgent.
    Thanks for your time.
    DK

    bipuser thanks for your response
    i will have table data also so i cannot keep in the same line.
    its strange for the last 2-3 days below syntax gave me space at the beginning of each group now it is working i didnt do any change
    <?for-each:G_1?>
    ABCDEFDG
    <?split-by-page-break:?><?end for-each?>

  • How to insert a Page Break Programatically ?

    Hello,
    How to insert a Page Break Programatically ? Please Help..
    Regards,
    Aanta
    Message was edited by:
    user526601

    Hi Praveen,
    Thanks for the reply...
    I think <?split-by-page-break?> syntax is used in a loop. In my case i need to check the condition.. if its true i need to insert Page break.
    I have requirement Like as follows
    - In the Invoice Print Report I need to display “Invoice Appendix” On the Last Page of an Invoice.
    - If I am running for multiple Invoices then Invoice Appendix should print on last page of each Invoice.
    As I'm using XMLP 5.6.1, i'm unable to use <?start@last-page:body?> syntax. So i'm trying to achive this as i'm explaing below.
    Invoice Header
    Invoice Lines
    end Of Lines
    If Invoice_Appendix_flag = 'Yes'
    ---------------<Page Break>------------------
    New Page(Or Last Page)
    Start Of Invoice Appendix
    End Of Invoice Appendix
    End Of Header

  • RH8 for Word - Strange page breaks and non-scoll headers

    RH8 and Word 2007 generating WinHelp 2000.
    Normal page breaks are full page width.
    When I insert one in manually, it shows as only 2 inches wide.
    A tiopic with this short break does not show as a non-scroll header and does not get included in the browse sequence
    Any ideas folks?

    Funny you should ask as I've been trying to figure this out too!
    This is a Word 2007 issue - I assume you are using Office 2007? I am using RH7, but I believe my solution will work for you because it is Word, not RH.
    Anyhow, assuming my Word 2007 assumption is spot-on, you need to change word options.
    Go to the Office button, select Word Options.
    Select Advanced.
    Scroll to bottom of the window and look for Compatibility options (very bottom of the window).
    Expand the layout options.
    Check "don't split apart page break and paragraph mark". (You can apply this to the current open doc you see or all docs - if all docs, you will probably change the global normal template, which you may not want to do.)
    Click Okay.
    Note, if you go to recheck the setting, the format is now listed as "custom".
    Specifically, what was happening is the page break was taking on a "normal" style with 0pts before and after. This caused for me a big gap between the top of the help window and my heading 1 style. (I have my Heading 1 style set to 6pt before and 2pt after and font is 12pt.) Changing the above makes the page break itself take on the Heading 1 style which then also expands across the draft window instead only a couple inches. Other than affecting how the Heading 1 might appear in the compiled help system, I don't see any probelm with using the page break with the normal style applied to it, however, it is a little disconcerting. I noticed this particularly in the Outline view as I sort the pages in my the doc alphabetically based on Heading 1 so I can locate info easily by client name. When I used the "normal" or should I say "abnormal" style page break, these page breaks were excluded from the sort and I had no page breaks! (At least there is still an undo option!)
    I'm not sure, but you may need to modify the robohelp.dot template to keep this permanent for your robohelp for word help systems.
    In addition, your heading style probably does not have the paragraph format setting set to "keep with next", so change the style and that should add the non-scroll to the header.
    One final piece of advice, have the "developer" tab showing in the ribbon. This allows you to access the template and see the styles in your doc. I would  uncheck the "automatically update" option so that when you reopen the doc, it doesn't lose any doc specific style changes you made.
    bb

Maybe you are looking for