You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Matteo Colombo <mt...@inwind.it> on 2001/07/03 09:08:17 UTC

Logicsheet chaining

Hi all,
I've this question for you:

XML A with <?xml-logicsheet href="my-xsp.xsl"?>  --> XSL A (transform XML A
in XML B adding
<?xml-logicsheet herf="new-xsp.xsl?> and the instructions that are in new
logicsheet)-->XSL
B (format the page: output type HTML).
Does it work?
Is it possible to do this?
Better, my question is: Is it possible transform
an XML file in another XML that use a new logicsheet (that wasn't in the
original XML file)?

Ciao Matteo


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


R: Logicsheet chaining

Posted by Marco Spinetti <m....@pisa.iol.it>.
yes it is possible. I suppose you are using cocoon1.8.2.
With cocoon 1.8.2 I have done a similar trasformation:
1) a.xml->b.xsl->c.xsl->page.html
where:
a.xml:
..............
<?cocoon-process type="xslt"?>
<?xml-stylesheet href="b.xsl" type="text/xsl"?>
<?xml-stylesheet href="other.xsl" type="text/xsl" media="explorer"?>
..........

b.xsl:
.......
<xsl:template match="page">
<xsl:processing-instruction
name="cocoon-process">type="xslt"</xsl:processing-instruction>
<xsl:processing-instruction name="xml-stylesheet">href="c.xsl"
type="text/xsl"</xsl:processing-instruction>
.................

c.xsl: trasforms the page xml in a html page.

With cocoon2 the things are much more easy.

Marco


----- Original Message -----
From: Matteo Colombo <mt...@inwind.it>
To: <co...@xml.apache.org>
Sent: Tuesday, July 03, 2001 9:08 AM
Subject: Logicsheet chaining


> Hi all,
> I've this question for you:
>
> XML A with <?xml-logicsheet href="my-xsp.xsl"?>  --> XSL A (transform XML
A
> in XML B adding
> <?xml-logicsheet herf="new-xsp.xsl?> and the instructions that are in new
> logicsheet)-->XSL
> B (format the page: output type HTML).
> Does it work?
> Is it possible to do this?
> Better, my question is: Is it possible transform
> an XML file in another XML that use a new logicsheet (that wasn't in the
> original XML file)?
>
> Ciao Matteo
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>