我想即时修改内容,以便稍后将修改后的版本输入主题的内容槽。用例将日历portlet 定位在collective.cover 行/列/单元格中。
这是我尝试过的:
<replace css:content="#content .row:nth-child(2) .cell:nth-child(2) .tile.tile-edge">
<!-- These work (meaning levels above current selection CAN be copied) -->
<xsl:copy-of select="." />
<xsl:copy-of select="../.." />
<xsl:copy-of select="/" />
<!-- However, neither of these do -->
<xsl:copy-of css:select=".portletCalendar:first-child" />
<xsl:copy-of select="//div[contains(concat(' ', normalize-space(@class), ' '), ' portletCalendar ')]" />
<xsl:copy-of select="//div[@id='portal-personaltools']" />
</replace>