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 Chris Bowditch <bo...@hotmail.com> on 2005/08/26 10:39:12 UTC
Problem running FOP in servlet (was Re: .FO outout)
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: 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