Plone 重氮和xslt“;调用模板";
我试图在重氮规则中使用xslt“call template”指令,因为我不想“重复我自己” 但是,当我设置xsl:template并在规则中使用xsl:call-template调用它时,我从diazo调试器获得了一个异常 元素模板仅允许作为样式表的子级 怎么了?我能用电话吗?如果不是,我怎么能不在xslt模板中重复我自己呢 例如:Plone 重氮和xslt“;调用模板";,plone,diazo,Plone,Diazo,我试图在重氮规则中使用xslt“call template”指令,因为我不想“重复我自己” 但是,当我设置xsl:template并在规则中使用xsl:call-template调用它时,我从diazo调试器获得了一个异常 元素模板仅允许作为样式表的子级 怎么了?我能用电话吗?如果不是,我怎么能不在xslt模板中重复我自己呢 例如: <?xml version="1.0" encoding="UTF-8"?> <rules xmlns="http://namespaces.pl
<?xml version="1.0" encoding="UTF-8"?>
<rules
xmlns="http://namespaces.plone.org/diazo"
xmlns:css="http://namespaces.plone.org/diazo/css"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xi="http://www.w3.org/2001/XInclude">
<!-- indent and strip space for pretty output -->
<xsl:output indent="yes"/>
<xsl:strip-space elements="*"/>
<theme href="index.html" />
<after css:theme-children="body">
<xsl:call-template name="hello"></xsl:call-template>
</after>
<xsl:template name="hello">
<xsl:element name="div">
Hello!
</xsl:element>
</xsl:template>
</rules>
)而是直接在规则中,但如何在我的附加程序包中管理它
谢谢如果您仍然存在此问题,请尝试Diazo和plone.app.theming的最新版本
我无法用最新版本(在Plone 4.3.3上)复制此问题。对我来说,你的规则示例运行得很好(只要它们在主[非规则文件]中)。Right@SteveM,只是编辑了我的问题可能重复的