Unless I'm missing something in what you've asked, I can see two ways of doing this. First, if your CSS applies to all the pages you are outputting, you could simply place a style section in the HTML Head section of main.php. You have considerable flexibility here, since you could output the CSS using php and you'd have access to the dokuwiki $INF and $conf arrays and would be able to create CSS in response to different users and pages. You could also use an action plugin, instead of a syntax plugin, and trigger it at the end of the HEAD section of main.php. You can write the CSS directly to the page at the triggered point of entry.
Myron Gabriel Birke wrote:
Hello! I'm trying to generate some custom styles (CSS definitions between two style tags) with a syntax plugin. However, style tags are not allowed in the HTML BODY section, only in the HEAD section. While the browser applies the styles correctly, the generatiion of nonvalidating XHTML bothers me. Now before I do some heavy coding I have two questions: 1) Is there an easy way to accomplish my goal? Maybe I have overlooked something. 2) Is anyone except me interested in such a functionality? Would a patch be accepted? Greetings, Gabriel
-- _____________________ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- DokuWiki mailing list - more info at http://wiki.splitbrain.org/wiki:mailinglist