我有以下简单的重氮规则文件:
<rules
xmlns="http://namespaces.plone.org/diazo"
xmlns:css="http://namespaces.plone.org/diazo/css"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<theme href="theme/theme.html" />
<replace css:theme-children="#content" css:content-children=".content" />
</rules>
和主题:
<html>
<body>
<div id="content">
Lorem ipsum ...
</div>
</body>
</html>
我要转换的来源是:
<html>
<body>
<div class="content">
<a href="mailto:info@example.org">info</a>
</div>
</body>
</html>
我得到的是
... <a href="mailto:info@example.org">info</a> ...
但我想保持 href 属性的 HTML 实体完整。我怎么能用重氮做到这一点?