RE: simple-page-master related

2010-07-28 Thread Red Light
actually i  taught more in :

fo:page-sequence-master master-name=whatever
 fo:repeatable-page-master-alternatives maximum-repeats=1
   fo:conditional-page-master-reference master-reference=cover
  page-position=first/
 /fo:repeatable-page-master-alternatives
fo:repeatable-page-master-alternatives maximum-repeats=no-limit
  fo:conditional-page-master-reference master- 
reference=rest
  page-position=first/
/fo:repeatable-page-master-alternatives
   /fo:page-sequence-master 

cover when i print only the single page and rest i will add the header the 
long-text


  


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



using subsequence function

2010-07-26 Thread Red Light
Hi,

I'm using Apache 0.94  and i would like to use  the xslt function subsequence

defined in 

http://www.w3.org/2005/xpath-functions/

so i added  xmlns:fn=http://www.w3.org/2005/xpath-functions;   declarations to 
my xsl file

but i got:

(Emplacement inconnu de l'erreur)java.lang.NoSuchMethodException: For extension 
function, could not find method 
org.apache.xml.utils.NodeVector.subsequence([ExpressionContext,] #NUMBER, 
#NUMBER).

download the last xalan version version but  subsequence function is not 
present in the NodeVector class


and thanks


  


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: using subsequence function

2010-07-26 Thread Red Light
forget to mention  that i use this way:

xsl:for-each select=fn:subsequence($set, 1, 3)





  


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



retrive a parameter in the xsl

2010-07-12 Thread Red Light
Hi,

i want to obtain the pagination under this form:  Page 1 of 12
there is an interesting link in the Apache Fop FAQ 
http://xmlgraphics.apache.org/fop/fo.html#fo-total-pages

but i'm having trouble to get the wanted result , in my pdf rendering class
i do the tranformation 2 times , the first time i check if there is any problem 
with the xsl or the xml data then i got and generate the pdf wich is the final 
rendering so in the first one i retrieve the number of pages and i use the 
result in the second rendering.


//setup XSLT
TransformerFactory tranFactory = TransformerFactory.newInstance(); 
Transformer aTransformer = tranFactory.newTransformer(xsltfile); 
aTransformer.setParameter(page-count,nbrPages);   
 
 aTransformer.transform(src, res); 
System.out.println(getParameter : +aTransformer.getParameter(page-count));


it works the print print the number of pages now in my xslt

i declare a variable like:
xsl:variable name=page-count/xsl:variable

and i'm trying to print it:

xsl:value-of select=$page-count /   

but no result(i'm feeling like missing something btu what ;d?) ?


and thanks a lot





  


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: fo:table overflow the fo:region-body

2010-05-07 Thread Red Light
re,

fixed , the problem was the parameters of my fo:simple-page-master


and thanks


  


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



use xsl:call-template dynamicly!

2010-04-21 Thread Red Light
Hi ,

I want in my xsl to dynamicly call a template

for example i got a main xsl file== main.xsl  (which i mport a xsl file == 
subreport1.xsl)

in this subreport1.xsl file i got a template that i declare like that :

 xsl:template  match=projectDetailSection
 xsl:template

and in my main template (main.xsl)

i call the template with:

xsl:call-template name=projectDetailSection /

that's the normal case it's working.Now how could i  call a templace dynamicly 
like:


i define the variable:

xsl:variable name=var1 saxon:assignable=yesprojectDetailSection 
/xsl:variable

and then i call the tempalte dynamicly:

xsl:call-template
name={$var1} saxon:allow-avt=yes /xsl:call-template


my actual code doens't work even if i use saxon 


and thanks a lot for your help


  


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: table border-collapse=collapse and borders

2010-03-22 Thread Red Light
Hi Pascal,

plz any link that explain this behavior  more in detail ?

and thanks

--- On Thu, 3/18/10, Pascal Sancho pascal.san...@takoma.fr wrote:

From: Pascal Sancho pascal.san...@takoma.fr
Subject: Re: table border-collapse=collapse  and borders
To: fop-users@xmlgraphics.apache.org fop-users@xmlgraphics.apache.org
Date: Thursday, March 18, 2010, 8:32 AM

Hi,

FOP atomic measurement is the millipoint (1/72000 in), witch give a
precision highly beyond the screen one (often 1/96 in):
the line can be drawn riding 2 pixels width, while its actual width is
about 1 pixel, so its screen rendering can depend on its position on the
screen grid.
If you zoom in (within the PDF viewer), the difference should disappear.

IMHO, there is no trouble when I see what you get.

Pascal



Red Light a écrit :
 hi,

 i got the following table  :

 fo:table  border-collapse=collapse border=1pt solid black 
 margin-top=6.0pt  table-layout=fixed width=100%  
       
        fo:table-column column-width=25% border-right=1pt solid
 black  /
         fo:table-column column-width=10% border-right=1pt solid
 black /
         fo:table-column column-width=25% border-right=1pt solid
 black /
       fo:table-column column-width=40%  /
    
       fo:table-header     
            fo:table-row   
           
              fo:table-cell   border-bottom=1pt solid black   
                    fo:block margin-top=4mm text-align=center 
 font-size=9.0pt font-family=Arial
                       xsl:textDegree Type/xsl:text
                    /fo:block
                /fo:table-cell           
              fo:table-cell   border-bottom=1pt solid black  
                   fo:block  text-align=center font-size=9.0pt 
 font-family=Arial                                  
                       xsl:textYear received or Expected/xsl:text
                   /fo:block                         
              /fo:table-cell
              fo:table-cell    border-bottom=1pt solid black 
                    fo:block  margin-top=4mm  text-align=center 
 font-size=9.0pt font-family=Arial 
                       xsl:textDisicpline/Field/Speciality/xsl:text
                    /fo:block
                /fo:table-cell
                fo:table-cell   border-bottom=1pt solid black 
                    fo:block margin-top=4mm text-align=center 
 font-size=9pt font-family=Arial 
                       xsl:textInstitution and Country/xsl:text
                    /fo:block
                /fo:table-cell
              /fo:table-row
       /fo:table-header
     fo:table-body 
       xsl:choose
         xsl:when  test=string(/academicBackground/degrees/degree)
                                                                      
           
                   xsl:for-each
 select=/academicBackground/degrees/degree
                  
       fo:table-row   
         fo:table-cell    
          fo:block margin-left=0.5mm font-size=11.0pt
 font-family=Times
             xsl:value-of select=degreeType/xsl:value-of
          /fo:block
         /fo:table-cell
         fo:table-cell   
             fo:block  margin-left=0.5mm font-size=11.0pt
 font-family=Times
                 xsl:value-of select=yearRecExp/xsl:value-of
             /fo:block
         /fo:table-cell
         fo:table-cell   
            fo:block margin-left=0.5mm  font-size=11.0pt
 font-family=Times
                 xsl:value-of select=discipline/xsl:value-of
             /fo:block
         /fo:table-cell
          fo:table-cell  
           fo:block margin-left=0.5mm  font-size=11.0pt
 font-family=Times 
                 xsl:value-of select=institutionCountry/xsl:value-of
             /fo:block
         /fo:table-cell
       /fo:table-row
       /xsl:for-each/xsl:when
       xsl:otherwise
         fo:table-row   
           fo:table-cell number-columns-spanned=4 
          fo:block color=white 
             xsl:textdata/xsl:text
          /fo:block
         /fo:table-cell
         /fo:table-row
       /xsl:otherwise
       /xsl:choose
     /fo:table-body
    /fo:table

 now the 3 borders  have exactly the same code but under a zoom of 100%
 in adobe they don't render the same way ; the 3 border (the one in the
 left of the text : institution country ) appear ticker !

 what i'm doing wrong ?

 and thanks




-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org




  

Re: table border-collapse=collapse and borders

2010-03-18 Thread Red Light
Hi Pascal,

yeah if i zoom in maximal zoom in adobe i see that the borders are exactly the 
same
but the end user (for whom i'm developing the reports) will spot that  one will 
spot that one i'm afraid  ;(  it could be disturbing ,  specially i got a lot 
of tables in my reports.

for the client rendering detail , any work around to get a perfect table   ?

and thanks 



  

conditional drawning of table

2010-03-17 Thread Red Light
Hi ,

in my xsl i have a condition:

    xsl:choose
           xsl:when test=count(/report/listElements/element) gt; 0  
 i draw a table with a border in the bottom
    /xsl:when
                xsl:otherwise
    i draw the same table  but without the border 
at the bottom
                /xsl:otherwise
    /xsl:choose

well that's easy ; there is no problem there ; just the table is consequent  
and i have 8 table in pdf and don't want to duplicate the code.

anyway to do this in an better way ?
and thanks




  

RE: conditional drawning of table

2010-03-17 Thread Red Light
ok thanks guys



  

Re: table border-collapse=collapse and borders

2010-03-17 Thread Red Light
sos


  

Re: how to embed fonts via java, using fop trunk

2010-03-09 Thread Red Light
Hi Adrian,

i'm using 0.95  and i set up the font path in the servlet:


then i reference my font in my conf file:

*
font metrics-url=arial.xml kerning=yes embed-url=ARIAL.TTF
  font-triplet name=Arial style=normal weight=normal/    
    /font
*

where arial.xml and ARIAL.TTF are in placed in the repertory that i passed to 
the servlet;

may be i'm mistaken but yu need to ensure that yu have:

 !-- Base URL for resolving relative URLs --
  base./base

in your conf file.



and good luck


  

complicated pagination

2010-03-02 Thread Red Light
Hi,

i have an assignement where my pdf document have a 4 distinct semantic section 
:(each section which contains a table could have a big amount of data , so one 
section could be displayed on many page)


    *

 section A page 1  
    page 2 
    Page 3



  

complicated pagination

2010-03-02 Thread Red Light


Hi,

i
have an assignement where my pdf document have a 4 distinct semantic
section :(each section which contains a table could have a big amount
of data , so one section could be displayed on many page)


    * how the footer should 
be displayed

 section A page 1  *  Page 1
    page 2  *  Page 2.1
    Page 3  *  Page 3.1
    *
    *
 section B page 1  *  Page 2

    page 2  *  Page 2.2

    Page 3  *  Page 3.2



and so on !.

any idea how should i structure my xsl file (of course a straight conventional 
approach with fo:page-number is not going to be efficient in my case )


and thanks.

NB: sorry for the double posting...