cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Morrison, John" <John.Morri...@uk.experian.com>
Subject RE: How can I generate a XSL:FO document from a XML source file?
Date Fri, 27 Apr 2001 14:01:11 GMT
In _your_ xml yes sure, in the xslt? I'm not so sure...  Sorry, I use C2
now, big difference...

-----Original Message-----
From: Martin Mauri [mailto:mmauri@profesi.com.ar]
Sent: 27 April 2001 3:02 pm
To: cocoon-users@xml.apache.org
Subject: Re: How can I generate a XSL:FO document from a XML source file?


You'll always have to add the <?xml version="1.0"?> processing instruction.


I don't believe that you need to add the <?xml version="1.0"?> tag - cocoon
does it for you...?

-----Original Message-----
From: Sander, Stefan [mailto:ssander@microstrategy.com]
Sent: 27 April 2001 2:45 pm
To: 'cocoon-users@xml.apache.org' <mailto:'cocoon-users@xml.apache.org'> 
Subject: RE: How can I generate a XSL:FO document from a XML source file?



Could the problem be that you're not setting the correct MIME type passing
the file back to the browser? 
IMHO, if IE returns you at least something the process must have gone
through Xalan and FOP, even without then processing-instruction.


"Unfortunately, this technique does not work: I cannot output the  required
<?xml version="1.0"> element using a xsl:processing-instruction() tag
because the XSL engine complies about an illegal operation "error:
processing-instruction cannot be xml"). As a consequence, the PDF file is
not recognised as a PDF file by MS IE."

To me, this seems to be a bit short.... 

2 cents! 

Stefan 



-----Original Message----- 
From: Alessandro Marcellini 
To: cocoon-users@xml.apache.org 
Sent: 4/27/2001 9:30 AM 
Subject: Re: How can I generate a XSL:FO document from a XML source file? 

I did it, without any problem. 
I included in my stylesheet a the FO elements like you and then xalan 
did all 
the work! 
But  I've written a file, without cocoon ... 
I hope this can help you ... 
Bye 
    Alessandro 
Alessandro Bottoni wrote: 

> [Many thanks to Oliver Gries and John Menke, who answered my previous 
> question, and please excuse me for this flood of questions: I'm trying 
hard 
> to use Cocoon 1.8 for an interesting "single-source/multiple-output" 
> documentation project] 
> 
> I have an XML document, that is valid respect to my custom DTD, and I 
need 
> to generate a corrisponding XSL:FO document (that is: a document that 
uses 
> elements in the " http://www.w3.org/1999/XSL/Format
<http://www.w3.org/1999/XSL/Format> " namespace). This 
XSL:FO 
> document will be processed by FOP and the resulting PDF will be sent 
to the 
> user agent for the final rendering (using Acrobat Reader). 
> 
> I tried to use a custom-made XSL-T stylesheet for generating the 
XSL:FO 
> document from my XML source. Unfortunately, this technique does not 
work: I 
> cannot output the required <?xml version="1.0"> element using a 
> xsl:processing-instruction() tag because the XSL engine complies about 
an 
> illegal operation ("error: processing-instruction cannot be xml"). As 
a 
> consequence, the PDF file is not recognised as a PDF file by MS IE and 
is 
> not sent to Acrobat Reader for the rendering: it is presented in the 
MS IE 
> as a ASCII text file, instead. 
> 
> Does anybody know how to generate a valid XSL:FO document from a XML 
source 
> file? 
> 
> Does anybody have a working example of such a technique? 
> 
> Many thanks in advance. 
> 
> ------------------------------- 
> 
> Alessandro Bottoni 
> Web Architect 
> Quadrante SRL 
> Piazza Galileo, 6 
> 40123 Bologna 
> abottoni@quadrante.com 
> http://www.quadrante.com <http://www.quadrante.com>  
> 
> --------------------------------------------------------------------- 
> Please check that your question has not already been answered in the 
> FAQ before posting. < http://xml.apache.org/cocoon/faqs.html
<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> 


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



=======================================================================
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission. There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331). 
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF



Mime
View raw message