Re: Web page embedding
Yes ;) !!! It is done now. I am gonna test it. thanks a lot. Laurent - Original Message - From: "Jeremias Maerki" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 30, 2003 4:01 PM Subject: Re: Web page embedding > Right. AbstractObjectReader constructs the > EasyGenerationContentHandlerProxy (See line 64 in AbstractObjectReader) and > uses that to initiate SAX events. The proxy then forwards the events to > the real ContentHandler. If you just copy the ProjectTeamXMLReader and > adjust it to your environment you should be fine. > > On 30.01.2003 15:31:18 Laurent Forêt wrote: > > I have missed something. I didn't have understood the mecanism between > > AbstractObjectReader and EasyGenerationContentHandlerProxy. > > Now, if I have well understood the object which extends AbstractObjectReader > > will treat the event generated by himself throuh the handler of type > > EasyGenerationContentHandlerProxy. That's right ? > > > Jeremias Maerki > > > - > 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]
Re: Web page embedding
Right. AbstractObjectReader constructs the EasyGenerationContentHandlerProxy (See line 64 in AbstractObjectReader) and uses that to initiate SAX events. The proxy then forwards the events to the real ContentHandler. If you just copy the ProjectTeamXMLReader and adjust it to your environment you should be fine. On 30.01.2003 15:31:18 Laurent Forêt wrote: > I have missed something. I didn't have understood the mecanism between > AbstractObjectReader and EasyGenerationContentHandlerProxy. > Now, if I have well understood the object which extends AbstractObjectReader > will treat the event generated by himself throuh the handler of type > EasyGenerationContentHandlerProxy. That's right ? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Web page embedding
I have missed something. I didn't have understood the mecanism between AbstractObjectReader and EasyGenerationContentHandlerProxy. Now, if I have well understood the object which extends AbstractObjectReader will treat the event generated by himself throuh the handler of type EasyGenerationContentHandlerProxy. That's right ? Laurent Forêt. - Original Message - From: "Laurent Forêt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 30, 2003 2:37 PM Subject: Re: Web page embedding > Not exactly, my question was more simple : > Can I use XMLReaderAdapter (from the SAX package) instead of > AbstractObjectReader given in your example? > I think yes, but is there something I missed? > > regards, > Laurent Forêt. > > - Original Message - > From: "Jeremias Maerki" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, January 30, 2003 11:48 AM > Subject: Re: Web page embedding > > > > I'm not sure that I understand you correctly. The AbstractObjectReader > > has namespaces disabled per default (See constructor). If you don't use > > namespaces you don't have to do anything but generating XML content (not > > using any namespace prefixes just like in the example). If you need to > > use namespaces it'll get a bit more complicated. Does that answer your > > question? > > > > > > Link to SAX homepage: > > http://www.saxproject.org/?selected=namespaces > > > > On 30.01.2003 11:41:40 Laurent Forêt wrote: > > > I have now well read your embedding example, ExampleObj2PDF. > > > And I am going to use the same process, I have a litlle question about > using > > > which abstract class extending XMLReader : > > > Your own (AbstractObjectReader) or the SAX1 adapter given in sax package > > > (XMLReaderAdapter), knowing that I don't use namespaces ? > > > > > > Jeremias Maerki > > > > > > - > > 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]
Re: Web page embedding
I don't think so. You'll see when you go that way. If it doesn't work it's easy enough to switch. On 30.01.2003 14:37:39 Laurent Forêt wrote: > Not exactly, my question was more simple : > Can I use XMLReaderAdapter (from the SAX package) instead of > AbstractObjectReader given in your example? > I think yes, but is there something I missed? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Web page embedding
Not exactly, my question was more simple : Can I use XMLReaderAdapter (from the SAX package) instead of AbstractObjectReader given in your example? I think yes, but is there something I missed? regards, Laurent Forêt. - Original Message - From: "Jeremias Maerki" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 30, 2003 11:48 AM Subject: Re: Web page embedding > I'm not sure that I understand you correctly. The AbstractObjectReader > has namespaces disabled per default (See constructor). If you don't use > namespaces you don't have to do anything but generating XML content (not > using any namespace prefixes just like in the example). If you need to > use namespaces it'll get a bit more complicated. Does that answer your > question? > > Link to SAX homepage: > http://www.saxproject.org/?selected=namespaces > > On 30.01.2003 11:41:40 Laurent Forêt wrote: > > I have now well read your embedding example, ExampleObj2PDF. > > And I am going to use the same process, I have a litlle question about using > > which abstract class extending XMLReader : > > Your own (AbstractObjectReader) or the SAX1 adapter given in sax package > > (XMLReaderAdapter), knowing that I don't use namespaces ? > > > Jeremias Maerki > > > - > 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]
Re: Web page embedding
I'm not sure that I understand you correctly. The AbstractObjectReader has namespaces disabled per default (See constructor). If you don't use namespaces you don't have to do anything but generating XML content (not using any namespace prefixes just like in the example). If you need to use namespaces it'll get a bit more complicated. Does that answer your question? Link to SAX homepage: http://www.saxproject.org/?selected=namespaces On 30.01.2003 11:41:40 Laurent Forêt wrote: > I have now well read your embedding example, ExampleObj2PDF. > And I am going to use the same process, I have a litlle question about using > which abstract class extending XMLReader : > Your own (AbstractObjectReader) or the SAX1 adapter given in sax package > (XMLReaderAdapter), knowing that I don't use namespaces ? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Web page embedding
I have now well read your embedding example, ExampleObj2PDF. And I am going to use the same process, I have a litlle question about using which abstract class extending XMLReader : Your own (AbstractObjectReader) or the SAX1 adapter given in sax package (XMLReaderAdapter), knowing that I don't use namespaces ? regards, Laurent Forêt. - Original Message - From: "Jeremias Maerki" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 30, 2003 10:17 AM Subject: Re: Web page embedding > Yes, FOP 0.20.5 will contain a set of examples that uses JAXP. They are > currently only accessible via CVS. > > Here's an URL to the example you need: > http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/embedding/java/embedding/ Attic/ExampleXML2PDF.java?rev=1.1.2.1&content-type=text/vnd.viewcvs-markup > > Here's the documentation (see bottom of the page): > http://xml.apache.org/fop/embedding.html > > On 30.01.2003 09:32:11 Laurent Forêt wrote: > > Is there any other example using xsl without these deprecated methods ? > > > Jeremias Maerki > > > - > 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]
Re: Web page embedding
Sorry, I found it. in http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/embedding/java/embedding/ model/Attic/ Laurent. - Original Message - From: "Laurent Forêt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 30, 2003 10:55 AM Subject: Re: Web page embedding > OK thanks a lot. > Now I am lookinkg to the ExampleObj2XML at > http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/embedding/java/embedding/ > Attic/ExampleObj2XML.java?rev=1.1.2.1&content-type=text/vnd.viewcvs-markup > > And We don't have the code for the ProjectTeam class, specially > getSourceForProjectTeam() method. > > Source src = team.getSourceForProjectTeam(); > > My question is now, how can we transform a custom Object (ProjectTeam in the > example) into a Source object ? > > regards, > Laurent Forêt. > > - Original Message - > From: "Jeremias Maerki" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, January 30, 2003 10:17 AM > Subject: Re: Web page embedding > > > > Yes, FOP 0.20.5 will contain a set of examples that uses JAXP. They are > > currently only accessible via CVS. > > > > Here's an URL to the example you need: > > > http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/embedding/java/embedding/ > Attic/ExampleXML2PDF.java?rev=1.1.2.1&content-type=text/vnd.viewcvs-markup > > > > Here's the documentation (see bottom of the page): > > http://xml.apache.org/fop/embedding.html > > > > On 30.01.2003 09:32:11 Laurent Forêt wrote: > > > Is there any other example using xsl without these deprecated methods ? > > > > > > Jeremias Maerki > > > > > > - > > 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]
Re: Web page embedding
OK thanks a lot. Now I am lookinkg to the ExampleObj2XML at http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/embedding/java/embedding/ Attic/ExampleObj2XML.java?rev=1.1.2.1&content-type=text/vnd.viewcvs-markup And We don't have the code for the ProjectTeam class, specially getSourceForProjectTeam() method. Source src = team.getSourceForProjectTeam(); My question is now, how can we transform a custom Object (ProjectTeam in the example) into a Source object ? regards, Laurent Forêt. - Original Message - From: "Jeremias Maerki" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 30, 2003 10:17 AM Subject: Re: Web page embedding > Yes, FOP 0.20.5 will contain a set of examples that uses JAXP. They are > currently only accessible via CVS. > > Here's an URL to the example you need: > http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/embedding/java/embedding/ Attic/ExampleXML2PDF.java?rev=1.1.2.1&content-type=text/vnd.viewcvs-markup > > Here's the documentation (see bottom of the page): > http://xml.apache.org/fop/embedding.html > > On 30.01.2003 09:32:11 Laurent Forêt wrote: > > Is there any other example using xsl without these deprecated methods ? > > > Jeremias Maerki > > > - > 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]
Re: Web page embedding
Yes, FOP 0.20.5 will contain a set of examples that uses JAXP. They are currently only accessible via CVS. Here's an URL to the example you need: http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/embedding/java/embedding/Attic/ExampleXML2PDF.java?rev=1.1.2.1&content-type=text/vnd.viewcvs-markup Here's the documentation (see bottom of the page): http://xml.apache.org/fop/embedding.html On 30.01.2003 09:32:11 Laurent Forêt wrote: > Is there any other example using xsl without these deprecated methods ? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Web page embedding
I am new to this mailing list, and sorry if I ask very known question ? But, I have tried the Servlet exmple code and it seems that it uses deprecated methods : com/clipack/portal/util/FOPRenderer.java [40:1] warning: getParser() in org.apache.fop.apps.XSLTInputHandler has been deprecated driver_.render(inputHandler.getParser(),inputHandler.getInputSource()); ^ com/clipack/portal/util/FOPRenderer.java [40:1] warning: getInputSource() in org.apache.fop.apps.XSLTInputHandler has been deprecated driver_.render(inputHandler.getParser(),inputHandler.getInputSource()); ^ 2 warnings Is there any other example using xsl without these deprecated methods ? I have searched an apidocs on the site and in the folder of my distribution, I didn't find it. Are we obliged to download the sources and make our Apidocs or I have not searched well ? regards all, Laurent Forêt. - Original Message - From: "J.Pietschmann" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 29, 2003 10:00 PM Subject: Re: Web page embedding > Matthew Lancashire wrote: > > Is there an example of an applet. > > You should be able to use the servlet example as starting point. > There is also some general documentation in > http://xml.apache.org/fop/embedding.html > > J.Pietschmann > > > - > 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]
Re: Web page embedding
Matthew Lancashire wrote: Is there an example of an applet. You should be able to use the servlet example as starting point. There is also some general documentation in http://xml.apache.org/fop/embedding.html J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Web page embedding
All the data is already at the browser so the aim is to avoid too much re-sending of info. I just want a button that will translate the browsers data into pdf at the client. Is there an example of an applet. -Original Message- From: Oleg Tkachenko [mailto:[EMAIL PROTECTED] Sent: 29 Jan 2003 13:04 To: [EMAIL PROTECTED] Subject: Re: Web page embedding Matthew Lancashire wrote: > Is it possible to embed the fop viewer in a web page Sure, for example as appplet, but it'll be really huge applet. What's wrong with sending pdf to the browser? -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - 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]
Re: Web page embedding
Matthew Lancashire wrote: Is it possible to embed the fop viewer in a web page Sure, for example as appplet, but it'll be really huge applet. What's wrong with sending pdf to the browser? -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]