Schlaumeier: Suche XPATH-Ausdruck

Beitrag lesen

Hi Leute,
wie kann ich das Problem lösen?
So isses:

<section role="intro">  
  <title></title>  
  <section>  
    <title></title>  
    <section>  
      <title></title>  
      <section>  
        <title></title>  
        <section>  
          <title></title>  
          <section>  
            <title></title>  
            <section>  
              <title></title>  
              <section>  
                <title></title>  
                <section>  
                  <title></title>  
                  <section>  
                    <title>  
                    </title>  
                  </section>  
                </section>  
              </section>  
            </section>  
          </section>  
        </section>  
      </section>  
    </section>  
  </section>  
</section>

So soll es werden:

<section role="intro">  
  <title></title>  
  <section>  
    <title>1</title>  
    <section>  
      <title>2</title>  
      <section>  
        <title>3</title>  
        <section>  
          <title>4</title>  
          <section>  
            <title>5</title>  
            <section>  
              <title>6</title>  
              <section>  
                <title>7</title>  
                <section>  
                  <title>8</title>  
                  <section>  
                    <title>9</title>  
                  </section>  
                </section>  
              </section>  
            </section>  
          </section>  
        </section>  
      </section>  
    </section>  
  </section>  
</section>  
  
Ich möchte die Zahlen per XPATH ermitteln, nicht per Counter und call-template etc.  
  
Grüße