I've made some tests with my xsl stylesheet.
With IE6, there's no problem: I get a correct .fo document.
But when I try with xt, strangely, I obtain a "syntax error" on line 4. (I
think it's the same problem with Trax xslt engine that Cocoon uses in my
pipeline)
This is the beginning of the file:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
  xmlns:fo="http://www.w3.org/1999/XSL/Format";>
 <xsl:template match="/">
    <xsl:apply-templates select="sonnet"/>
  </xsl:template>

So, why this syntax error?
Thanks for your answers,
Cyril.

----- Original Message -----
From: "Bertrand Delacretaz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 19, 2002 4:40 PM
Subject: Re: XML Declaration


> On Tuesday 19 March 2002 16:25, cyril vidal wrote:
> > Exception in creating Transform Handler
>
> Usually means an error in your XSLT transform.
>
> Locating such problems is easier if you can isolate them: you might
> want to comment out parts of your XSLT transform until it works, or
> start with a known good XSLT and work from here step by step.
>
> If you're generating PDF, try outputting the xml of the XSL-FO version
> first (by replacing the fo2pdf serializer with the xml one): until the
> XML version works there's no way you can get PDF output.
>
> > <xsl:processing-instruction
> > name="cocoon-format">type="text/xslfo"</xsl:processing-instruction>
>
> This is not needed with Cocoon 2, the sitemap handles this.
>
> Hope this helps...
> --
>  Bertrand Delacrétaz (codeconsult.ch, jfor.org)
>
>  buzzwords: XML, java, XSLT, cocoon, mentoring/teaching/coding.
>  disclaimer: eternity is very long. mostly towards the end. get ready.
>
>
>
>
>
>
> ---------------------------------------------------------------------
> 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]>

Reply via email to