title: Schematron bad pattern with sibling
body: <p>Hi I have XML like this:</p>
  
  <pre><code>&lt;databaza&gt;
  &lt;dvd&gt;
      &lt;movie&gt;
          &lt;number_of_character&gt;2&lt;/number_of_character&gt;
          &lt;character&gt;
              &lt;character_id&gt;1&lt;/character_id&gt;
          &lt;/character&gt;
          &lt;character&gt;
              &lt;character_id&gt;2&lt;/character_id&gt;
          &lt;/character&gt;
      &lt;/movie&gt;
      &lt;movie&gt;
          &lt;number_of_character&gt;4&lt;/number_of_character&gt;
          &lt;character&gt;
              &lt;character_id&gt;1&lt;/character_id&gt;
              &lt;/character&gt;
          &lt;character&gt;
              &lt;character_id&gt;2&lt;/character_id&gt;
              &lt;/character&gt;
          &lt;character&gt;
              &lt;character_id&gt;3&lt;/character_id&gt;
              &lt;/character&gt;
          &lt;character&gt;
              &lt;character_id&gt;4&lt;/character_id&gt;
              &lt;/character&gt;
      &lt;/movie&gt;
  &lt;/dvd&gt;
  &lt;/databaza&gt;
  </code></pre>
  
  <p>And schematron code:</p>
  
  <pre><code>    &lt;pattern&gt;
      &lt;rule context="databaza/dvd/movie/character"&gt;
          &lt;assert test="character_id &amp;lt;= ../number_of_character"&gt;
           Element "character_id" is grater than element "number_of_character".&lt;/assert&gt;
      &lt;/rule&gt;
  &lt;/pattern&gt;
  
  &lt;pattern&gt;
      &lt;rule context="databaza/dvd/movie/character"&gt;
          &lt;assert test="current()/character_id &amp;lt; following-sibling::*[1]/character_id"&gt; 
           Bad order. &lt;/assert&gt;
      &lt;/rule&gt;
  &lt;/pattern&gt;
  </code></pre>
  
  <p>And I have the problem with the parts where there are not another sibling. 
  can you help me ? </p>
  
  <p>I used these 2 patterns because I need  <code>&lt;character_id&gt;</code> in the order from 1 to max (the element <code>&lt;number_of_character&gt;</code>) so if you have better pattern which say that the numbers must be in these order please write it to me.</p>