Source code
Revision control
Copy as Markdown
Other Tools
<?xml version="1.0"?>
<myMetaDoc
xmlns:cml="myChineseMakupLanguage">
<head>
<its:translateRule selector="//img/@alt" translate="yes"/>
<its:translateRule selector="//*/@title" translate="yes"/>
<its:translateRule selector="//verbatim" translate="no"/>
<its:translateRule selector="//verbatim/@*" translate="no"/>
<its:translateRule selector="//verbatim//*/@*" translate="no"/>
<its:withinTextRule selector="//img|//verbatim" withinText="yes"/>
</its:rules>
</head>
<body>
<par>Text with an image: <img alt="Image description" src="img.png"/>.</par>
<par id="100" title="Text">This is the first paragraph. It has some <verbatim>un-translatable
code with an image: <img src="test.png" alt="Image description"/></verbatim>.</par>
<z:书籍>
<z:封面>
<z:汇集>The Lord of the Rings</z:汇集>
<z:标题>The Return of the King</z:标题>
<z:作者>J.R.R. Tolkein</z:作者>
</z:封面>
<z:章节 数="1">
<z:头注>Minas Tirith</z:头注>
<z:段落识别 id="A34B"><z:姓名>Pippin</z:姓名> looked out from the shelter of <z:姓名>Gandalf</z:姓名>'s cloak.</z:段落识别>
</z:章节>
<z:躯>
<i:rules version="2.0" xmlns:cml="myChineseMakupLanguage">
<i:translateRule selector="//cml:作者" translate="no"/>
<i:translateRule selector="//cml:姓名" translate="no"/>
<i:withinTextRule selector="//cml:姓名" withinText="yes"/>
</i:rules>
</z:躯>
</z:书籍>
</insert>
</body>
</myMetaDoc>