eXtensible Stylesheet Language Transformations
How Diazo works behind the scenes.
XSLT may not be necessary in your Diazo theme, depending on how complex your selectors need to be.
<replace css:theme-children=".mainNav"> <xsl:for-each css:select="#portal-globalnav > li"> <li class="divider"></li> <xsl:apply-templates css:select="li.plain, li.selected"/> </xsl:for-each> <li class="divider"></li> </replace>
This grabs each <li> from Plone, and inserts an <li> as a divider between each one.
Note that the css: prefix can also be added to the XSL in Diazo.
<xsl:for-each css:select="#portal-personaltools a"> <li> <xsl:copy-of select="current()"/> </li> </xsl:for-each>
Grabs all links from user dropdown and puts them into a list.
(instead of a <dl>)
Use Diazo rules when possible, XSLT has a steep learning curve.
XSLT errors aren't very helpful.
Space | Forward |
---|---|
Right, Down, Page Down | Next slide |
Left, Up, Page Up | Previous slide |
P | Open presenter console |
H | Toggle this help |