[Phoenix] Improved WYSIWYG XSLT view / Initial styleTemplate Support

Comiotto Thomas thomas.comiotto at unicom.unizh.ch
Tue Sep 5 01:36:42 CEST 2006


Hi all

I reworked the xml WYSIWYG editing view a bit. I also added initial 
support for what's now called "styleTemplates". Again attached a 
screenshot of the uzh website to illustrate how styleTemplates can make 
a difference (header, navigation etc. provided by template).

The following introspection directives (and the corresponding Ulysses 
introspection/document props) have been added:

<styles>
   <style href="foo.xsl"/>
   <style-template href="bar.xml" mode="pre|post"/>
</styles>

The mode switch (default: pre) determines if the template is applied to 
the source document (pre transform) or to the transformed source (xhtml 
or whatever, post). This will make the guys happy that have xsl files 
for their sources at most  and a server that renders the "document 
frame" (header, navigation, etc.) by using some proprietary application 
logic. Zope based CMS systems are a prominent example for that (see 
ETH). I also added support for styleTemplates to Lenya 1.2.

In case you wonder: addressing document sources by xi:include 
directives from within the styleTemplate is not yet possible because 
neutron has no resource identifiers. As a hack Ulysses treats the first 
xi:include directive as pointer to the current source, no matter what 
the xi:include relates to. Because the WYSIWYG view currently only has 
support for loading one single source / model at a time that's fine. 
But one day we will want to deal with multiple sources aggregated into 
one view (call them fragments if you like - although in most cases that 
won't be fragments of a single document, you know..).


Anyway I hope you like the changes. If not, feel free to revert.

--
Bests
Thomas


-------------- next part --------------
Skipped content of type multipart/appledouble


More information about the Phoenix mailing list