You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Andres Taborda <at...@saludcolombiaeps.com.co> on 2004/03/13 17:53:01 UTC

example cinclude

Is it posible build file xml (tets1.xml) and stylesheets (sheets1.xsl) 
and in a fragment write an code cinclude for include file xml 
(test2.xml) and this use other stylesheets (sheets2.xsl).


Some users have an example.

Thanks very much.





-- 
Cordialmente,

Andres Taborda
Departamento de Sistemas
http://www.saludcolombiaeps.com.co
email:ataborda@saludcolombiaeps.com.co
SaludColombia E.P.S. - Una Sola Familia
Calle 5C # 43-05 Tequendama
Telefono : 57 (002) 551 04 89 - 57 (002) 551 04 90 Ext 119
Cali - Colombia


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


Re: example cinclude

Posted by Andres Taborda <at...@saludcolombiaeps.com.co>.
Hello Alex,

The example works very good .

Thanks very much by help.



Alex Romayev wrote:

>Hi Andreas, if I understand you correctly:
>
><map:match pattern="test2">
>  <map:generate src="test2.xml"/>
>  <map:transform src="test2.xsl"/>
>  <map:serialize type="xml"/>
></map:match>
>
><map:match pattern="test1">
>  <map:generate src="test1.xml"/>
>  <map:transform type="cinlcude"/>
>  <map:transform src="test1.xsl"/>
>  <map:serialize type="xml"/>
></map:match>
>
>test1.xml:
>
><root 
>
>xmlns:cinclude="http://apache.org/cocoon/include/1.0">
> ...
> <cinclude:include src="cocoon:/test2/>
></root>
>
>-Alex
>
>--- Andres Taborda <at...@saludcolombiaeps.com.co>
>wrote:
>  
>
>>Is it posible build file xml (tets1.xml) and
>>stylesheets (sheets1.xsl) 
>>and in a fragment write an code cinclude for include
>>file xml 
>>(test2.xml) and this use other stylesheets
>>(sheets2.xsl).
>>
>>
>>Some users have an example.
>>
>>Thanks very much.
>>
>>
>>
>>
>>
>>-- 
>>Cordialmente,
>>
>>Andres Taborda
>>Departamento de Sistemas
>>http://www.saludcolombiaeps.com.co
>>email:ataborda@saludcolombiaeps.com.co
>>SaludColombia E.P.S. - Una Sola Familia
>>Calle 5C # 43-05 Tequendama
>>Telefono : 57 (002) 551 04 89 - 57 (002) 551 04 90
>>Ext 119
>>Cali - Colombia
>>
>>
>>
>>    
>>
>---------------------------------------------------------------------
>  
>
>>To unsubscribe, e-mail:
>>users-unsubscribe@cocoon.apache.org
>>For additional commands, e-mail:
>>users-help@cocoon.apache.org
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>  
>


-- 
Cordialmente,

Andres Taborda 
Departamento de Sistemas
http://www.saludcolombiaeps.com.co
email:ataborda@saludcolombiaeps.com.co
SaludColombia E.P.S. - Una Sola Familia
Calle 5C # 43-05 Tequendama
Telefono : 57 (002) 551 04 89 - 57 (002) 551 04 90 Ext 119
Cali - Colombia


Re: example cinclude

Posted by Alex Romayev <ro...@yahoo.com>.
Hi Andreas, if I understand you correctly:

<map:match pattern="test2">
  <map:generate src="test2.xml"/>
  <map:transform src="test2.xsl"/>
  <map:serialize type="xml"/>
</map:match>

<map:match pattern="test1">
  <map:generate src="test1.xml"/>
  <map:transform type="cinlcude"/>
  <map:transform src="test1.xsl"/>
  <map:serialize type="xml"/>
</map:match>

test1.xml:

<root 

xmlns:cinclude="http://apache.org/cocoon/include/1.0">
 ...
 <cinclude:include src="cocoon:/test2/>
</root>

-Alex

--- Andres Taborda <at...@saludcolombiaeps.com.co>
wrote:
> 
> Is it posible build file xml (tets1.xml) and
> stylesheets (sheets1.xsl) 
> and in a fragment write an code cinclude for include
> file xml 
> (test2.xml) and this use other stylesheets
> (sheets2.xsl).
> 
> 
> Some users have an example.
> 
> Thanks very much.
> 
> 
> 
> 
> 
> -- 
> Cordialmente,
> 
> Andres Taborda
> Departamento de Sistemas
> http://www.saludcolombiaeps.com.co
> email:ataborda@saludcolombiaeps.com.co
> SaludColombia E.P.S. - Una Sola Familia
> Calle 5C # 43-05 Tequendama
> Telefono : 57 (002) 551 04 89 - 57 (002) 551 04 90
> Ext 119
> Cali - Colombia
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail:
> users-help@cocoon.apache.org
> 


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