cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivelin Ivanov" <ive...@apache.org>
Subject Re: [PROBLEM]: XSLTC does not work
Date Sun, 15 Dec 2002 05:09:30 GMT

Ilene,

Thank you for the suggested workaround.
I tried it, but it turns out that other pages of the application break when
I remove the "*" template.
Seems like I will need to wait for another fix.

Cheer,

Ivelin



----- Original Message -----
From: <ilene@ca.ibm.com>
To: <ivelin@apache.org>
Cc: <cocoon-dev@xml.apache.org>; <xalan-dev@xml.apache.org>
Sent: Saturday, December 14, 2002 3:15 PM
Subject: Re: [PROBLEM]: XSLTC does not work


> Hi,
>
> I had a quick look at this.  I'm not sure I was applying the correct
> stylesheet to the correct input.  I simply tried applying wizard2html.xsl
> to the input document you supplied (XMLForm.xml).  The output was, indeed,
> quite different.  It looks like XSLTC was applying the most general
> template:
>
> <xsl:template match="*">
>
> when other templates, such as:
>
> <xsl:template match="xf:*"> should have been matching.
>
> I think the difference in template resolution was happening from the
> apply-templates element in here:
>
> <xsl:for-each select="*[name() != 'xf:submit']">
>  <xsl:choose>
>    <xsl:when test="name() = 'error'"/>
>    <xsl:when test="name() = 'xf:caption'"/>
>    <xsl:when test="xf:*">
>       <xsl:apply-templates select="."/>
>    </xsl:when>
>    <xsl:otherwise>
>       <xsl:copy-of select="."/>
>    </xsl:otherwise>
>   </xsl:choose>
> </xsl:for-each>
>
>
> I'm not sure if this template, at the end of the stylesheet is needed:
>
> <xsl:template match="*">
>   <xsl:copy-of select="." />
> </xsl:template>
>
> When, I removed it, I got comparable output.    Is that a possible
> temporary solution?
>
> Ilene.
>
>
>
>
>                       "Ivelin Ivanov"
>                       <ivelin@apache.or        To:
<cocoon-dev@xml.apache.org>, <Tom.Amiro@Sun.COM>, <xalan-dev@xml.apache.org>
>                       g>                       cc:       "Santiago
Pericas-Geertsen" <Santiago.PericasGeertsen@Sun.COM>
>                                                Subject:  Re: [PROBLEM]:
XSLTC does not work
>                       12/14/2002 12:01
>                       AM
>                       Please respond to
>                       xalan-dev
>
>
>
>
>
>
> Hi Santiago,
>
> With Tom bridging Xalan and Cocoon, we have had a very productive
> relationship in the past.
> I hope we will continue the high productivity record.
>
> Attached are the xml source and the corresponding Xalan and XSLTC ouputs
> produced with Xalan 2.4.1.
> As you will notice they are very different.
> I also attach the two XSLT files which are applied sequentially.
> wizard2html.xsl first and then xmlform2html.xsl.
>
> Hopefully this is enough information to track down the bug causing
> different
> outputs.
>
>
> Regards,
>
> Ivelin
>
>
>
>
> ----- Original Message -----
> From: "Tom Amiro" <Tom.Amiro@Sun.COM>
> To: <xalan-dev@xml.apache.org>
> Cc: <cocoon-dev@xml.apache.org>; "Santiago Pericas-Geertsen"
> <Santiago.PericasGeertsen@Sun.COM>
> Sent: Wednesday, December 11, 2002 8:05 AM
> Subject: Re: [PROBLEM]: XSLTC does not work
>
>
> > Ivelin,
> >
> > I am not the best contact person anymore. Moved off onto other projects
> :-(
> > xalan-dev is the correct forum. Santiago Pericas-Geertsen
> <Santiago.PericasGeertsen@sun.com>
> > is probably the best person to help you.
> >
> > I would have taken a quick look at it, but no one ever sent me a
> > description of the differences between Xalan interpretive and
> > XSLTC for given xml/xsl input.
> >
> > If you can isolate the problem to XSLT that would be great; otherwise,
> > we'd need a lot more information on how to set up a test
> > case with Cocoon and Tomcat to reproduce it.
> >
> > Tom
> >
> >
> > Ivelin Ivanov wrote:
> > >
> > > Tom,
> > >
> > > There were a few more messages on the list regarding Xalan 2.4.1 and
> XSLTC.
> > > Do you have progress on the reported problems?
> > >
> > > Ivelin
> > >
> > > ----- Original Message -----
> > > From: "Tom Amiro" <Tom.Amiro@Sun.COM>
> > > To: "Ivelin Ivanov" <ivelin@apache.org>
> > > Cc: <cocoon-dev@xml.apache.org>; <xalan-dev@xml.apache.org>;
> > > <Glenn.Miller@Sun.COM>; <morten@xml.apache.org>;
> <jacek_ambroziak@yahoo.com>
> > > Sent: Monday, July 08, 2002 9:03 AM
> > > Subject: Re: [PROBLEM]: XSLTC does not work
> > >
> > > > Hi,
> > > >
> > > > We'll do some testing with 1.4.1_01 to see if the problem
> > > > is with the JVM or with XSLTC.
> > > >
> > > > Carsten, or anyone else, can you give us more information
> > > > on the differences in output generated by Xalan versus
> > > > XSLTC when you are not running on 1.4.1_01?
> > > >
> > > > Tom
> > > >
> > > > Ivelin Ivanov wrote:
> > > > >
> > > > > Sorry for the delayed response, my PC power supply burnt.
> > > > >
> > > > > Would it be too painful to do what Jeremy is when XSLTC is broken?
> > > > > I though we all felt that long term we want XSLTC as the main
> Cocoon
> > > > > processor.
> > > > > Making XSLTC  default now in 2.1-dev is the only reasonably fast
> way
> to
> > > have
> > > > > it working for the next major release.
> > > > > Otherwise it's just taking way too long for individuals to test it
> while
> > > the
> > > > > XSLTC team is pretty fast at resolving issues.
> > > > > I think we should take advantage of their current availability.
> > > > > Having a 5x faster processor is just too tempting to miss.
> > > > >
> > > > > If you think I'm wrong, vote against, otherwise vote for keeping
> XSLTC
> > > as
> > > > > default for now.
> > > > >
> > > > > +1
> > > > >
> > > > > Gianugo, Tom, can you please communicate the problems to the XSLTC
> team?
> > > > >
> > > > > Also, for those who encounter new bugs, in order to reduce turn
> around
> > > time,
> > > > > please send bugs with sypmtoms directly to Tom and the xsltc-team
> list
> > > in
> > > > > addition to cocoo-dev.
> > > > >
> > > > > Thanks.
> > > > >
> > > > > Ivelin
> > > > >
> > > > > On Monday, July 1, 2002, at 01:08 PM, Carsten Ziegeler wrote:
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > with the latest switch to XSLTC, Cocoon isn't working anymore
for
> > > > > > me. My system is JDK 1.4.0.01, W2K, Tomcat 3.3a.
> > > > >
> > > > > JDK 1.3.1, MacOSX 10.1.5, TomCat 4.0.4-b3
> > > > >
> > > > > I don't get exceptions, but I get some expressions not returning
> > > > > results with xsltc where they do with xalan. (I'll do a proper
> > > > > examination of what's going wrong later).
> > > > >
> > > > > Switching my sitemap's default transformer to 'xalan' solves all
> > > > > the problems.
> > > > >
> > > > > regards Jeremy
> > > >
> > > > --
> > > >  Tom Amiro -- SQA Engineer
> > > >  Sun XML Technology Development
> > > >  voice: 781-442-0589 Fax: 781-442-1437
> > > >  eMail: tom.amiro@.sun.com
> >
> > --
> >  Tom Amiro -- SQE Engineer
> >  WTS - Interoperability and Quality
> >  voice: 781-442-0589 Fax: 781-442-1437
> >  eMail: tom.amiro@.sun.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > For additional commands, email: cocoon-dev-help@xml.apache.org
> >
>
>
>
>
>
>
>
> #### Xalan _XMLForm1.htm has been removed from this note on December 14
> 2002 by Ilene Seelemann
> #### XMLForm.xml has been removed from this note on December 14 2002 by
> Ilene Seelemann
> #### XSLTC _XMLForm1.htm has been removed from this note on December 14
> 2002 by Ilene Seelemann
> #### wizard2html.xsl has been removed from this note on December 14 2002
by
> Ilene Seelemann
> #### xmlform2html.xsl has been removed from this note on December 14 2002
> by Ilene Seelemann
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message