.FO outout

2005-08-25 Thread Anil Pinto
Hi all,

Is it possible to see the .fo output that FOP uses once it accepts the xml
and xsl to create the pdf from the command line ?

Thanks in advance.
Anil Pinto.


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



Re: .FO outout

2005-08-25 Thread Andreas L Delmelle

On Aug 25, 2005, at 20:12, Anil Pinto wrote:

Hi Anil,

Is it possible to see the .fo output that FOP uses once it accepts the 
xml

and xsl to create the pdf from the command line ?


With FOP 0.20.5 your only option is to run the XSL transformation 
separately, using the xalan.bat/xalan.sh shell scripts that are in the 
distribution.


IIRC, in the development version, a command-line option was recently 
added to make it possible to output the intermediate FO file during the 
FOP-run.


Greetz,

Andreas


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



RE: .FO outout

2005-08-25 Thread Anil Pinto
Thanks for the prompt response Bryant. What I wanted to achieve is try to
get the .fo using the same libs available to the specific FOP verison I am
running from the command line. I am guessing it may not be possible to run
the Transformer API directly from the command line like we do with FOP.

I know Saxon is an option, but then Saxon may use it's own version of the
parser and transformer files which I want to avoid. I want to use the same
parser and transformer files that FOP uses from the command line.

Thanks,
Anil.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 25, 2005 11:24 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: .FO outout


Hi, Anil,

Yes.

To get the .fo file, run Xalan rather than FOP. For example:

xalan -in mysource.xml -xsl mystylesheet.xsl -out myout.fo

Then, to turn the FO file into PDF, you can use:

fop -fo myout.fo -pdf mypdf.pdf

You can also use this feature to separate FOP from Xalan. I use Saxon 8.5,
so that I can use XSLT 2.0 and the run FOP against the resulting FO file.

Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)




Anil Pinto [EMAIL PROTECTED]
08/25/2005 01:12 PM
Please respond to
fop-users@xmlgraphics.apache.org


To
Fop-Users fop-users@xmlgraphics.apache.org
cc

Subject
.FO outout






Hi all,

Is it possible to see the .fo output that FOP uses once it accepts the xml
and xsl to create the pdf from the command line ?

Thanks in advance.
Anil Pinto.


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




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



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



Deleting a blank page after the last element

2005-08-25 Thread bharathi kongara
Hi 

I've the following template in the style sheet

xsl:template match=Section
   fo:block keep-together=always
break-after=page white-space-collapse = false
xsl:apply-templates select=SectionName/
xsl:apply-templates select=SectionHeader/
xsl:apply-templates select=Question/
   /fo:block
 /xsl:template

I'm using a break-after=page to force a page break,
as  my requirement is that each section starts on a
new page. But this is forcing a blank page after the
last section in the generated pdf(ofcorse it will). Is
there any way to remove that(either from the style
sheet directly or after the pdf is generated)?

Thanks
Bharathi

Bharathi Kongara,
Graduate Student,
Department of Computer Science,
Utah State University,
Logan,UT 84321



__ 
Yahoo! Mail for Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 

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



Re: Syntax of xsl:if

2005-08-25 Thread Christopher R. Maden
bharathi kongara wrote:
 Can somebody tell if the yntax of xsl:if I'm using is
 correct?(If so, why didn't it work)

 xsl:template match=Question
 xsl:if test=Question/FullPage = 'true'

Questions like this are better suited to the XSL list; this is not
specific to FOP.  See URL: http://www.mulberrytech.com/xsl/xsl-list/ .

In this case, the problem is that the template match pattern sets the
context for any paths inside it.  So from the context of your Question
element, there is no Question/FullPage, because there is no Question child
of Question.  Change your test to just FullPage = 'true'.

~Chris
-- 
Christopher R. Maden, Principal Consultant, crism consulting
XML-SGML-HTML-DTDs-schemas-XSL-DSSSL-conversion-training-ebooks-B2B
URL: http://crism.maden.org/consulting/ 
PGP Fingerprint: BBA6 4085 DED0 E176 D6D4  5DFC AC52 F825 AFEC 58DA


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