Hi Chrisitian

Thanks for your answer.

My default generator was the 'file' one.

<?xml version="1.0"?>

<!-- minimal sitemap for Cocoon 2 test -->

<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0";>

<!-- ======= Components ======= -->

<map:components>

<map:generators default="file"/>

<map:transformers default="xslt"/>

<map:serializers default="html"/>

<map:matchers default="wildcard">

<map:matcher name="wildcard"

src="org.apache.cocoon.matching.WildcardURIMatcherFactory"/>

</map:matchers>

</map:components>

<!-- ======= Pipelines ======= -->

<map:pipelines>

<map:pipeline>


<map:match pattern="">

<map:generator type="file" src="participants.xml"/>

<map:transform src="participants.xsl"/>

<map:serialize/>

</map:match>

</map:pipeline>

</map:pipelines>

</map:sitemap>






and the complete error message (no more informations in log) is the
following:
stack-trace

org.apache.cocoon.ProcessingException: Failed to generate program code (this
may happen if you use Xalan in incremental processing mode). Please check
log file and/or console for errors.
        at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java:395)
        at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:353)
        at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:312)
        at org.apache.cocoon.sitemap.Handler.run(Handler.java:267)
        at java.lang.Thread.run(Thread.java:536)and my stylesheet is as below
(nothing special except perhaps use of xsl:key?):<?xml version="1.0"
encoding="iso-8859-1"?><xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";><xsl:output method="html"
encoding="iso-8859-1"/><xsl:param name="tri" select="'nom'"/><xsl:key
name="clé_pays" match="/participants/drapeaux/pays" use="nom"/><xsl:template
match="/"><HTML><BODY><H2>PARTICIPANTS</H2><FORM METHOD="GET"
ACTION="participants1"><fieldset class="etiquette" style="padding: 10px;
font-weight:bold; font-family:'Comic Sans MS'; color: #1E94D3 ; border:
outset 5px;"><legend >Trier par : </legend><input type="radio"
name="critere" value="titre">titre</input><input type="radio" name="critere"
value="nom">nom</input><input type="radio" name="critere"
value="prénom">prénom</input><input type="radio" name="critere"
value="organisme">organisme</input><input type="radio" name="critere"
value="pays">pays</input></fieldset><p/><input TYPE="submit" NAME="submit"
value="Soumettre la requête"/></FORM><table id="listing"
class="tableparticipant"><thead><tr><th></th><th>Nom</th><th>Prénom</th><th>
Organisme</th><th>Adresse</th><th>Tél/fax/email</th><th>Pays</th></tr></thea
d><tbody><xsl:apply-templates select="//participant"><xsl:sort
select="*[name()=$tri]"/></xsl:apply-templates></tbody></table></BODY></HTML
></xsl:template><xsl:template match="participant"><tr><td><xsl:value-of
select="titre"/></td><td><xsl:value-of select="nom"/></td><td><xsl:value-of
select="prénom"/></td><td><xsl:value-of
select="organisme"/></td><td><xsl:apply-templates
select="adresse/ligne"/><span class="pays"><xsl:value-of
select="pays"/></span></td><td>Tél : <xsl:value-of select="tél"/><br/>Fax :
<xsl:value-of select="fax"/><xsl:apply-templates
select="e-mail"/></td><td><img style="width: 40px;
height:30px"><xsl:attribute name="title"><xsl:value-of select="pays"
/></xsl:attribute><!--<xsl:attribute name="src">c:\images/<xsl:value-of
select="/participants/drapeaux/pays[nom = current()/pays]/nom-image"
/>.gif</xsl:attribute>--><xsl:attribute name="src">c:/images/<xsl:value-of
select="key('clé_pays',pays)/nom-image"/>.gif</xsl:attribute></img></td></tr
></xsl:template><xsl:template match="ligne"><xsl:value-of
select="."/><br/></xsl:template><xsl:template
match="e-mail[text()]"><br/>Email : <a><xsl:attribute
name="href">mailto:<xsl:value-of select="."/></xsl:attribute><xsl:value-of
select="."/></a></xsl:template>
Cyril.----- Original Message -----
From: "Christian Haul" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 23, 2003 6:17 PM
Subject: Re: error:use Xalan in incremental processing mode


> On 23.Jan.2003 -- 06:02 PM, Cyril Vidal wrote:
> > Hi,
> >
> > I'm sorry if this question has already been asked before. I've checked
out
> > in the archives, but these seem to be  available for the moment...
> > I'm under Windows 2000, j2sdk1.4.1, and Cocoon 2.0.4
> > I just would like to perform an XSLT transformation. In this aim, I use
the
> > very simple sitemap.xmap (snippet):
> >
> > <map:match pattern="">
> >
> > <map:generator src="participants.xml"/>
> >
> > <map:transform src="participants.xsl"/>
> >
> > <map:serialize/>
> >
> > </map:match>
> >
> >
> > But, infortunately, I receive the following error message:
> > message Failed to generate program code (this may happen if you use
Xalan in
> > incremental processing mode). Please check log file and/or console for
> > errors.
> >
> > description org.apache.cocoon.ProcessingException: Failed to generate
> > program code (this may happen if you use Xalan in incremental processing
> > mode). Please check log file and/or console for errors
>
> not enough information. include a larger portion of the logs.
>
> perhaps you have the serverpages generator as default? Try
>   <map:generate type="file" src="participants.xml"/>
>
> Chris.
> --
> C h r i s t i a n       H a u l
> [EMAIL PROTECTED]
>     fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.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/faq/index.html>

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

Reply via email to