Bjarne Jensen a écrit :
>
> Well that sounds really interesting – congratulations :-) So by maintaining
> the website like this you have a separation between layout and content. What
> about seperation between content and program-logic – have you also
> accomplished this? Are there any need for that?
>
Content is generated by XSPs (which was the main way of doing it with
Cocoon1, but this changes with C2) which calls application logic Java
code either directly through <xsp:logic> or using specialized
logicsheets. We also have an XML persistence engine that hides
SQL/LDAP/files/Whatever for data access. This leads to true
presentation/logic/persistence separation.
> And then another question. What if you compute a table (so that you don't
> know how long it would be) – is this also maintained in Dreamweaver or do
> you have the HTML that makes the TABLE inside the XSLT in that situation? I
> can’t figure out how to maintain a table like this in Dreamweaver only in
> XSLT.
>
Among our specialized tags, some are structure-oriented. The designer
just has to mark the table with the data collection he wants to display,
and this generates an <xsl:foreach> in the resulting XSL, adding rows as
necessary and feeding cells with live data (this works not only with
tables, but with any repetivite structure : lists, paragraphs, popups,
etc).
The main ideas behind all this are :
- web pages, even if dynamic, should be editable by a web designer (with
no programming skills)
- turning a static page into a dynamic one shouldn't be destructive : in
JSP/ASP/PHP, data access code replaces example data that the designer
has put in the page during the design. With our approach, markup
identifying the data surrounds (tags) or marks (attributes) the static
example data.
The benefits are that you can always show your dynamic pages as static
ones (just send a bunch of HTML files to your customer to show him what
his app looks like) and that a web designer can update the pages with
his favorite tool even if they're dynamic (easy maintenance).
> Thank you very much for your comment :-)
>
WYSIWYG editing is IMO the main feature that's missing for XML/XSL to
spread the whole web industry. That's what we're trying to do.
> /Bjarne
>
--
Sylvain Wallez
Anyware Technologies - http://www.anyware-tech.com
---------------------------------------------------------------------
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]>