I tried what you suggested but i still think it is a bug in cocoon
which will show out when you use xsp with ESQL and XSLT together.

Current Sitemap Parameters:
PARAM: '0' VALUE: 'monthly'
PARAM: '../0' VALUE: 'report'

DEBUG   (2002-10-10) 05:43.56:820   [sitemap] (/cocoon/report) 
HttpProcessor[8080][4]/sitemap_xmap: Component 
generator:xsp(Parameters.EMPTY_PARAMETERS)
DEBUG   (2002-10-10) 05:43.56:820   [sitemap] (/cocoon/report) 
HttpProcessor[8080][4]/sitemap_xmap: Source= Xsp/monthly.xsp
DEBUG   (2002-10-10) 05:43.56:820   [sitemap] (/cocoon/report) 
HttpProcessor[8080][4]/sitemap_xmap: Component 
transformer:xslt(Parameters.EMPTY_PARAMETERS)
DEBUG   (2002-10-10) 05:43.56:820   [sitemap] (/cocoon/report) 
HttpProcessor[8080][4]/sitemap_xmap: Source= Xsl/monthly_fall.xsl
DEBUG   (2002-10-10) 05:43.56:820   [sitemap] (/cocoon/report) 
HttpProcessor[8080][4]/sitemap_xmap: Component 
serializer:xml(Parameters.EMPTY_PARAMETERS)
DEBUG   (2002-10-10) 05:43.56:880   [sitemap.transformer.xslt] 
(/cocoon/report) HttpProcessor[8080][4]/TraxTransformer: Using stylesheet: 
'file:/C:/Apache Tomcat 4.0/webapps/cocoon/Xsl/monthly_fall.xsl' in 
org.apache.cocoon.transformation.TraxTransformer@6dddcf, last modified: 
1034192468000
DEBUG   (2002-10-10) 05:43.57:260   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:      select 
count(*) as numerator         from VITAL.Fall     where      
month(fall_date)=9      and     year(fall_date)=2002     and     
dayofmonth(fall_date)=1
DEBUG   (2002-10-10) 05:43.57:430   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:       
select count(*) as denominator          from VITAL.Patient       where       
date_add("2002-9-01",      interval 0 day)       < discharge_date
DEBUG   (2002-10-10) 05:43.57:590   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:      select 
count(*) as numerator         from VITAL.Fall     where      
month(fall_date)=9      and     year(fall_date)=2002     and     
dayofmonth(fall_date)=2
DEBUG   (2002-10-10) 05:43.57:750   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:       
select count(*) as denominator          from VITAL.Patient       where       
date_add("2002-9-01",      interval 1 day)       < discharge_date
DEBUG   (2002-10-10) 05:43.57:920   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:      select 
count(*) as numerator         from VITAL.Fall     where      
month(fall_date)=9      and     year(fall_date)=2002     and     
dayofmonth(fall_date)=3
DEBUG   (2002-10-10) 05:43.58:580   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:       
select count(*) as denominator          from VITAL.Patient       where       
date_add("2002-9-01",      interval 2 day)       < discharge_date
DEBUG   (2002-10-10) 05:43.59:180   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:      select 
count(*) as numerator         from VITAL.Fall     where      
month(fall_date)=9      and     year(fall_date)=2002     and     
dayofmonth(fall_date)=4
DEBUG   (2002-10-10) 05:43.59:350   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:       
select count(*) as denominator          from VITAL.Patient       where       
date_add("2002-9-01",      interval 3 day)       < discharge_date
DEBUG   (2002-10-10) 05:44.00:010   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:      select 
count(*) as numerator         from VITAL.Fall     where      
month(fall_date)=9      and     year(fall_date)=2002     and     
dayofmonth(fall_date)=5
DEBUG   (2002-10-10) 05:44.00:170   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:       
select count(*) as denominator          from VITAL.Patient       where       
date_add("2002-9-01",      interval 4 day)       < discharge_date
DEBUG   (2002-10-10) 05:44.00:340   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:      select 
count(*) as numerator         from VITAL.Fall     where      
month(fall_date)=9      and     year(fall_date)=2002     and     
dayofmonth(fall_date)=6
DEBUG   (2002-10-10) 05:44.00:500   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:       
select count(*) as denominator          from VITAL.Patient       where       
date_add("2002-9-01",      interval 5 day)       < discharge_date
DEBUG   (2002-10-10) 05:44.00:670   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:      select 
count(*) as numerator         from VITAL.Fall     where      
month(fall_date)=9      and     year(fall_date)=2002     and     
dayofmonth(fall_date)=7
DEBUG   (2002-10-10) 05:44.00:830   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:       
select count(*) as denominator          from VITAL.Patient       where       
date_add("2002-9-01",      interval 6 day)       < discharge_date
DEBUG   (2002-10-10) 05:44.01:000   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:      select 
count(*) as numerator         from VITAL.Fall     where      
month(fall_date)=9      and     year(fall_date)=2002     and     
dayofmonth(fall_date)=8
DEBUG   (2002-10-10) 05:44.01:110   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:       
select count(*) as denominator          from VITAL.Patient       where       
date_add("2002-9-01",      interval 7 day)       < discharge_date
DEBUG   (2002-10-10) 05:44.01:320   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:      select 
count(*) as numerator         from VITAL.Fall     where      
month(fall_date)=9      and     year(fall_date)=2002     and     
dayofmonth(fall_date)=9
DEBUG   (2002-10-10) 05:44.01:430   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:       
select count(*) as denominator          from VITAL.Patient       where       
date_add("2002-9-01",      interval 8 day)       < discharge_date
DEBUG   (2002-10-10) 05:44.01:600   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:      select 
count(*) as numerator         from VITAL.Fall     where      
month(fall_date)=9      and     year(fall_date)=2002     and     
dayofmonth(fall_date)=10
DEBUG   (2002-10-10) 05:44.01:760   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:       
select count(*) as denominator          from VITAL.Patient       where       
date_add("2002-9-01",      interval 9 day)       < discharge_date
DEBUG   (2002-10-10) 05:44.01:930   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:      select 
count(*) as numerator         from VITAL.Fall     where      
month(fall_date)=9      and     year(fall_date)=2002     and     
dayofmonth(fall_date)=11
DEBUG   (2002-10-10) 05:44.02:090   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:       
select count(*) as denominator          from VITAL.Patient       where       
date_add("2002-9-01",      interval 10 day)       < discharge_date
DEBUG   (2002-10-10) 05:44.02:260   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:      select 
count(*) as numerator         from VITAL.Fall     where      
month(fall_date)=9      and     year(fall_date)=2002     and     
dayofmonth(fall_date)=12
DEBUG   (2002-10-10) 05:44.02:420   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:       
select count(*) as denominator          from VITAL.Patient       where       
date_add("2002-9-01",      interval 11 day)       < discharge_date
DEBUG   (2002-10-10) 05:44.02:590   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:      select 
count(*) as numerator         from VITAL.Fall     where      
month(fall_date)=9      and     year(fall_date)=2002     and     
dayofmonth(fall_date)=13
DEBUG   (2002-10-10) 05:44.02:750   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:       
select count(*) as denominator          from VITAL.Patient       where       
date_add("2002-9-01",      interval 12 day)       < discharge_date
DEBUG   (2002-10-10) 05:44.02:860   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:      select 
count(*) as numerator         from VITAL.Fall     where      
month(fall_date)=9      and     year(fall_date)=2002     and     
dayofmonth(fall_date)=14
DEBUG   (2002-10-10) 05:44.03:080   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:       
select count(*) as denominator          from VITAL.Patient       where       
date_add("2002-9-01",      interval 13 day)       < discharge_date
DEBUG   (2002-10-10) 05:44.03:190   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:      select 
count(*) as numerator         from VITAL.Fall     where      
month(fall_date)=9      and     year(fall_date)=2002     and     
dayofmonth(fall_date)=15
DEBUG   (2002-10-10) 05:44.03:360   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:       
select count(*) as denominator          from VITAL.Patient       where       
date_add("2002-9-01",      interval 14 day)       < discharge_date
DEBUG   (2002-10-10) 05:44.03:520   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:      select 
count(*) as numerator         from VITAL.Fall     where      
month(fall_date)=9      and     year(fall_date)=2002     and     
dayofmonth(fall_date)=16
DEBUG   (2002-10-10) 05:44.03:690   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:       
select count(*) as denominator          from VITAL.Patient       where       
date_add("2002-9-01",      interval 15 day)       < discharge_date
DEBUG   (2002-10-10) 05:44.03:850   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:      select 
count(*) as numerator         from VITAL.Fall     where      
month(fall_date)=9      and     year(fall_date)=2002     and     
dayofmonth(fall_date)=17
DEBUG   (2002-10-10) 05:44.04:020   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:       
select count(*) as denominator          from VITAL.Patient       where       
date_add("2002-9-01",      interval 16 day)       < discharge_date
DEBUG   (2002-10-10) 05:44.04:180   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:      select 
count(*) as numerator         from VITAL.Fall     where      
month(fall_date)=9      and     year(fall_date)=2002     and     
dayofmonth(fall_date)=18
DEBUG   (2002-10-10) 05:44.04:350   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:       
select count(*) as denominator          from VITAL.Patient       where       
date_add("2002-9-01",      interval 17 day)       < discharge_date
DEBUG   (2002-10-10) 05:44.04:510   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:      select 
count(*) as numerator         from VITAL.Fall     where      
month(fall_date)=9      and     year(fall_date)=2002     and     
dayofmonth(fall_date)=19
DEBUG   (2002-10-10) 05:44.04:680   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:       
select count(*) as denominator          from VITAL.Patient       where       
date_add("2002-9-01",      interval 18 day)       < discharge_date
DEBUG   (2002-10-10) 05:44.04:790   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:      select 
count(*) as numerator         from VITAL.Fall     where      
month(fall_date)=9      and     year(fall_date)=2002     and     
dayofmonth(fall_date)=20
DEBUG   (2002-10-10) 05:44.05:000   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:       
select count(*) as denominator          from VITAL.Patient       where       
date_add("2002-9-01",      interval 19 day)       < discharge_date
DEBUG   (2002-10-10) 05:44.05:110   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:      select 
count(*) as numerator         from VITAL.Fall     where      
month(fall_date)=9      and     year(fall_date)=2002     and     
dayofmonth(fall_date)=21
DEBUG   (2002-10-10) 05:44.05:280   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:       
select count(*) as denominator          from VITAL.Patient       where       
date_add("2002-9-01",      interval 20 day)       < discharge_date
DEBUG   (2002-10-10) 05:44.05:440   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:      select 
count(*) as numerator         from VITAL.Fall     where      
month(fall_date)=9      and     year(fall_date)=2002     and     
dayofmonth(fall_date)=22
DEBUG   (2002-10-10) 05:44.05:610   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:       
select count(*) as denominator          from VITAL.Patient       where       
date_add("2002-9-01",      interval 21 day)       < discharge_date
DEBUG   (2002-10-10) 05:44.05:770   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:      select 
count(*) as numerator         from VITAL.Fall     where      
month(fall_date)=9      and     year(fall_date)=2002     and     
dayofmonth(fall_date)=23
DEBUG   (2002-10-10) 05:44.05:940   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:       
select count(*) as denominator          from VITAL.Patient       where       
date_add("2002-9-01",      interval 22 day)       < discharge_date
DEBUG   (2002-10-10) 05:44.06:100   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:      select 
count(*) as numerator         from VITAL.Fall     where      
month(fall_date)=9      and     year(fall_date)=2002     and     
dayofmonth(fall_date)=24
DEBUG   (2002-10-10) 05:44.06:270   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:       
select count(*) as denominator          from VITAL.Patient       where       
date_add("2002-9-01",      interval 23 day)       < discharge_date
DEBUG   (2002-10-10) 05:44.06:430   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:      select 
count(*) as numerator         from VITAL.Fall     where      
month(fall_date)=9      and     year(fall_date)=2002     and     
dayofmonth(fall_date)=25
DEBUG   (2002-10-10) 05:44.06:600   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:       
select count(*) as denominator          from VITAL.Patient       where       
date_add("2002-9-01",      interval 24 day)       < discharge_date
DEBUG   (2002-10-10) 05:44.06:710   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:      select 
count(*) as numerator         from VITAL.Fall     where      
month(fall_date)=9      and     year(fall_date)=2002     and     
dayofmonth(fall_date)=26
DEBUG   (2002-10-10) 05:44.06:870   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:       
select count(*) as denominator          from VITAL.Patient       where       
date_add("2002-9-01",      interval 25 day)       < discharge_date
DEBUG   (2002-10-10) 05:44.07:040   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:      select 
count(*) as numerator         from VITAL.Fall     where      
month(fall_date)=9      and     year(fall_date)=2002     and     
dayofmonth(fall_date)=27
DEBUG   (2002-10-10) 05:44.07:200   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:       
select count(*) as denominator          from VITAL.Patient       where       
date_add("2002-9-01",      interval 26 day)       < discharge_date
DEBUG   (2002-10-10) 05:44.07:370   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:      select 
count(*) as numerator         from VITAL.Fall     where      
month(fall_date)=9      and     year(fall_date)=2002     and     
dayofmonth(fall_date)=28
DEBUG   (2002-10-10) 05:44.07:530   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:       
select count(*) as denominator          from VITAL.Patient       where       
date_add("2002-9-01",      interval 27 day)       < discharge_date
DEBUG   (2002-10-10) 05:44.07:700   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:      select 
count(*) as numerator         from VITAL.Fall     where      
month(fall_date)=9      and     year(fall_date)=2002     and     
dayofmonth(fall_date)=29
DEBUG   (2002-10-10) 05:44.07:860   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:       
select count(*) as denominator          from VITAL.Patient       where       
date_add("2002-9-01",      interval 28 day)       < discharge_date
DEBUG   (2002-10-10) 05:44.08:030   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:      select 
count(*) as numerator         from VITAL.Fall     where      
month(fall_date)=9      and     year(fall_date)=2002     and     
dayofmonth(fall_date)=30
DEBUG   (2002-10-10) 05:44.08:190   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:       
select count(*) as denominator          from VITAL.Patient       where       
date_add("2002-9-01",      interval 29 day)       < discharge_date


HERE ARE MY SITEMAP DECLARATION
<map:match pattern="monthly" type="wildcard-request-parameter">
                                                                <map:generate 
type="xsp" src="Xsp/monthly.xsp"/>
                                                                <map:transform 
type="xslt" src="Xsl/monthly_fall.xsl"/>
                                                                <map:serialize 
type="xml"/>
</map:match>

No error message etc, it just drop the output for drawing bar and tex
as shown on the XSLT below.

XSP->XML SAVED->XSLT -> OUTPUT works

XSP->XSLT->OUTPUT doesn't works




>From: Geoff Howard <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: DEFINITELY A BUG.. Re: Cocoon FAILS in transforming XML Date: 
>Thu, 10 Oct 2002 12:53:03 -0700 (PDT)
>
>I haven't followed your this whole thread, but I think
>I've had similar problems that turned out to be
>related to namespaces.  Are there any namespaces
>declared in your XSP that are not declared in your
>XSLT (whether they are used in the output or not)?  If
>so, try declaring them in the xslt.  I never looked at
>the problem carefully enough to determine whether it
>was cocoon not handling things properly, or whether it
>was just sloppy handling of namespaces on my part, but
>that has fixed a similar problem for me in the past.
>
>Geoff Howard
>
>
>--- Roger Ting <[EMAIL PROTECTED]> wrote:
> > Hi thx for your response.
> >
> > The funny thing is below
> > What works:
> > 1. i read the XSP that uses ESQL with serverpages
> > generator it will generate
> > the xml file.
> > 2. I save the xml file generated using the the XSP.
> > 3. Do transformation with Xalan or Saxon (Tried
> > both) and the output
> > is correct.
> >
> > What doesn't works:
> > 1. I read the same XSP.
> > 2. pipe it into a XSLT transformer.
> > 3. Serialize it in SVG or XML.
> > 4. 60% of the output is gone.
> >
> > 2 processes are the same except for the first i save
> > it before i transform
> > and serialize the xml file generated from the XSP
> > with ESQL.
> > The second process i pipe the output from XSP
> > directly into the XSLT
> > transformer and it drop most of the output. Another
> > user also faces
> > the same problem. We are using 2 different
> > computers.
> >
> > ===============HERE IS MY XSLT
> > =============================
> > <?xml version="1.0" encoding="UTF-8"?>
> > <xsl:stylesheet version="1.0"
> > xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> > xmlns:icr="http://www.cs.mu.oz.au/340/s340gf";
> > xmlns:svg="http://www.w3.org/2000/svg";>
> >
> > <xsl:output method="xml" indent="yes"/>
> > <xsl:template match="icr:report">
> > <svg width="300" height="300" >
> >     <title>The graphs for the dailyly section </title>
> >     <g transform="translate(100, 100)">
> >             <xsl:apply-templates select="icr:fall"/>
> >     </g>
> > </svg>
> > </xsl:template>
> >
> > <xsl:template match="icr:fall">
> >     <g transform=" translate(-20,-80) scale(2,2)">
> >                     <text >
> >                             <xsl:attribute name="font-size">
> >                                     <xsl:value-of select="6" />
> >                             </xsl:attribute>
> >                             Patient falls record
> >                     </text>
> >     </g>
> >
> >     <g transform="translate(0,100) scale(2,-2)" >
> >                     <!--drawing the axes-->
> >        <line x1="0" y1="0" x2="140" y2="0"
> > style="stroke: black;"/>
> >        <line x1="0" y1="0" x2="0" y2="80"
> > style="stroke: black;"/>
> >     </g>
> >
> >      <!--- Doesn't transform from here onwards
> > ----------->
> >     <xsl:for-each select="icr:monthly">
> >             <xsl:call-template name="draw-bar" >
> >                     <xsl:with-param name="n" select="@numerator"/>
> >                     <xsl:with-param name="d" select="@denominator"/>
> >                     <xsl:with-param name="count"
> > select="position()"/>
> >                     <xsl:with-param name="threshold"
> > select="@threshold"/>
> >                     <xsl:with-param name="next"
> >
>select="following-sibling::icr:monthly/attribute::numerator"/>
> >                     <xsl:with-param name="last"
> > select="count(icr:monthly)"/>
> >             </xsl:call-template>
> >             <xsl:call-template name="write-text" >
> >                             <xsl:with-param name="count"
> > select="position()"/>
> >             </xsl:call-template>
> >     </xsl:for-each>
> >
> > </xsl:template>
> >
> > <xsl:template name="draw-bar">
> >             <xsl:param name="n"/>
> >             <xsl:param name="d"/>
> >             <xsl:param name="count"/>
> >             <xsl:param name="threshold"/>
> >             <xsl:param name="next"/>
> >             <xsl:param name="last"/>
> >
> >
> >                     <g transform="translate(0,100) scale(2,-2)" >
> >                     <!-- these are the bars in order -->
> >                     <rect style="fill:none; stroke:black;"
> > stroke-width="1">
> >                             <xsl:attribute name="y">
> >                                     0
> >                             </xsl:attribute>
> >                             <xsl:attribute name="x">
> >                             <xsl:value-of select="$count*5"/>
> >                             </xsl:attribute>
> >                             <xsl:attribute name="width">
> >                                     5
> >                             </xsl:attribute>
> >                             <xsl:attribute name="height">
> >                                     <xsl:value-of select="20*($n div $d)" />
> >                             </xsl:attribute>
> >                     </rect>
> >
> >                     <rect style="fill:red;stroke:red;">
> >                             <xsl:attribute name="y">
> >                                     <xsl:value-of select="$threshold"/>
> >                             </xsl:attribute>
> >                             <xsl:attribute name="x">
> >                                     <xsl:value-of select="$count*5+1"/>
> >                             </xsl:attribute>
> >                             <xsl:attribute name="width">
> >                                     2
> >                             </xsl:attribute>
> >                             <xsl:attribute name="height">
> >                                     2
> >                             </xsl:attribute>
> >                     </rect>
> >
> >                     <rect style="fill:blue;stroke:blue;">
> >                             <xsl:attribute name="y"><xsl:value-of
> > select="$n*10"/></xsl:attribute>
> >                             <xsl:attribute name="x"><xsl:value-of
> > select="$count*5+1"/></xsl:attribute>
> >                             <xsl:attribute name="width">
> >                                     2
> >                             </xsl:attribute>
> >                             <xsl:attribute name="height">
> >                                     2
> >                             </xsl:attribute>
> >                     </rect>
> >
> >
> >                     <line style="stroke:red; stroke-width:0.4;">
> >                             <xsl:attribute name="y1">
> >                                     <xsl:value-of select="$threshold+1"/>
> >                             </xsl:attribute>
> >                             <xsl:attribute name="x1">
> >                                     <xsl:value-of select="(($count)*5)+2"/>
> >                             </xsl:attribute>
> >                             <xsl:attribute name="y2">
> >                                     <xsl:value-of select="$threshold+1"/>
> >                             </xsl:attribute>
> >                             <xsl:attribute name="x2">
> >                                     <xsl:value-of select="(($count)+1*5)+2"/>
> >                             </xsl:attribute>
> >                     </line>
> >
> >                     <xsl:if test="not($count=$last)">
> >                     <line style="stroke:blue; stroke-width:0.4;">
> >                             <xsl:attribute name="y1"><xsl:value-of
> > select="($n)*10"/></xsl:attribute>
> >                             <xsl:attribute name="x1"><xsl:value-of
> > select="($count*5)+2"/></xsl:attribute>
> >                             <xsl:attribute name="y2"><xsl:value-of
> > select="($next)*10"/></xsl:attribute>
> >                             <xsl:attribute name="x2"><xsl:value-of
> > select="(($count+1)*5)+2"/></xsl:attribute>
> >                     </line>
> >                     </xsl:if>
> >                     </g>
> > </xsl:template>
> >
> > <xsl:template name="write-text">
> >             <xsl:param name="count"/>
> >             <g transform="translate(1,100) scale(2,2)">
> >                     <text>
> >                             <xsl:attribute name="font-size">
> >                                     <xsl:value-of select="5 * 2 div 3" />
> >                             </xsl:attribute>
> >                             <xsl:attribute name="x">
> >                                     <xsl:value-of select="$count*5"/>
> >                             </xsl:attribute>
> >                             <xsl:attribute name="y">6</xsl:attribute>
> >
> >                                             <xsl:value-of select="$count"/>
> >
> >                     </text>
> >                </g>
> > </xsl:template>
> > </xsl:stylesheet>
> >
> >
>========================================================================
> >
> >
> >
> > I am suspecting there is something wrong with cocoon
> > when it come to xsp
> > with esql and do transformation using XSLT. The
> > other user solve
> > the problem by breaking down the XSLT stylesheet to
> > a smaller chunk
> > and it works. He also tried everything before using
> > the last method.
> >
> >
> >
> >
> >
> >
> >
> > >From: Joerg Heinicke <[EMAIL PROTECTED]>
> > >Reply-To: [EMAIL PROTECTED]
> > >To: [EMAIL PROTECTED]
> > >Subject: Re: Cocoon FAILS in transforming XML
> > >Date: Thu, 10 Oct 2002 02:57:32 +0200
> > >
> > >If your Cocoon is working in general, I can only
> > guess that the error is to
> > >search in your stylesheet. Cocoon itself uses XSLT
> > more or less heavily
> > >(e.g. for creating sitemap_xmap.java). Can you show
> > a bit code of your XSP,
> > >XSL and sitemap? You can post a minimum example,
> > where your code gets
> > >already wrong.
> > >
> > >Regards,
> > >
> > >Joerg
> > >
> > >Roger Ting wrote:
> > >>
> > >>I kind of doubt that it has to do with XSP because
> > if i serialize the
> > >>output as XML and do the transformation later by
> > reading the xml file
> > >>generated from the XSP directly, it works fine .
> > HOwever, if i generate
> > >>the XSP directly, some of the output just missing
> > >>
> > >>Anyone use XSP with ESQL and use XSLT
> > transformation faces the same
> > >>problem?
> > >>
> > >>>From: "Ryan Agler" <[EMAIL PROTECTED]>
> > >>>Reply-To: [EMAIL PROTECTED]
> > >>>To: <[EMAIL PROTECTED]>
> > >>>Subject: RE: Cocoon FAILS in transforming XML
> > >>>Date: Wed, 9 Oct 2002 00:20:19 -0400
> > >>>
> > >>>Best guess is that something is wrong with the
> > xsp.  Can you post your
> > >>>log file?
> > >>>
> > >>>-----Original Message-----
> > >>>From: Roger Ting [mailto:[EMAIL PROTECTED]]
> > >>>Sent: Tuesday, October 08, 2002 11:48 PM
> > >>>To: [EMAIL PROTECTED]
> > >>>Subject: Re: Cocoon FAILS in transforming XML
> > >>>
> > >>>I am using the latest binary distribution which
> > is the 2.0.3.
> > >>>
> > >>>I just change the Xalan and Xerces to the latest
> > version. This
> > >>>doesn't help.
> > >>>
> > >>>This only happens when i am using xsp with xslt
> > to do transformation.
> > >>>The xsp are using esql logicsheet. This doesn't
> > happen when i am
> > >>>using file generator to read xml and transform to
> > SVG using XSLT.
> > >>>
> > >>>Any idea?
> > >>>
> > >>>Thx
> > >
> > >
> >
> >---------------------------------------------------------------------
> > >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]>
> >
> >
> >
> >
> >
>_________________________________________________________________
> > Send and receive Hotmail on your mobile device:
> > http://mobile.msn.com
> >
> >
> >
>---------------------------------------------------------------------
> > 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]>
> >
>
>
>__________________________________________________
>Do you Yahoo!?
>Faith Hill - Exclusive Performances, Videos & More
>http://faith.yahoo.com
>
>---------------------------------------------------------------------
>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]>




_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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