for loop in XSLT

2002-12-17 Thread Lautaro Brasseur



Somebody knows how to implement a for-like loop in 
XSLT? I found the following example in XSLT 2.0, but it doesn't work in 
1.0:
 xsl:for-each select="1 to 5" 
xsl:variable name="x" select="$x+1"/ 
xsl:for-each



Re: Transformer

2002-12-02 Thread Lautaro Brasseur
First I think in merge all XSLs into one single. But they are about 1150,
and I think that would be very heavy for the server.

I solved the problem by using a session attribute. I put the transaction
name (the value that determines the XSL to use) in the session (in the setup
method of the generator) and take it in the setup method of the transformer.
It isn't elgant, but it works.

Thanks

Lautaro


- Original Message -
From: Joerg Heinicke [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, December 01, 2002 6:57 PM
Subject: Re: Transformer


 Does this mean, that you want to select another XSL file used for
 transformation depending on the input document? Why don't you use an
 XSL, which includes the other XSL files and so the different matching
 templates? Or use modes in the stylesheets like J. Pietschmann provided
 at
 http://www.mail-archive.com/cocoon-users@xml.apache.org/msg21224.html.
 Otherwise you must use an action, which chooses the
 correct transformer.

 Joerg

 [EMAIL PROTECTED] wrote:
   I want to change the XSL file of a transformer according a element of
the
   input XML. There is any way to do this?
  
   Thanks
  
   Lautaro



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


 --
 www.Argentina.com
 E-mail Profesional y Acceso a Internet UltraVeloz totalmente GRATIS en
 Buenos Aires, Rosario, Cordoba, Mendoza, Mar del Plata, Moreno, Merlo,
 La Plata, Pilar, Escobar, Campana y Zárate



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




Transformer

2002-11-30 Thread Lautaro Brasseur



I want to change the XSL file of a transformer 
according a element of the input XML. There is any way to do this?

Thanks

Lautaro


Question

2002-11-27 Thread Lautaro Brasseur



I have the following entry in 
sitemap.xmap:

map:match 
pattern="*."map:generate 
type="myGenerator"/map:transform 
src=""/map:serialize//map:match
I want to change the src parameter for the 
transformator, depending on a element that comes from the generator. There is 
any way to do this (without writing a custom transformer)? Can I modify that 
parameter from the generator?

Thanks

Lautaro