You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Anil Pinto <ap...@lobotec.com> on 2005/08/25 20:12:04 UTC
.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: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: XSL Question - Unique list
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Prakash R wrote:
[snip]
> Is there any way using XSL I can get the unique
> metadata[@fieldid=3]/fieldvalues for each product.
Yes. See
http://www.jenitennison.com/xslt/grouping/index.html
As this is a pure XSLT question, you should ask further
questions regarding this topic on the XSL list:
http://www.mulberrytech.com/xsl/xsl-list/
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
XSL Question - Unique list
Posted by Prakash R <ra...@yahoo.com>.
I have an xml document which looks like this:
<products>
<product>
<name>shirt</name>
<metadata fieldid="1">
<fieldvalue>long sleeve</fieldvalue>
<metadata fieldid="2">
<fieldvalue>red</fieldvalue>
<metadata fieldid="3">
<fieldvalue>RG</fieldvalue>
</metadata>
<metadata fieldid="3">
<fieldvalue>LN</fieldvalue>
</metadata>
</metadata>
</metadata>
<metadata fieldid="1">
<fieldvalue>short sleeve</fieldvalue>
<metadata fieldid="2">
<fieldvalue>blue</fieldvalue>
<metadata fieldid="3">
<fieldvalue>RG</fieldvalue>
</metadata>
<metadata fieldid="3">
<fieldvalue>SM</fieldvalue>
</metadata>
</metadata>
</metadata>
<metadata fieldid="1">
<fieldvalue>sleeveless</fieldvalue>
<metadata fieldid="2">
<fieldvalue>red</fieldvalue>
<metadata fieldid="3">
<fieldvalue>LN</fieldvalue>
</metadata>
<metadata fieldid="3">
<fieldvalue>SM</fieldvalue>
</metadata>
</metadata>
</metadata>
</product>
<product>
<name>t-shirt</name>
<metadata fieldid="1">
<fieldvalue>long sleeve</fieldvalue>
<metadata fieldid="2">
<fieldvalue>red</fieldvalue>
<metadata fieldid="3">
<fieldvalue>AA</fieldvalue>
</metadata>
<metadata fieldid="3">
<fieldvalue>BB</fieldvalue>
</metadata>
</metadata>
</metadata>
<metadata fieldid="1">
<fieldvalue>short sleeve</fieldvalue>
<metadata fieldid="2">
<fieldvalue>blue</fieldvalue>
<metadata fieldid="3">
<fieldvalue>CC</fieldvalue>
</metadata>
<metadata fieldid="3">
<fieldvalue>DD</fieldvalue>
</metadata>
</metadata>
</metadata>
<metadata fieldid="1">
<fieldvalue>sleeveless</fieldvalue>
<metadata fieldid="2">
<fieldvalue>red</fieldvalue>
<metadata fieldid="3">
<fieldvalue>AA</fieldvalue>
</metadata>
<metadata fieldid="3">
<fieldvalue>EE</fieldvalue>
</metadata>
</metadata>
</metadata>
</product>
</products>
Is there any way using XSL I can get the unique
metadata[@fieldid=3]/fieldvalues for each product. I
know I can do it across the entire XML doc. In this
example for product(name=shirt) it would be RG,LN and
SM , product(name=t-shirt) it would be AA,BB,CC,DD,EE.
I want to be able to get these separately for each
product and iterate through it within the product if
possible.
Thank you.
Prakash
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Problem running FOP in servlet (was Re: .FO outout)
Posted by Chris Bowditch <bo...@hotmail.com>.
Madhavi Kumar wrote:
> Hi all,
Hi - please don't hijack other people's threads - start a new one.
>
> Im using Jakarta's FOP , to convert xml to PDF
Actually its Apache's FOP. Jakarta is just a project within the Apache
community.
>
> at run time im getting following exception.
>
> javax.servlet.ServletException:cannot allocate servlet instance for
> path /servlets-examples/servlet/FopServlet
>
> rootcause:
> java.lang.NoClassDefFound error:org/apache/avalon/framework/logger/Logger
This means the avalon-framework JAR file is not in the classpath. Since
you are running from an unknown servlet container its hard to give you
precise steps to resolve this issue. But start by checking your
classpath then Web App's WEB-INF folder.
>
> I have chacked the avalon jar file, Logger class is there in the
> executable jar file.
Yes, it is in the JAR, but the servlet cant find the avalon jar.
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: .FO outout
Posted by Madhavi Kumar <ga...@gmail.com>.
Hi all,
Im using Jakarta's FOP , to convert xml to PDF
at run time im getting following exception.
javax.servlet.ServletException:cannot allocate servlet instance for
path /servlets-examples/servlet/FopServlet
rootcause:
java.lang.NoClassDefFound error:org/apache/avalon/framework/logger/Logger
I have chacked the avalon jar file, Logger class is there in the
executable jar file.
I hav no clue how to solve this.
Kindly help me out.
Thnx
Madhavi
On 8/25/05, Anil Pinto <ap...@lobotec.com> wrote:
> I think Andreas just answered my requirement. Thanks guys appreciate the
> help.
>
> -----Original Message-----
> From: Andreas L Delmelle [mailto:a_l.delmelle@pandora.be]
> Sent: Thursday, August 25, 2005 11:17 AM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: .FO outout
>
>
> 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: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
RE: .FO outout
Posted by Anil Pinto <ap...@lobotec.com>.
I think Andreas just answered my requirement. Thanks guys appreciate the
help.
-----Original Message-----
From: Andreas L Delmelle [mailto:a_l.delmelle@pandora.be]
Sent: Thursday, August 25, 2005 11:17 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: .FO outout
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: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: .FO outout
Posted by Andreas L Delmelle <a_...@pandora.be>.
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: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
RE: .FO outout
Posted by Anil Pinto <ap...@lobotec.com>.
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: JBryant@s-s-t.com [mailto:JBryant@s-s-t.com]
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" <ap...@lobotec.com>
08/25/2005 01:12 PM
Please respond to
fop-users@xmlgraphics.apache.org
To
"Fop-Users" <fo...@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: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: .FO outout
Posted by JB...@s-s-t.com.
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" <ap...@lobotec.com>
08/25/2005 01:12 PM
Please respond to
fop-users@xmlgraphics.apache.org
To
"Fop-Users" <fo...@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: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org