Changes between Version 8 and Version 9 of Development/Styles


Ignore:
Timestamp:
Nov 27, 2006 12:57:18 PM (13 years ago)
Author:
centosian2
Comment:

fixed typo

Legend:

Unmodified
Added
Removed
Modified
  • Development/Styles

    v8 v9  
    66A new major feature of Colloquy 2 are the extensible conversation styles. Styles are simple OS X bundles wraped around a [wiki:Development/Styles/CSS CSS file] file (at minimum) or a CSS file and a [wiki:Development/Styles/XSL XSL file]. Knowing this, the fact that Colloquy uses XML (see the [wiki:Development/Styles/LogFileFormat Transcript file format]) to store chat messages that come in over the network is no surprise to some. Pairing these three technologies gives us great flexibility when processing and displaying a message on screen. 
    77 
    8 The process of formatting a message follows these steps, start to finish. Frist, wrap the message in a simple XML envelope, encoding any special characters and representing IRC styling as XHTML. This XML envelope gets transformed with the curent style's XSL file (or a built-in default XSL file). The resulting transformation from the XSL on the XML should be XHTML that can then be rendered with help from the style's CSS file. Rendering is done via Apple's Safari (!WebKit) engine—so the possibilities are endless (evidenced by the built-in iChat-like Bubbles style). 
     8The process of formatting a message follows these steps, start to finish. First, wrap the message in a simple XML envelope, encoding any special characters and representing IRC styling as XHTML. This XML envelope gets transformed with the curent style's XSL file (or a built-in default XSL file). The resulting transformation from the XSL on the XML should be XHTML that can then be rendered with help from the style's CSS file. Rendering is done via Apple's Safari (!WebKit) engine—so the possibilities are endless (evidenced by the built-in iChat-like Bubbles style). 
    99 
    1010The anatomy of a complex style is as follows, with optional elements italicized: