Re: PDF Table Template?

2002-02-13 Thread Perry Molendijk

This is not a Cocoon error it's a fundamental XSLT error. Constructs like:


</fo:table>


are bad.

If you want to use a named template for a table do this









or

use an  so you can set all the attributes for your tables
in the one spot.
200px








BTW this is probably off topic for this list. Use
[EMAIL PROTECTED]
(http://www.mulberrytech.com/xsl/xsl-list/index.html)  for XSL related
questions.




- Original Message -
From: "Ryan Howe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 14, 2002 7:14 AM
Subject: PDF Table Template?


> Hello,
>
> I am attempting to use the stylesheet included below
> to transform an XML file to PDF using Cocoon 2.0.1. My
> hope to build multiple tables in the PDF file. I have
> created two templates in the stylesheet for opening
> and closing a table.
>
> When running this through Cocoon, I get a
> NullPointerException in Xalan
> (TransformerImpl.run(TransformerImpl.java:3174)). If I
> uncomment the  tags in the stylesheet
> comment the call to the two templates, it runs fine
> through Cocoon.
>
> Since I will create about 6 tables in this file, I
> would like to have a template to open the table and
> setup the columns instead of coding the same thing
> several times.
>
> Would anyone have any ideas how to get around this?
>
>
> 
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> xmlns:fo="http://www.w3.org/1999/XSL/Format";>
>  encoding="UTF-8" indent="yes"/>
> 
>  xmlns:fo="http://www.w3.org/1999/XSL/Format";>
> 
>  page-height="600pt" page-width="850pt">
>  margin-left="25pt" margin-top="25pt"
> margin-right="25pt" margin-bottom="25pt"/>
> 
>  master-name="table-sequence">
>  master-reference="table-page"/>
> 
> 
>
>  master-reference="table-sequence">
> 
> 
> 
> 
>  column-width="80pt"/>
>  column-width="80pt"/>
> 
> 
>  number-columns-spanned="2" padding="2pt"
> background-color="#003366">
> Total Mechandise
> Discounts & Adjustments
> 
> 
> 
> 
> 
>  border-style="solid" padding="2pt">
> 9099
> 
>  border-style="solid" padding="2pt">
> NTB - SOUTH
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
> 
> <fo:table border-style="solid"
> table-omit-header-at-break="true">
> 
> 
>
> 
> 
> </fo:table>
> 
> 
>
> 
>
>
> __
> Do You Yahoo!?
> Send FREE Valentine eCards with Yahoo! Greetings!
> http://greetings.yahoo.com
>
> -
> 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: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>


-
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




PDF Table Template?

2002-02-13 Thread Ryan Howe

Hello,

I am attempting to use the stylesheet included below
to transform an XML file to PDF using Cocoon 2.0.1. My
hope to build multiple tables in the PDF file. I have
created two templates in the stylesheet for opening
and closing a table. 

When running this through Cocoon, I get a
NullPointerException in Xalan
(TransformerImpl.run(TransformerImpl.java:3174)). If I
uncomment the  tags in the stylesheet
comment the call to the two templates, it runs fine
through Cocoon. 

Since I will create about 6 tables in this file, I
would like to have a template to open the table and
setup the columns instead of coding the same thing
several times. 

Would anyone have any ideas how to get around this? 



http://www.w3.org/1999/XSL/Transform";
xmlns:fo="http://www.w3.org/1999/XSL/Format";>


http://www.w3.org/1999/XSL/Format";>



















Total Mechandise
Discounts & Adjustments







9099


NTB 
- SOUTH


























__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

-
Please check that your question has not already been answered in the
FAQ before posting. 

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