2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 xmlns:i18n="http://xml.zope.org/namespaces/i18n"
6 <xsl:output method="xml" indent="yes" />
8 <xsl:template match="/">
9 <object name="portal_actions"
10 meta_type="CMF Actions Tool"
11 xmlns:i18n="http://xml.zope.org/namespaces/i18n">
13 <xsl:for-each select="/actions-tool/action-provider/action">
14 <xsl:variable name="category" select="@category"/>
15 <xsl:if test="count((preceding-sibling::action|../preceding-sibling::action-provider/action)[@category=$category])=0">
17 <xsl:call-template name="action_category">
18 <xsl:with-param name="category" select="$category"/>
26 <xsl:template name="action_category">
27 <xsl:param name="category"/>
29 <object meta_type="CMF Action Category">
30 <xsl:attribute name="name">
31 <xsl:value-of select="$category"/>
34 <property name="title"></property>
36 <xsl:for-each select="//action[@category=$category]">
38 <object meta_type="CMF Action" i18n:domain="plinn">
39 <xsl:attribute name="name">
40 <xsl:value-of select="@action_id"/>
43 <property name="title" i18n:translate="">
44 <xsl:value-of select="@title"/>
47 <property name="description"></property>
49 <property name="url_expr">
50 <xsl:value-of select="@url_expr"/>
53 <property name="icon_expr"></property>
55 <property name="available_expr">
56 <xsl:value-of select="@condition_expr"/>
59 <property name="permissions">
60 <xsl:for-each select="permission">
62 <xsl:attribute name="value">
63 <xsl:value-of select="."/>
69 <property name="visible">
70 <xsl:value-of select="@visible"/>