summaryrefslogtreecommitdiff
path: root/tests/IT-context-1.xml
blob: 390ebc8dcdfcb243e7aa3655bfbe673da2f64de5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<page xmlns:its="http://www.w3.org/2005/11/its" xmlns:itst="http://itstool.org/extensions/" its:version="1.0">
 <info>
  <its:rules version="1.0">
   <itst:contextRule selector="//title[@type]" contextPointer="@type"/>
   <itst:contextRule selector="//title[@type = 'sort']" context="[[sort]]"/>
   <itst:contextRule selector="//title[@type and @role]" contextPointer="concat(@type, ':', @role)"/>
  </its:rules>
  <title type="sort">Title</title>
  <title type="link">Link title</title>
  <title type="link" role="topic">Topic link title</title>
 </info>
 <title>Title</title>
 <p itst:context="paragraph">Context is paragraph</p>
</page>