cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <d...@yahoo.com>
Subject Re: [C2] Bug in the Method separation approach
Date Tue, 12 Jun 2001 16:05:18 GMT
Berin,

Try the new sitemap.xsl in 2.0. It compiles, But i do not have a good test case. I used your
second approach. If all's well, i will with sync 2.1 HEAD.

> <xsl:template match="map:match//map:match">
>   ....
> </xsl:template>

Thanks,
dims

--- Berin Loritsch <bloritsch@apache.org> wrote:
> Davanum Srinivas wrote:
> > 
> > Berin,
> > 
> > I broke it. Will try to fix it and let you know.
> 
> thanks.
> 
> The approach that I tried to use was to do a modal xslt:
> 
> ....
>   <xsl:apply-templates mode="internal"/>
> ....
> 
> <xsl:template match="map:match" mode="internal">
>   .....
> 
>   .....
> </xsl:template>
> 
> I think the problem with that is that we need an "internal" mode
> version of anything that can be embedded (i.e. map:match, map:select,
> map:act, map:generate, map:mount, map:transform, map:serialize,
> map:read).
> 
> Unless, you know how to make a template react to all modes that is
> impractical.  I wonder if you could set up a template to work like
> this:
> 
> <xsl:template match="map:match//map:match">
>   ....
> </xsl:template>
> 
> and the code be in the right place....
> 
> > 
> > Thanks,
> > dims
> > 
> > --- Berin Loritsch <bloritsch@apache.org> wrote:
> > > Berin Loritsch wrote:
> > > >
> > > > I noticed that when you have nested matchers (previously legal),
> > > > the new format tries to create a new method inside of a method--
> > > > which clearly does not work.
> > >
> > >
> > > Please use code that looks somewhat like this to test the solution:
> > >
> > >    <map:match pattern="**.html">
> > >      <map:match pattern="sub**.html">
> > >        <map:mount uri-prefix="sub" src="sub/" check-reload="true"/>
> > >      </map:match>
> > >
> > >        <map:generate src="docs/{destination}.xml"/>
> > >        <map:serialize/>
> > >      </map:act>
> > >    </map:match>
> > >
> > > I have tried, but my "fix" only broke the sitemap more.  Could someone
> > > please look into this?
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > > For additional commands, email: cocoon-dev-help@xml.apache.org
> > >
> > 
> > =====
> > Davanum Srinivas, JNI-FAQ Manager
> > http://www.jGuru.com/faq/JNI
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail - only $35
> > a year!  http://personal.mail.yahoo.com/
> > 
> > ---------------------------------------------------------------------
> > 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
> 


=====
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

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


Mime
View raw message