Re: Two-pass transformation tutorial needed

2003-11-04 Thread Joerg Heinicke
It's a sitemap thing:


  
  
  
  

If you now do in step1 the output independent transformations and in 
step2 the dependent ones (the main template), you should have less 
stylesheets than before.

Joerg

On 04.11.2003 08:21, Johannes Becker wrote:

Hi,

I' looking for a two-pass transformation tutorial for cocoon.
Why?
My post on xsl-list:
___
My problem is that I have lots of different stylesheets for the 
main-template (), and I don't want to 
write millions of different xsl's that differ just in one entry 
().
Is there an other way to solve this problem?

my xsl:

http://www.w3.org/1999/XSL/Transform";>


...

...






__

They told me to use two pass transformation. Are there some documented 
examples for this in cocoon?

Regards
Jonny


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


RE: Two-pass transformation tutorial needed

2003-11-04 Thread Ralph Goers
If your stylesheet stays the same but different documents needed to be
dynamically included you can write a source resolver and then reference it
as . Your source resolver can
then include different versions of mydocument.xsl based upon whatever
criteria you need. I am doing exactly this to dynamically choose documents
based upon the website name.

Ralph

> -Original Message-
> From: Johannes Becker [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 03, 2003 11:21 PM
> To: [EMAIL PROTECTED]
> Subject: Two-pass transformation tutorial needed
> 
> 
> Hi,
> 
> I' looking for a two-pass transformation tutorial for cocoon.
> Why?
> 
> My post on xsl-list:
> __
> _
> 
> My problem is that I have lots of different stylesheets for the 
> main-template (), and I don't 
> want to write 
> millions of different xsl's that differ just in one entry 
> ( href="X"/>).
> Is there an other way to solve this problem?
> 
> my xsl:
> 
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
>  select="/document/style"/>
> 
> ...
> 
> ...
> 
> 
> 
> 
> 
> 
> __
> 
> They told me to use two pass transformation. Are there some 
> documented 
> examples for this in cocoon?
> 
> Regards
> Jonny
> 
> _
> FreeSMS abräumen mit dem MSN Messenger - der Countdown läuft! 
> http://messenger-mania.msn.de Jetzt mitmachen und gewinnen!
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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