Hi,
 I am also trying to create rtf. with Altova wht type of xslt r u
generating? I am creating XSLT-FO file, when I pass this file to fop , I can
produce the rtf.
but, when I use tables for formatting in xslt , I am getting a error
error :
Mismatch: root (http://www.w3.org/1999/XSL/Format) vs. page-sequence
(http://www.w3.org/1999/XSL/Format)
12:14:19,185 ERROR [FOTreeBuilder] javax.xml.transform.TransformerException:
java.lang.IllegalStateException: endElement() called for fo:root where there
is no current element.
12:14:19,185 ERROR [STDERR]
file:///C:/Java/Development/Workspace/FOA/WebRoot/WEB-INF/out/CoreReportfinal.xslt;
Line #15; Column #12; java.lang.IllegalStateException: endElement() called
for fo:root where there is no current element.

I need help on this.
thanks
dtx

karno wrote:
> 
> Hi everyone,
> 
> i'm a little new to Fop and i use the 0.92b version.
> 
> my goal is to produce rtf (and pdf) docs, and I use Altova StyleVision to
> create xslt files and then use them in FOP.
> I would like to know if anyone does the same thing , because i have a
> problem and always produce a blank page ???
> 
> NB : i create xslt 1.0 stylesheet (i get more errors with xslt2.0)
> 
> 
> I may have made mistakes, to create my rtf doc, i use the exemple on this
> page :
> http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleXML2PDF.java?view=markup
> 
> and i have changed the following lines
> 
> ......
> 
>    // Setup output
>             OutputStream out = new java.io.FileOutputStream(myRtfFile);
>             out = new java.io.BufferedOutputStream(out);
> 
>    try {
>                 // Construct fop with desired output format
>                 Fop fop = fopFactory.newFop (MimeConstants.MIME_RTF,
> foUserAgent, out);
> 
>                ......
> 
>                // Set the value of a <param> in the stylesheet
>                 transformer.setParameter("versionParam", " 1.0");
> 
>                ......
>     }
> 
> i thank you for your help..
> 
> 

-- 
View this message in context: 
http://www.nabble.com/altova-stylevision-fop-rtf-tf1930320.html#a8163069
Sent from the FOP - Users mailing list archive at Nabble.com.


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

Reply via email to