cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Torsten Curdt" <tcu...@dff.st>
Subject RE: why just source!?
Date Wed, 28 Jun 2000 14:18:18 GMT
> No, think of it like a chain:
> 
> original document --XSLT-> add XSP code --XSP-> 'compiled page' --XSLT->
> output
> 
> Standard processing-instructions, e.g. <?cocoon-process type="xsp"?> are
> processed by the current step in the chain and removed by the transform.
> If you want to alter the next step of the chain, you have to tell XSLT
> to add the processing-instruction to the resulting document, using the
> <xsl:processing-instruction...> syntax.

[snip]

> which will then be processed again by Cocoon, compiled and a stylesheer
> applied.
> 
> Does this make sense?

Ahhhhhh!! Now I got it... almost ... perfectly....
Well, lets check..

So my chain is now:

index.xml:
 pi->index.xsp
index.xsp:
 create new pi
 add XML tags
 pi->index.xsl
index.xsl
 gets processed because of the pi created in index.xsp
 appling templates

I tried it... works... almost!

He doesn't _add_ the XML tags
but repaces them! I'd like to *well* merge them...

<page>
  <title/>
  <iamfromxsp/> <---- from index.xsp
</page>

but all I get is like

<page>
  <iamfromxsp/> <---- from index.xsp
</page>

Thanx alot
--
Torsten

Mime
View raw message