Thank you very much for your help, Petr.

In command line all was ok.
I've found out that the problem was in the i18n transformer. It was working
in Cocoon 2.0 but in 2.01 it can't process the  i18n:attr="alt" attribute
and crashes. In the Tomcat's console window I can see:
java.lang.RuntimeException
        at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3174)

        at java.lang.Thread.run(Thread.java:484)

When I've removed the i18n:attr="alt" attribute from the <img .../> element
it works fine. The <i18n:text> tag with the same key is processed without
problems.
The xsl leading to the error is the following:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
  <xsl:output method="xml" encoding="ISO-8859-1" indent="yes"/>
  <xsl:param name="Nature"/>
  <xsl:template match="/">
    <menus xmlns:i18n="http://apache.org/cocoon/i18n/2.0";>
      <img src="img/bnewsearch.gif" alt="Search_menu" i18n:attr="alt"/>
    </menus>
  </xsl:template>
</xsl:stylesheet>

Thanks a lot.
    Roman

"Kubanek, Petr" wrote:

> Hi,
>
> two thinks (not sure about them):
>  <?xml version="1.0" encoding="UTF-8"?>
>
> (without empty space)
>
> Do you at end of sitemap use something like html serializer?
>
> Also try to process file from command line.
>
> Petr Kubanek
>
> > -----Ursprüngliche Nachricht-----
> > Von: KOZLOV Roman [mailto:[EMAIL PROTECTED]]
> > Gesendet am: Mittwoch, 27. Februar 2002 15:12
> > An: Cocoon users mail list
> > Betreff: xsl:output problem
> >
> >     Hello,
> >
> >     Could somebody help me, please? Is it possible to use
> > xsl:output in
> > stylesheets processed by cocoon's xslt transformer? It seems
> > that it has
> > no effect.  Indeed, the problem is that I can't tell to xslt
> > transformer
> > that I need a pure XML as a result, but the xslt transformer always
> > transforms <img .../> to <img ...> and it leads to crash of a
> > pipeline.
> > My xsl begins like this:
> >
> >   <?xml version="1.0" encoding="UTF-8" ?>
> >   <xsl:stylesheet version="1.0"
> > xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
> >     <xsl:output method="xml" encoding="ISO-8859-1" indent="yes"/>
> >     . . .
> >
> > Thank you in advance.
> >
> >
> > ---------------------------------------------------------------------
> > 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]>
> >
begin:vcard 
n:KOZLOV;Roman
tel;work:+783 12 65 85 91, +783 12 62 27 76
x-mozilla-html:FALSE
org:DATAVISION CIS;PDM
adr:;;Gagarina Prospect 25b;Nizhny Novgorod;;;RUSSIA
version:2.1
email;internet:[EMAIL PROTECTED]
title:Programmer
fn:Roman KOZLOV
end:vcard

---------------------------------------------------------------------
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