infinite loop with break-after

2001-10-31 Thread wali

Hi all
I'm using FOP .15. In xsl:for-each loop I am checking for the number of
records and if they exceds the limit of the records on pne page, I display
Cont. Next page and in the block where I am displaying this message, I am
using break-after="page" to go to the next page. FOP goes into an infinite
loop. But if I remove break-after from the block and just print the Cont.
next page, it works fine but the page is not broken. any guesses what can
be the problem?

thanx
wali


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: page numbering problem...

2001-10-19 Thread wali


Thanx Joerg and Colin
It is working fine
Thanx again for your help. This is how i have done it


   
 
   
Page 

 of 

   
 
 
   
   
 

  

wali


Hi wali,
>but one problem still persists can't do it coz FOP does not allow to
>declare a block with same id more than once in a document.
Use an individually generated id for each end-block. There are various
methods in XSL (so this is more a Q for the XSL-List). Try generate-id()
for most robustness. The following uses the generated id of the report
element which generates the flow. untested)

  
   
 
   
Page 

 of 

   
 
 
   
   
 

  

If you want to refer to the last page number from somewhere else,
you'll have to supply a XPath to the "report" element which created
the flow, for example generate-id(ancestor::report) or
generate-id(//report[2]) or something, depending of the context.

HTH

Joerg Pietschmann






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Antwort: page numbering problem...

2001-10-18 Thread wali


thanx Joerg.
It worked ...
but one problem still persists. I actually wanted to display page 1 of
"". But in this case, I can't do it coz FOP does not allow to
declare a block with same id more than once in a document. So the known
method of getting the total page numbers () can't work here as it does not let me declare the block with
this name in every page sequence.
Moreover is there any limitation with the maximum number of page sequences
we can have in one document.?

Is there any wayout
Please help....
thanks
wali



Hi wali,
>I creat a PDF document which have reports for different customers.  One
>document can contain many reports. Now I want to mark the pages for
reports
>individually. i.e.
...
>Every new report starts at new page. and every report can consist of
>different number of pages.

Create a page sequence for each report. If you are creating the
FO via XSLT, and if you have the reports in individual XML
elements (here called "report"), you can use something like
  
   
 
   Report 
   
 
 
   
   Page

 
 
   
 

  

Tailor this to your needs. Of course you'll have to define
a page master "report" (you may have different page masters
for the title page, the TOC, appendices etc.)

HTH

Joerg Pietschmann




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




page numbering problem...

2001-10-15 Thread wali


Hi every one!
Folks i'm stuck into a problemI hope you guys can help me out...
I creat a PDF document which have reports for different customers.  One
document can contain many reports. Now I want to mark the pages for reports
individually. i.e.
The whole document might have 30 pages. But I dont want to display the page
numbers from "page 1,2,3... of 30" instead i want to give numbering to the
pages with respect to the individual reports. For example if this document
contains 12 reports and one of the reports is on 3 pages then it should
show Page 1 of 3 and with the start of next report, it should start again
from page 1 of the total number of pages for that particular report.

Every new report starts at new page. and every report can consist of
different number of pages.

Please help me out of this problem

Thanx
wali


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: JRun exited abnormally...

2001-07-13 Thread wali



Thank you very much Alex and Jacob. I have reinstalled JRun and have put
the jars in the server's lib as mentioned by Jacob. It is working fine now
Thanx again


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




JRun exited abnormally...

2001-07-13 Thread wali



Hi all!

 I have installed JRun 3.0 on Win 2000 machine. I installed it as
application not as windows services. It was working quite fine but then i
added a couple of jar files in JRUN\servers\lib\ext and some jsps and
classes in my web application while the server was running. Then i
restarted the server. The server did not start and gave the error
"JRun exited abnormally Check evenet log". I checked the log file and found
out that it gave error on loading default-app.
The error is
"error (JRun) JRun Aborting! [javax.xml.parsers.FactoryConfigurationError:
java.lang.classNotFoundException:
org.apache.Crimson.jaxp.SAXParserFactoryImpl]"

Now no server is running even the admin server. Can anybody help me out of
this.???
Thanx
Wajid



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]