> -----Original Message-----
> From: Aurelien [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, September 30, 2001 8:46 AM
> To: [EMAIL PROTECTED]
> Subject: taglibs for stylesheets
>
>
> Hi,
>
> I just love the logicsheet mechanism. Now, I wondered wether it'd be
> possible to implement a similar mechanism for stylesheets. I'm writing
> an article on HTML table formatting (for twigs), and I realize that it
> could be very cool to have a, say, <formatting:table ...> tag that you
> could embed in your stylesheets.
>
> The tag could have attributes like "number_of_columns"
> "cell_background", "border_width", etc...
>
> On the web site I'm working on, there are lots of xsl generated tables,
> and cocoon2 today only allows me to edit an xsl file for each and every
> table I need to generate, and forces me to maintain as many xsl table
> formatting stylesheets as I have pages.
>
> How could this shortcoming be addressed ?

I do see several ways of solving your issue:
1. Use CSS2
It will allow you to keep <table>, <tr>, <td> tags with just one attribute - class,
or even less :)

2. Come up with common DTD for all your documents (e.g., introduce tag 
<formatting:table ...>),
and use this DTD in all of your documents. Then, as the last transformation stage 
(right before
serializer), apply stylesheet which will transform your tags into HTML <table>s.

3. If you love XSP, you should love this third way :)
You could generate XSLs using XSP mechanism. Just look at sub-sitemap examples.
But do not forget that it's in your interests to make XSL-generation pipelines 
cacheable,
otherwise performance will suffer.

Does this help?

Regards,
Vadim

>
> Aurélien
>
> ---------------------------------------------------------------------
> 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]>

Reply via email to