Zahida Chaudri wrote:
> I am new to Orbeon and investigating the use of pipelines for a > project we have. Ideally we would like to run this from java using > XML pipelines as we will be dealing with XML content.
Good plan.
> 1. How to run the pipeline from java. I've used OXF.java to work > from and have it running now so that's OK
Yes, please let us know if you encounter any problem.
> 2. When adding a pipeline to run the email processor it is throwing an > error saying the content-type attribute was not expected in the body > element. Error unexpected attribute "content-type"(schema: > http://www.orbeon.com/oxf/email). > However when I run the following it works for only the HTML part. > <body mime-multipart="alternative"> > <part name="part1" content-type="text/plain"> > This is part 1 > </part> > <part name="part2" content-type="text/html"> > <html> > <body> > <p> > This is part 2 > </p> > </body> > </html> > </part>
Both parts should be sent. Did you look at the source of your email and check that only the text/html part was created? BTW don't trust your email client to debug, better look at the actual raw message.
> 3. I will be dealing with a number of XML files and will need to > create the pipeline dynamically, or perhaps pass the parameters into > the pipeline. How do you pass parameters into a pipeline from java?
One solution is to create an ExternalContext instance, store your parameters in the request scope, and then use the Scope generator to retrieve them. This is lacking documentation at the moment though.
Another simple solution is to store your parameters into the PipelineContext instance that you create before running the pipeline, and then using either a simple custom processor or the Java processor, extract this data and make it available as an XML document.
> 4. Is it possible to validate against DTDs?
Not from within XPL. You can validate at parsing time though when using the URL generator, by specifying the <validating>true</validating> parameter. See:
http://www.orbeon.com/ois/doc/processors-generators-url
-Erik
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ orbeon-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/orbeon-user
