Re: Problem with FOP and Schemas

2004-11-04 Thread J.Pietschmann
Jon Steeves wrote:
When I run FOP on an .fo file that was generated by an xslt transform of an xml file with a Doctype reference, everything works fine and the PDF is generated. 

 (e.g., ) 

However, when I replace the Doctype reference in the xml file with an xmlSchema 
reference
  (e.g., )
 FOP halts processing with the message: 

   "6997:679 Currently only table rows are supported in the table body, header, and 
footer"
 and doesn't generate the document.
Guess: The DTD contains default values for attributes, possibly
namespaces, and there is something related to table row generation
triggered by such default values in the stylesheet.
Could it have something to do with ID attributes?
That's another possiblity. Without the DTD, the id() function always
silently returns an empty set. Use a key instead, unless you have
IDREFS lists.
A third possiblity is that you unintentionally tampered with the
default namespace in the version with the schema.
Run the transformation standalone for both possiblities and compare
the resulting FO files.
Note that:
a) No existing parser loads an XSchema by default, you have to
  configure it explicitely.
b) You have to use schemaLocation to tell the parser the schema
 location. A namespace declaration is not a schema location.
c) Commonly, schema locations have to be URIs. Windows path names
 wont cut it.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: fo failed to process Unicode CJK in servlet

2004-11-04 Thread J.Pietschmann
Ma, Liang wrote:
[INFO] Parsing of document complete, stopping renderer
The renderer seems to have finished its job without problems.
Now the below is the error message from Tomcat, I don't know if it is
helpful to solve the problem:
Unfortunately, it's indeed unhelpful.
My best guess is that there is a memory problem caused by
a large embedded font (CJK fonts tend to be large). Try
to increase the JVM memory significantly. There may be any
number of other possiblities, like security violations or
a tomcat bug.
If possible, get the exception which triggered the JSP
exception handler. Have a look at the compiled JSP code.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Problem with FOP and Schemas

2004-11-04 Thread Jon Steeves
Hello:

  I have a strange problem that I'll try to describe:

When I run FOP on an .fo file that was generated by an xslt transform of an xml 
file with a Doctype reference, everything works fine and the PDF is generated. 

 (e.g., ) 



However, when I replace the Doctype reference in the xml file with an xmlSchema 
reference

  (e.g., )


 FOP halts processing with the message: 

   "6997:679 Currently only table rows are supported in the table body, header, 
and footer"

 and doesn't generate the document.

 Some key points:

  1. The xslt transformation still works fine
  2. All the permissions are correct for accessing both the .dtd and the .xsd 
file.

Does anyone have any idea why this might be happening?  Could it have something 
to do with ID attributes?

Thanks

Jon Steeves

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



Re: bold font

2004-11-04 Thread Clay Leeds
On Nov 4, 2004, at 8:29 AM, Mark Donnelly wrote:

blah blah blah

That should be:
blah blah blah

Any ideas how I might get this to work? It works fine for a
font-style="italic".
Mark
font-style="italic" is correct for 'italic'
Web Maestro Clay
--
Clay Leeds - <[EMAIL PROTECTED]>
Webmaster/Developer - Medata, Inc. - 
PGP Public Key: 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: bold font

2004-11-04 Thread Mark Donnelly
Thanks, works fine.

-Original Message-
From: Gehrer Helmut [mailto:[EMAIL PROTECTED]
Sent: 04 November 2004 16:35
To: '[EMAIL PROTECTED]'
Subject: AW: bold font


Hi Marc

Use 

blah blah blah

Instead!

Helmut

> -Ursprüngliche Nachricht-
> Von: Mark Donnelly [mailto:[EMAIL PROTECTED] 
> Gesendet: Donnerstag, 4. November 2004 17:30
> An: [EMAIL PROTECTED]
> Betreff: bold font
> 
> 
> Im trying to get a bold font using the following
> 
> 
> 
> blah blah blah
> 
> 
> 
> When I run it through fop I get the following error:
> 
> 
> 
> [ERROR] defaulted font to any,normal,normal
> [ERROR] unknown font sans-serif,bold,normal so defaulted font to any
> 
> 
> 
> Any ideas how I might get this to work? It works fine for a
> font-style="italic".
> 
> Mark
> 
> -
> 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: bold font

2004-11-04 Thread Chris Bowditch
Mark Donnelly wrote:
Im trying to get a bold font using the following

blah blah blah
This should be:
blah blah blah

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


AW: bold font

2004-11-04 Thread Gehrer Helmut
Hi Marc

Use 

blah blah blah

Instead!

Helmut

> -Ursprüngliche Nachricht-
> Von: Mark Donnelly [mailto:[EMAIL PROTECTED] 
> Gesendet: Donnerstag, 4. November 2004 17:30
> An: [EMAIL PROTECTED]
> Betreff: bold font
> 
> 
> Im trying to get a bold font using the following
> 
> 
> 
> blah blah blah
> 
> 
> 
> When I run it through fop I get the following error:
> 
> 
> 
> [ERROR] defaulted font to any,normal,normal
> [ERROR] unknown font sans-serif,bold,normal so defaulted font to any
> 
> 
> 
> Any ideas how I might get this to work? It works fine for a
> font-style="italic".
> 
> Mark
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



Helmut Gehrer (Helmut Gehrer (Visana)).vcf
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

bold font

2004-11-04 Thread Mark Donnelly
Im trying to get a bold font using the following



blah blah blah



When I run it through fop I get the following error:



[ERROR] defaulted font to any,normal,normal
[ERROR] unknown font sans-serif,bold,normal so defaulted font to any



Any ideas how I might get this to work? It works fine for a
font-style="italic".

Mark

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



RE: fo failed to process Unicode CJK in servlet

2004-11-04 Thread Ma, Liang
Hi Pietschmann,

Thanks for your reply.

The servlet failed within driver.run() and there is no pdf generated. The
servlet produces pdf with standard fonts beatifully. Here is the logs from
fop, which is very much the same when the servlet works with standard fonts

before driver.run
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[INFO] [1]
[WARNING] table-layout=auto is not supported, using fixed!
[WARNING] Sum of fixed column widths 612000 greater than maximum specified
IPD 576000
[WARNING] table-layout=auto is not supported, using fixed!
[WARNING] table-layout=auto is not supported, using fixed!
[WARNING] table-layout=auto is not supported, using fixed!
[WARNING] table-layout=auto is not supported, using fixed!
[WARNING] table-layout=auto is not supported, using fixed!
[WARNING] table-layout=auto is not supported, using fixed!
[WARNING] table-layout=auto is not supported, using fixed!
[WARNING] table-layout=auto is not supported, using fixed!
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[WARNING] table-layout=auto is not supported, using fixed!
[INFO] [2]
[INFO] Parsing of document complete, stopping renderer


Now the below is the error message from Tomcat, I don't know if it is
helpful to solve the problem:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

org.apache.jasper.JasperException
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
54)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:432)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:356)
at
org.apache.struts.tiles.ActionComponentServlet.doForward(ActionComponentServ
let.java:453)
at
org.apache.struts.tiles.ActionComponentServlet.processActionForward(ActionCo
mponentServlet.java:180)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
or

Re: Does anyone know of an XSD to DTD converter?

2004-11-04 Thread Chris Bowditch
Jon Steeves wrote:
Does anyone know of an XSD to DTD converter? Obviously, it doesn't have to capture all of the info in the XSD.
XMLSpy also has facilities for converting between DTD and schemas.

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


RE: MICR font in FOP as an embedded application..

2004-11-04 Thread Anil R. Pinto
Hi Saptarshi,

Hmmm... yes your application need uses the CommanLineOptions class that's
why u mentioned the -c switch.

Well, in my case the process of PDF generation is simple -> XML + XSL = PDF,
in which I have to introduce MICR fonts and I guess the
org.apache.fop.apps.Options will work for me.

But good to know about the CommandLineOptions class, never know when I may
need it.

thanks,
Anil.

-Original Message-
From: Saptarshi Sen [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 04, 2004 12:12 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: MICR font in FOP as an embedded application..


Hi Anil,
We are using FOP to convert SVG images -> FO -> PDF. After forming
the FO file, we issue a command to FOP to convert it to a PDF. The call to
FOP goes somewhat like this:

String[] args = new String[]{"-c", userConfigFile, "-fo", inputFile,
"-pdf", outputFile};

try {
CommandLineOptions options = new CommandLineOptions(args);
Starter starter = options.getStarter();
starter.run();

} catch (FOPException fopEx) {
} catch (FileNotFoundException fnfEx) {
}

Here, userConfigFile, inputFile and outputFile are the paths of the
respective files. If you check the Fop.java source code, it does a similar
thing in it's main() method.

Regards,
Saptarshi.

-Original Message-
From: Anil R. Pinto [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 04, 2004 10:29 AM
To: [EMAIL PROTECTED]
Subject: RE: MICR font in FOP as an embedded application..


Thanks guys,

As the userconfig xml within the jar s not being used, I guess I'll stick to
the approach mentioned by Saptarshi, which hapens to also be the one
suggested on the Apache FOP website, except one thing, in the embedded mode
we need to use the org.apache.fop.apps.Options class that represents the
'-c' switch used for the command line option.

If anyone has any other approach I'll be more than happy to hear from them.

Thanks everyone.
Anil

-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 03, 2004 7:35 PM
To: [EMAIL PROTECTED]
Subject: Re: MICR font in FOP as an embedded application..


Anil R. Pinto wrote:



> But, the main requirement is to use this behavior with FOp running as an
> embeded application (using fop.jar).
>
> Can someone please guide me to a thread that covers this ?

How to use a config file in an embedded environment is described on the
website:

http://xml.apache.org/fop/embedding.html#config-external

>
> I am lost as to where should the custom font-metrics xml and
userconfig.xml
> file reside when using the standard fop.jar (as the userconfig.xml already
> exists in the jar)

Yes, there is indeed a userconfig.xml in FOP.jar, but its not used!



Chris


-
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: MICR font in FOP as an embedded application..

2004-11-04 Thread Saptarshi Sen
Hi Anil,
We are using FOP to convert SVG images -> FO -> PDF. After forming
the FO file, we issue a command to FOP to convert it to a PDF. The call to
FOP goes somewhat like this:

String[] args = new String[]{"-c", userConfigFile, "-fo", inputFile,
"-pdf", outputFile};

try {
CommandLineOptions options = new CommandLineOptions(args);
Starter starter = options.getStarter();
starter.run();

} catch (FOPException fopEx) {
} catch (FileNotFoundException fnfEx) { 
}

Here, userConfigFile, inputFile and outputFile are the paths of the
respective files. If you check the Fop.java source code, it does a similar
thing in it's main() method.

Regards,
Saptarshi.

-Original Message-
From: Anil R. Pinto [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 04, 2004 10:29 AM
To: [EMAIL PROTECTED]
Subject: RE: MICR font in FOP as an embedded application..


Thanks guys,

As the userconfig xml within the jar s not being used, I guess I'll stick to
the approach mentioned by Saptarshi, which hapens to also be the one
suggested on the Apache FOP website, except one thing, in the embedded mode
we need to use the org.apache.fop.apps.Options class that represents the
'-c' switch used for the command line option.

If anyone has any other approach I'll be more than happy to hear from them.

Thanks everyone.
Anil

-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 03, 2004 7:35 PM
To: [EMAIL PROTECTED]
Subject: Re: MICR font in FOP as an embedded application..


Anil R. Pinto wrote:



> But, the main requirement is to use this behavior with FOp running as an
> embeded application (using fop.jar).
>
> Can someone please guide me to a thread that covers this ?

How to use a config file in an embedded environment is described on the
website:

http://xml.apache.org/fop/embedding.html#config-external

>
> I am lost as to where should the custom font-metrics xml and
userconfig.xml
> file reside when using the standard fop.jar (as the userconfig.xml already
> exists in the jar)

Yes, there is indeed a userconfig.xml in FOP.jar, but its not used!



Chris


-
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]

-
Disclaimer
-

"This message(including attachment if any)is confidential and may be 
privileged.Before opening attachments please check them
for viruses and defects.MindTree Consulting Private Limited (MindTree)will not 
be responsible for any viruses or defects or
any forwarded attachments emanating either from within MindTree or outside.If 
you have received this message by mistake please notify the sender by return  
e-mail and delete this message from your system. Any unauthorized use or 
dissemination of this message in whole or in part is strictly prohibited.  
Please note that e-mails are susceptible to change and MindTree shall not be 
liable for any improper, untimely or incomplete transmission."

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

RE: MICR font in FOP as an embedded application..

2004-11-04 Thread Anil R. Pinto
Thanks guys,

As the userconfig xml within the jar s not being used, I guess I'll stick to
the approach mentioned by Saptarshi, which hapens to also be the one
suggested on the Apache FOP website, except one thing, in the embedded mode
we need to use the org.apache.fop.apps.Options class that represents the
'-c' switch used for the command line option.

If anyone has any other approach I'll be more than happy to hear from them.

Thanks everyone.
Anil

-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 03, 2004 7:35 PM
To: [EMAIL PROTECTED]
Subject: Re: MICR font in FOP as an embedded application..


Anil R. Pinto wrote:



> But, the main requirement is to use this behavior with FOp running as an
> embeded application (using fop.jar).
>
> Can someone please guide me to a thread that covers this ?

How to use a config file in an embedded environment is described on the
website:

http://xml.apache.org/fop/embedding.html#config-external

>
> I am lost as to where should the custom font-metrics xml and
userconfig.xml
> file reside when using the standard fop.jar (as the userconfig.xml already
> exists in the jar)

Yes, there is indeed a userconfig.xml in FOP.jar, but its not used!



Chris


-
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]