| 1 |
<its:rules |
| 2 |
xmlns:its="http://www.w3.org/2005/11/its" |
| 3 |
xmlns:itst="http://itstool.org/extensions/" |
| 4 |
xmlns:mal="http://projectmallard.org/1.0/" |
| 5 |
version="1.0"> |
| 6 |
|
| 7 |
<itst:match selector="/mal:page"/> |
| 8 |
|
| 9 |
<!-- Any extension on projectmallard.org will use xml:lang --> |
| 10 |
<its:langRule selector="//*[starts-with(namespace-uri(.), 'http://projectmallard.org/')]" |
| 11 |
langPointer="@xml:lang"/> |
| 12 |
|
| 13 |
<itst:credits appendTo="/mal:page/mal:info"> |
| 14 |
<mal:credit type="translator copyright"> |
| 15 |
<mal:name><itst:value-of select="name"/></mal:name> |
| 16 |
<mal:email><itst:value-of select="email"/></mal:email> |
| 17 |
<mal:years><itst:value-of select="years"/></mal:years> |
| 18 |
</mal:credit> |
| 19 |
</itst:credits> |
| 20 |
|
| 21 |
<its:withinTextRule withinText="yes" selector="//mal:cite//*"/> |
| 22 |
<its:withinTextRule withinText="yes" selector="//mal:code//*"/> |
| 23 |
<its:withinTextRule withinText="yes" selector="//mal:desc//*"/> |
| 24 |
<its:withinTextRule withinText="yes" selector="//mal:email//*"/> |
| 25 |
<its:withinTextRule withinText="yes" selector="//mal:link//*"/> |
| 26 |
<its:withinTextRule withinText="yes" selector="//mal:name//*"/> |
| 27 |
<its:withinTextRule withinText="yes" selector="//mal:p//*"/> |
| 28 |
<its:withinTextRule withinText="yes" selector="//mal:screen//*"/> |
| 29 |
<its:withinTextRule withinText="yes" selector="//mal:title//*"/> |
| 30 |
<its:withinTextRule withinText="yes" selector="//mal:years//*"/> |
| 31 |
|
| 32 |
<itst:preserveSpaceRule preserveSpace="yes" selector="//mal:code"/> |
| 33 |
<itst:preserveSpaceRule preserveSpace="yes" selector="//mal:screen"/> |
| 34 |
|
| 35 |
<its:translateRule translate="no" selector="//mal:comment/descendant-or-self::*"/> |
| 36 |
<its:translateRule translate="no" selector="//mal:credit/mal:email"/> |
| 37 |
|
| 38 |
<itst:externalRefRule selector="//mal:media" refPointer="@src"/> |
| 39 |
|
| 40 |
<itst:contextRule selector="//mal:info/mal:title[@type]" contextPointer="@type"/> |
| 41 |
<itst:contextRule selector="//mal:info/mal:title[@type and @role]" contextPointer="concat(@type, ':', @role)"/> |
| 42 |
</its:rules> |