<map:match pattern="inbetween.xsl">
<map:generate
src="webbpi/index.xml" type="serverpages"
/>
<map:transform
src="webbpi/estilo/cotizacion_xsp.xsl"/>
<map:serialize type="xml"/>
</map:match>
And:
<map:match
pattern="index">
<map:generate src="webbpi/index.xml" type="serverpages" />
<map:transform
src="cocoon:/inbetween.xsl"/>
<map:transform
src="webbpi/estilo/cotizacion.xsl"/>
<map:serialize
type="html"/>
</map:match>
The hard part is that when I tried it cocoon:/ could not be used in generate. So if that is still true you have to make a inbetween.xsl that transforms index to what you want.
(the right way) !!!BUT the best way to do this is to make a builtin-logicsheet. That goes like this:!!!
1. you have a data file ( a xml)
2. You insert a tag for example: <cotizacion:myitem/>
3. You construct a xsl that replaces this with logic....
4. You add to cocoon.xconf:
<builtin-logicsheet>
<parameter
name="prefix"
value="cotizacion"/>
<parameter
name="uri"
value="http://www.holland.nl/queensday/whatever"/>
<parameter
name="href"
value="docs/cotizacion.xsl"/>
</builtin-logicsheet>
5. Add the namespace http://www.holland.nl/queensday/whatever to your data.xml
6. By the way your data.xml is a XSP page......
-----Oorspronkelijk bericht-----
Van: Alejandro Raiczyk [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 25 april 2002 17:18
Aan: '[EMAIL PROTECTED]'
Onderwerp: Howto xsp process in C2 ?
Hi, I'm migrating from C1 to C2, and I guess I've get the idea but I still can't make it work.
How can I do if I want to define a pipeline where I have a source file wich is a XSP page, after generating it I have to transform it by a logicsheet (XSL), then by the XSP processor and finally a stylesheet (XSL).
I did this:
<map:match pattern="index">
<map:generate src="webbpi/index.xml" type="serverpages" />
<map:transform src="webbpi/estilo/cotizacion_xsp.xsl"/>
<map:transform src="webbpi/estilo/cotizacion.xsl"/>
<map:serialize type="html"/>
</map:match>but it didn't work. Is there any whay to do shomething like
<map:transform src="webbpi/estilo/cotizacion_xsp.xsl" type="xsp"/>?
thanks in advance
Alejandro D. Raiczyk
Desarrollo de Proyectos
Technisys Informática S.R.L.
Tel./Fax: +54(11)4322-7100 int 133
[EMAIL PROTECTED]