You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by mi...@basf-it-services.com on 2007/12/03 11:45:43 UTC

different Stylesheets to be applied within a folder

Hello all,

I´m a novice in cocoon.
Does someone know, if it is possible to return a stylesheet (in a pipeline
or wherever) to be applied after a node is examined ?
Prelimary note is that within a folder several (without having a naming
convention for different files) files exists that should be styled by
different stylesheets.

Folder XYZ
      |_ Doc 1 should be styled with myStyleA
      |_ Doc 2 should be styled with myStyleB
      |_ Doc 3 should be styled with myStyleB
      |_ Doc 4 should be styled with myStyleA
      ....
      |_ Doc n should be styled with myStyle-xyz

Within a Document a stylesheet reference was set as:
e.g
-----------------------------------
Doc 1
<Document>
...
   <stylesheet>myStyleA</stylesheet>
...
</Document>
-----------------------------------
-----------------------------------
Doc 3
<Document>
...
   <stylesheet>myStyleB</stylesheet>
...
</Document>
-----------------------------------

Could something be returned to be evaluated later by a matcher  ? Could a
generator return a variable that could be used map:transform ?
How could I apply a certain stylesheet ?

Thanks in advance for a solution.

Schöne Grüße / Best Regards
Michael Halstrick
-----------------------------------------------
Michael Halstrick
BASF IT Services GmbH


Phone: +49 2501 14-2009, Mobile: +49 172 7424849, Fax: +49 2501 14-2099,
E-Mail: michael.halstrick@basf-it-services.com
Postal Address: BASF IT Services GmbH, EC-QB - Muenster, 48165 Muenster,
Germany


www.basf-it-services.com


BASF IT Services GmbH, Registered Office: 67059 Ludwigshafen, Germany
Companies' Register: Amtsgericht Ludwigshafen, HRB 3541
Managing Directors:
Andreas Biermann, Dr. Ralf Sonnberger
Chairman of the Supervisory Board: Andrew Pike


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


Re: different Stylesheets to be applied within a folder

Posted by Tobia Conforto <to...@linux.it>.
michael.halstrick@basf-it-services.com wrote:
> Within a Document a stylesheet reference was set as:
>
> <Document>
>    ...
>    <stylesheet>myStyleA</stylesheet>
>    ...
> </Document>
>
> How could I apply a certain stylesheet ?

This seems to be another example of content-based pipeline, which is not
directly supported in Cocoon.  See this recent thread for a few ideas:
http://marc.info/?l=xml-cocoon-users&m=119607094225772


Tobia

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