cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sudhir muthal" <m_sud...@hotmail.com>
Subject Re: C2: fo2pdf Problem
Date Thu, 03 May 2001 11:51:06 GMT
<html><DIV><FONT color=#0033cc face="Geneva, Arial, Sans-serif" size=2>Hi
Georg </FONT></DIV>
<DIV><FONT color=#0033cc face="Geneva, Arial, Sans-serif" size=2>Thanks for your
immidiate response.</FONT></DIV>
<DIV><FONT color=#0033cc face="Geneva, Arial, Sans-serif" size=2>Well I am able
to retrive the param at server side cos I have done this for html transformation</FONT></DIV>
<DIV><FONT color=#0033cc face="Geneva, Arial, Sans-serif" size=2>I want same thing
for pdf. Here are the few lines from&nbsp;my sample code. May be u ll be more clear now.
Same code with little modification works for HTML. For PDF it gives error like</FONT></DIV>
<DIV><FONT size=2><FONT face="Geneva, Arial, Sans-serif"><FONT color=#0033cc><EM><STRONG>"org.apache.xalan.xslt.XSLProcessorException:
Can't have more than one root on a DOM!"<BR></STRONG></EM><EM><STRONG></DIV></STRONG></EM></FONT></FONT></FONT>
<DIV>&nbsp;</DIV>
<DIV><FONT color=#0033cc face="Geneva, Arial, Sans-serif" size=2>I dont understand
this .Can u help me?</FONT></DIV>
<DIV><FONT color=#0033cc face="Geneva, Arial, Sans-serif" size=2>|Sudhir.</FONT></DIV>
<DIV><FONT color=#0033cc face="Geneva, Arial, Sans-serif" size=2>&lt;?xml
version="1.0"?&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=#0033cc face="Geneva, Arial, Sans-serif" size=2>&lt;xsl:stylesheet
version="1.0" <BR>xmlns:xsl="http://www.w3.org/1999/XSL/Transform" <BR>xmlns:fo="http://www.w3.org/1999/XSL/Format"&gt;</FONT></DIV>
<DIV><BR><FONT color=#0033cc face="Geneva, Arial, Sans-serif" size=2>&lt;xsl:output
method="xml" version="1.0" indent="no" encoding="ISO-8859-1"/&gt;<BR>&nbsp;<BR>&nbsp;<BR>&lt;xsl:key
name="chap_name" match="prisection1" use="title"/&gt;</FONT></DIV>
<DIV><FONT color=#0033cc face="Geneva, Arial, Sans-serif" size=2>&lt;xsl:param
name="chapter" select="Keulen"/&gt;</FONT></DIV>
<DIV><FONT color=#0033cc face="Geneva, Arial, Sans-serif" size=2>&lt;xsl:template
match="pribook"&gt;<BR>&lt;xsl:processing-instruction name="cocoon-format"&gt;type="text/xslfo"&lt;/xsl:processing-instruction&gt;&nbsp;</FONT></DIV>
<DIV><FONT color=#0033cc face="Geneva, Arial, Sans-serif" size=2>&nbsp;&nbsp;&lt;fo:root&gt;</FONT></DIV>
<DIV><FONT color=#0033cc face="Geneva, Arial, Sans-serif" size=2>&nbsp;&nbsp;&lt;fo:layout-master-set&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&lt;fo:simple-page-master
page-master-name="main" margin-top="75pt" margin-bottom="75pt" margin-left="80pt" margin-right="80pt"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;fo:region-before
extent="25pt"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;fo:region-body
margin-bottom="55pt" margin-top="55pt"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;fo:region-after
extent="25pt"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/fo:simple-page-master&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;/fo:layout-master-set&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;fo:page-sequence&gt;</FONT></DIV>
<DIV><FONT color=#0033cc face="Geneva, Arial, Sans-serif" size=2>&nbsp;&nbsp;&nbsp;&nbsp;&lt;fo:flow&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;xsl:apply-templates
select="prisection1"/&gt;</FONT></DIV>
<DIV><FONT color=#0033cc face="Geneva, Arial, Sans-serif" size=2>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/fo:flow&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;/fo:page-sequence&gt;<BR>&nbsp;&nbsp;&lt;/fo:root&gt;<BR>&nbsp;&lt;/xsl:template&gt;<BR>&nbsp;<BR>&lt;xsl:template
match="pribook"&gt;</FONT></DIV>
<DIV><FONT color=#0033cc face="Geneva, Arial, Sans-serif" size=2>&lt;xsl:variable
name="chap-details" select="key('chap_name', $chapter)"/&gt;<BR>&lt;xsl:variable
name="route-details" select="key('route_name', $route)"/&gt;</FONT></DIV>
<DIV><BR><FONT color=#0033cc face="Geneva, Arial, Sans-serif" size=2>&lt;xsl:for-each
select="($chap-details)"&gt;<BR>&nbsp;&lt;xsl:apply-templates /&gt;<BR>&lt;/xsl:for-each&gt;</FONT></DIV>
<DIV><FONT color=#0033cc face="Geneva, Arial, Sans-serif" size=2>&lt;xsl:for-each
select="($route-details)"&gt;<BR>&nbsp;&lt;xsl:apply-templates /&gt;<BR>&lt;/xsl:for-each&gt;<BR>&nbsp;<BR>&lt;/xsl:template&gt;<BR>&nbsp;<BR>&nbsp;&lt;xsl:template
match="book/section1/section2/title"&gt;<BR>&nbsp;&nbsp;&lt;fo:block
text-align="start" font-size="20pt" line-height="27pt" color="#B5008E" font-family="sans-serif"
font-weight="bold" font-style="italic" space-after.optimum="18pt" space-before.optimum="18pt"&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;xsl:apply-templates/&gt;<BR>&nbsp;&nbsp;&lt;/fo:block&gt;<BR>&nbsp;&lt;/xsl:template&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV></DIV>&gt;From: "Georg Schmitt" <APACHE@GEORG-SCHMITT.DE>
<DIV></DIV>&gt;Reply-To: cocoon-users@xml.apache.org 
<DIV></DIV>&gt;To: <COCOON-USERS@XML.APACHE.ORG>
<DIV></DIV>&gt;Subject: Re: C2: fo2pdf Problem 
<DIV></DIV>&gt;Date: Thu, 3 May 2001 13:28:00 +0200 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Hello Sudhir 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;to get paramter you need: 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;namespace definition 
<DIV></DIV>&gt; xmlns:xsp-request="http://apache.org/xsp/request" 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;and than you can get the parameter with 
<DIV></DIV>&gt; <?xml:namespace prefix = xsp-request /><xsp-request:get-parameter
name="myname"></xsp-request:get-parameter>
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Georg 
<DIV></DIV>&gt; ----- Original Message ----- 
<DIV></DIV>&gt; From: sudhir muthal 
<DIV></DIV>&gt; To: cocoon-users@xml.apache.org 
<DIV></DIV>&gt; Sent: Thursday, May 03, 2001 12:28 PM 
<DIV></DIV>&gt; Subject: Re: C2: fo2pdf Problem 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; Hello Georg 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; I dont know cocoon2 and dont understand wat u have written
but I also have problem with fop2pdf but is very elementary and I am using cocoon1.8.2 and
you will definitely solve it. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; My problem is I am passing parameter sample.xml?myparam=myname
and I want, xsl should accept this param and process my sample.xml which will give the chapter
of name "myname". 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; Thanking in you anticipation 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; Sudhir Muthal 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; &gt;From: Georg Schmitt 
<DIV></DIV>&gt; &gt;Reply-To: cocoon-users@xml.apache.org 
<DIV></DIV>&gt; &gt;To: cocoon-users@xml.apache.org 
<DIV></DIV>&gt; &gt;Subject: C2: fo2pdf Problem 
<DIV></DIV>&gt; &gt;Date: Thu, 3 May 2001 11:52:33 +0200 (MET DST) 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt;Hello, 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt;i have a problem with cocoon2 and fo2pdf. 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt;this is the code from my sitemap.xmap 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt;-- 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt;-- 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt;when i want to see the glossar.pdf with internet Explorer
or Netscape, i 
<DIV></DIV>&gt; &gt;see nothing. 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt;But when i enter glossar1.pdf and save the source
code in file 
<DIV></DIV>&gt; &gt;"glossar/glossar1.fo", 
<DIV></DIV>&gt; &gt;i see the document by entering glossar2.pdf in my
browser 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt;why does the glossar.pdf pattern not work? 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt;regards, 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; Georg 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt;---------------------------------------------------------------------

<DIV></DIV>&gt; &gt;Please check that your question has not already been
answered in the 
<DIV></DIV>&gt; &gt;FAQ before posting. 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt;To unsubscribe, e-mail: 
<DIV></DIV>&gt; &gt;For additional commands, e-mail: 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;------------------------------------------------------------------------------

<DIV></DIV>&gt; Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; ---------------------------------------------------------------------
Please check that your question has not already been answered in the FAQ before posting. To
unsubscribe, e-mail: For additional commands, e-mail: 
<DIV></DIV><br clear=all><hr>Get Your Private, Free E-mail from MSN
Hotmail at <a href="http://www.hotmail.com">http://www.hotmail.com</a>.<br></p></html>

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message