Re: [Xslfo-proc-devel] Core function questions

2002-03-03 Thread Peter B. West

Arved,

As I read the spec, the diference is that [i]t is an error if this 
property is not an inherited property, for inherited-property-value(). 
 For from-parent(), it is the value of that property on the parent, 
regardless of inheritance.  This is consistent with the handling of 
shorthands.  Shorthands are not inherited, so they are not an issue for 
inherited-property-value().  They are, however, an issue for 
from-parent(), so special instruction are included for their handling.

Peter

Arved Sandstrom wrote:

What is the difference between this:

The returned 'inherited value' is the computed value of this property on
this object's parent.

which is for inherited-property-value(NCName?), and this:

The [computed] value returned is that for the parent of the formatting
object for which the expression is evaluated.

which is for from-parent(NCName?)? Leaving aside the short-hand and
no-parent behaviour for the latter, the only difference I can see is that
from-parent() subsumes inherited-property-value(), insofar as from-parent()
also handles non-inheritable properties. But for an inheritable property I
think they return the same thing.

The spec says nothing about what properties are applicable for
from-parent(). Is it the set of properties that are valid on the parent,
whether they are inheritable or not? Any thoughts?




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




FopServlet

2002-03-03 Thread Deb Schmutz

I am new to Fop and having problems with the
FopServlet that came with Fop-0.20.2.  Please can
anyone give me any pointers.  TIA. 

Error: 500
Location: /fop/fop
Internal Servlet Error:

javax.servlet.ServletException
at FopServlet.renderXML(FopServlet.java:135)
at FopServlet.doGet(FopServlet.java:77)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at
org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)

Root cause: 
org.apache.fop.apps.FOPException
at
org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:109)
at FopServlet.renderXML(FopServlet.java:128)
at FopServlet.doGet(FopServlet.java:77)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at
org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)

-

java.lang.reflect.InvocationTargetException:
javax.xml.transform.TransformerFactoryConfigurationError:
java.lang.ClassNotFoundException:
org.apache.xalan.processor.TransformerFactoryImpl
at
javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:121)
at
org.apache.fop.apps.TraxInputHandler.getXMLFilter(TraxInputHandler.java:72)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:102)
at FopServlet.renderXML(FopServlet.java:128)
at FopServlet.doGet(FopServlet.java:77)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at
org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
javax.xml.transform.TransformerFactoryConfigurationError:
java.lang.ClassNotFoundException:
org.apache.xalan.processor.TransformerFactoryImpl
at
javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:121)
at
org.apache.fop.apps.TraxInputHandler.getXMLFilter(TraxInputHandler.java:72)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:102)
at FopServlet.renderXML(FopServlet.java:128)
at FopServlet.doGet(FopServlet.java:77)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at
org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at

RE: Example extension

2002-03-03 Thread Adrian Edwards

Hi Keiron,

Fair question, although it is not so much which classes to modify that I
am having trouble with, but just the mechanics of constructing and
referencing an extension jar file that I would like to see.  Perhaps it
is my lack of experience with the Apache project, but the current
documentation appears to assume some knowledge that I just do not have.
I am confident that seeing _any_ example extension at all, regardless of
its purpose, would clear up my confusion.

There are a number of extensions I am considering, but each of them
shares the common requirement of leveraging PDF functionality
(understandably) not supported by XSL-FO.  So the basic model is that
some custom elements in the FO tree need to produce layout objects that
result in some specific PDF syntax.

I guess the simplest example would be that we would like something like:

  my:script-link
script=app.execMenuItem('AcroSrch:Query');
  Search/my:script-link

to result in a text box referencing the following PDF action:

   /S /JavaScript /JS (app.execMenuItem(AcroSrch:Query);) 

Pretty simple stuff, and I can easily follow the processing of
fo:basic-link to create the code I need, but how do I package that code
(or any other) so that FOP recognises script-link and processes it with
my code?

I look forward to your response (and to the new way of doing things
;-)

-Original Message-
From: Keiron Liddle [mailto:[EMAIL PROTECTED]]
Sent: Friday, 1 March 2002 8:13 PM
To: [EMAIL PROTECTED]
Subject: Re: Example extension


Hi,

It really depends on what type of extension you want to do.
This is an area that will change and become much easier in the future
(in 
theory). Examples and help will be available for the new way of doing 
things.

Could you tell us what you want your extension to do so that we have
more 
ideas on what type of extensions people are thinking about. Then we can 
work out how they should be handled if possible.

So to answer your question, there are some extensions but it really 
depends on what you want to do.

On 2002.03.01 08:33 Adrian Edwards wrote:
 Hi fop-dev,
 
 Has anyone written a simple(ish) FOP extension that they would be
 willing to share with the list (or even just me) as an example?  I'm
 talking full jar file here.  The lack of examples (other than the
quite
 complicated SVG extension) in the docs and on the mailing lists is
quite
 frustrating.
 
 We don't have to go through the work of writing it up for publication
 (yet).  Just seeing the mechanics of someone else's jar would be great
 for beginners.
 
 Thanks in advance.

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


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