Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 91578 invoked from network); 24 Aug 2000 11:37:23 -0000 Received: from unknown (HELO webserv.india-today.com) (203.197.217.230) by locus.apache.org with SMTP; 24 Aug 2000 11:37:23 -0000 Received: apparently from Mikee - 192.168.3.26 by webserv.india-today.com with Microsoft SMTPSVC(5.5.1774.114.11); Thu, 24 Aug 2000 17:19:21 +0530 Received: from 192.168.3.20 by Mikee ([192.168.3.26] running VPOP3) with SMTP for ; Fri, 25 Aug 2000 16:56:34 +0530 Message-ID: <000a01c00cf5$9cdfb000$1403a8c0@internet> From: "Manpreet" To: Subject: fo problem !! Date: Wed, 23 Aug 2000 17:01:00 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative;boundary="----=_NextPart_000_0007_01C00D23.B677E0E0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Server: VPOP3 V1.3.0b - Registered to: Living Media India X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0007_01C00D23.B677E0E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Everybody, Im trying to display an xml document as pdf for which I applied an xsl = to it. I get the following error: java.lang.Exception: No formatter for type "" at = org.apache.cocoon.formatter.FormatterFactory.getFormatterForType(Formatte= rFactory.java, Compiled Code) at = org.apache.cocoon.formatter.FormatterFactory.getFormatter(FormatterFactor= y.java, Compiled Code) at org.apache.cocoon.Engine.handle(Engine.java, Compiled Code) at org.apache.cocoon.Cocoon.service(Cocoon.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled = Code) at = org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, = Compiled Code) at org.apache.tomcat.core.ContextManager.service(ContextManager.java, = Compiled Code) at = org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Ht= tpConnectionHandler.java, Compiled Code) at = org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java,= Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) here are the rwo files: book.xml Java And Xml Brett McLaughlin Chapter 1: Introduction These three letters have brought shivers to the almost = every developer in the world today at some point in the last two years. Today's web application now faces a wealth of problems = that we not even considered ten years ago. =20 =20 book.xsl type=3D""text/xslfo" =20 =20 Thanks in advance for your time , Manpreet Singh. ------=_NextPart_000_0007_01C00D23.B677E0E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi Everybody,
 
Im trying to display an xml document = as =20 pdf  for which I applied an xsl to it.
I get the  following = error:
java.lang.Exception: No formatter =
for type ""
	at =
org.apache.cocoon.formatter.FormatterFactory.getFormatterForType(Formatte=
rFactory.java, Compiled Code)
	at =
org.apache.cocoon.formatter.FormatterFactory.getFormatter(FormatterFactor=
y.java, Compiled Code)
	at org.apache.cocoon.Engine.handle(Engine.java, Compiled Code)
	at org.apache.cocoon.Cocoon.service(Cocoon.java, Compiled Code)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled =
Code)
	at =
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, =
Compiled Code)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java, =
Compiled Code)
	at =
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Ht=
tpConnectionHandler.java, Compiled Code)
	at =
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java,=
 Compiled Code)
	at java.lang.Thread.run(Thread.java, Compiled Code)
here are the rwo files:
 
book.xml
 
<?xml = version=3D"1.0"?>
<?cocoon-process=20 type=3D"xslt"?>
<?xml-stylesheet href=3D"book.xsl"=20 type=3D"text/xsl"?>
 
<book>
 <cover>
  <title>=  Java=20 And Xml </title>
  <author> Brett McLaughlin=20 </author>
 </cover>
 
 <contents>
  <chapter=20 id=3D"chapterOne">
  <title>Chapter 1: = Introduction=20 </title>
 
  <paragraph>These = three letters=20 have brought shivers to the almost every developer in the world today at = some=20 point in the last two=20 years.
  </paragraph>
  <paragraph>= Today&apos;s=20 web application now faces a wealth of problems that we not even = considered ten=20 years=20 ago.
  </paragraph>
  
  <= ;/chapter>
 </contents>
</book> 
 
book.xsl
 
<xsl:stylesheet version=3D"1.0"=20 xmlns:xsl=3D"http://www.w3.org/TR/WD-xsl"=20 xmlns:fo=3D"http://www.w3.org/1999/XSL/Format">
 
<xsl:template=20 match=3D"book">
 <xsl:processing-instruction=20 name=3D"cocoon-format">
  type=3D""text/xslfo"
 &= lt;/xsl:processing-instruction> 
 =20 <fo:root = xmlns:fo=3D"http://www.w3.org/1999/XSL/Format">
  =20 <fo:layout-master-set>
  =20 <fo:simple-page-master
  =20 page-master-name=3D"right"
   = margin-top=3D"75pt"
  =20 margin-bottom=3D"25pt"
   = margin-left=3D"100pt"
  =20 margin-right=3D"50pt">
     <fo:region-body = margin-bottom=3D"50pt"/>
     = <fo:region-after=20 extent=3D"25pt"/>
  =20 </fo:simple-page-master>
  =20 <fo:simple-page-master
  =20  page-master-name=3D"left"
  margin-top=3D"75pt"
&nb= sp; margin-bottom=3D"25pt"
  margin-left=3D"100pt"
&= nbsp; margin-right=3D"50pt">
  =20  <fo:region-body=20 margin-bottom=3D"50pt"/>
  <fo:region-after=20 extent=3D"25pt"/>
   = </fo:simple-page-master>
 =20 </fo:layout-master-set>
 
 =20 <fo:page-sequence>
   =20 <fo:sequence-specification>
     =20 <fo:sequence-specifier-alternating
     &n= bsp; =20 page-master-first=3D"right"
       = =20 page-master-odd=3D"right"
       =20 page-master-even=3D"left"/>
    =20 </fo:sequence-specification>
 
     = <fo:static-content=20 flow-name=3D"xsl-after">
     =  <fo:block=20 text-align-last=3D"centered"=20 font-size=3D"10pt">
  <fo:page-number/>
 &n= bsp;</fo:block>
    =20 </fo:static-content>
 
    =20 <fo:flow>
    =20  <xsl:apply-templates/>
    =20 </fo:flow>
  </fo:page-sequence>
 
   =20 </fo:root>
</xsl:template>
 
<xsl:template=20 match=3D"cover/title">
    <fo:block = font-size=3D"36pt"=20 text-align-last=3D"centered"=20 space-before.optimum=3D"24pt">
 <xsl:apply-templates/> </fo:block>
</xsl:template>
 
<xsl:template=20 match=3D"author">
 <fo:block font-size=3D"24pt"=20 text-align-last=3D"centered"=20 space-before.optimum=3D"24pt">
 <xsl:apply-templates/> </fo:block>
</xsl:template>
 

<xsl:template=20 match=3D"chapter">
 <xsl:apply-templates/>
</xsl:t= emplate>
 
<xsl:template=20 match=3D"chapter/title">
 <fo:block font-size=3D"24pt"=20 text-align-last=3D"centered"=20 space-before.optimum=3D"24pt">
 <xsl:apply-templates/> </fo:block>
</xsl:template>
 
<xsl:template=20 match=3D"paragraph">
 <fo:block font-size=3D"12pt"=20 space-before.optimum=3D"12pt"=20 text-align=3D"justified">
 <xsl:apply-templates/>
&nb= sp;</fo:block>
</xsl:template>
 
</xsl:stylesheet> =
 
Thanks in advance for your time = ,
 
Manpreet Singh.
 
 
 
------=_NextPart_000_0007_01C00D23.B677E0E0--