My stupid question No.23

2001-11-26 Thread Alex Kachanov

Is it possible to merge somehow the stylesheets in C2?

I have several stylesheets for different types of devices/browsers.
Those stylesheets have some common parts.

Is it possible to keep those common part just in a sinlge stylesheet
(so I would need to make changes to this stylesheet only) and merge
this common stylesheet with other device specific stylesheets?

Probably, C2 has such functionality, 

could you give me a hint?

with best wishes
Alexander Kachanov

-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: My stupid question No.23

2001-11-26 Thread Benda Martin

Yes, it is possible. In my apllication I do it this way
The common parts are grouped in one stylesheet named
forAll-html.xml (like JavaScript, styling of header, footer, toc)

All other stylesheets can use the templates inside this stylesheet.

?xml version=1.0?
  xsl:stylesheet ...
xsl:import href=forAll-html.xsl/
...
  /xsl:stylesheet
xsl:include

If you want to merge parts of stylesheets based on the device, you
could call a dummy-stylesheet in the several map:when test=.../
and inside this dummy-stylesheets you call the parts (xsl:import .../) you
need.

Hope this helps,
Martin

- Original Message -
From: Alex Kachanov [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 27, 2001 6:03 AM
Subject: My stupid question No.23


Is it possible to merge somehow the stylesheets in C2?

I have several stylesheets for different types of devices/browsers.
Those stylesheets have some common parts.

Is it possible to keep those common part just in a sinlge stylesheet
(so I would need to make changes to this stylesheet only) and merge
this common stylesheet with other device specific stylesheets?

Probably, C2 has such functionality,

could you give me a hint?

with best wishes
Alexander Kachanov

-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: My stupid question No.23

2001-11-26 Thread giacomo

On Tue, 27 Nov 2001, Alex Kachanov wrote:

 Is it possible to merge somehow the stylesheets in C2?

The samples xsp that comes with Cocoon does exatly this. Have a  look into
it.

Giacomo


 I have several stylesheets for different types of devices/browsers.
 Those stylesheets have some common parts.

 Is it possible to keep those common part just in a sinlge stylesheet
 (so I would need to make changes to this stylesheet only) and merge
 this common stylesheet with other device specific stylesheets?

 Probably, C2 has such functionality,

 could you give me a hint?

 with best wishes
 Alexander Kachanov

 -
 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]






-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]