Difference between revisions of "MediaWiki:Key Start Keys2HTML-Table de.xsl"

From FloraWiki - das Wiki zur Schweizer Flora
Jump to: navigation, search
m (fix nested_decision_alternative_code)
m (+width, height der Bilder)
Line 10: Line 10:
 
               omit-xml-declaration="yes"  />
 
               omit-xml-declaration="yes"  />
  
 +
<!-- Log, Changes
 +
 +
key_start:decision_alternative_code
 +
-> decisions_alternative_codes
 +
key_start:nested_decision_alternative_code
 +
-> nested_decisions_alternative_codes
 +
lead:floristic_regions
 +
-> floristic_zones
 +
lead:alternative_text
 +
-> decision_alternative_text
 +
  -->
 
   <!-- generate output page -->
 
   <!-- generate output page -->
 
   <xsl:param name="current_date_time" /><!-- from command line -->
 
   <xsl:param name="current_date_time" /><!-- from command line -->
Line 116: Line 127:
 
     <tr><td>add_decision_backlinks</td><td>1</td></tr>
 
     <tr><td>add_decision_backlinks</td><td>1</td></tr>
 
   </xsl:if>
 
   </xsl:if>
   <!-- decision_alternative_code -->
+
   <!-- decisions_alternative_codes -->
   <xsl:choose>
+
   <xsl:choose><!-- TODO check starts-with(numbers) -->  
     <xsl:when test="$key_start_nodes/following-sibling::node()/Feld_1[contains(.,'*')  and not(following-sibling::parentlead) and not(preceding-sibling::parentlead)]">
+
     <xsl:when test="$key_start_nodes/following-sibling::node()/Feld_1[starts-with(translate(normalize-space(.), '1234567890', '1111111111'),'1')   
       <tr><td>decision_alternative_code</td><td>*</td></tr>
+
    and not(following-sibling::parentlead)  
    </xsl:when>
+
    and not(preceding-sibling::parentlead)]">
    <xsl:otherwise>
+
       <!-- numbers -->
 +
      <!-- <tr><td>decisions_alternative_codes</td><td>number &amp; *</td></tr> -->
 
       <xsl:choose>
 
       <xsl:choose>
         <xsl:when test="$key_start_nodes/following-sibling::node()/Feld_1[contains(.,$rsquo) and not(following-sibling::parentlead) and not(preceding-sibling::parentlead)]">
+
         <xsl:when test="$key_start_nodes/following-sibling::node()/Feld_1[contains(.,'*')  
           <tr><td>decision_alternative_code</td><td><xsl:value-of select="$rsquo"/></td></tr>
+
        and not(following-sibling::parentlead) and not(preceding-sibling::parentlead)]">
 +
           <tr><td>decisions_alternative_codes</td><td>number &amp; *</td></tr>
 
         </xsl:when>
 
         </xsl:when>
 
         <xsl:otherwise>
 
         <xsl:otherwise>
 
           <xsl:choose>
 
           <xsl:choose>
             <xsl:when test="$key_start_nodes/following-sibling::node()/Feld_1[contains(.,$apos) and not(following-sibling::parentlead) and not(preceding-sibling::parentlead)]">
+
             <xsl:when test="$key_start_nodes/following-sibling::node()/Feld_1[contains(.,$rsquo)  
               <tr><td>decision_alternative_code</td><td><xsl:value-of select="$apos"/></td></tr>
+
            and not(following-sibling::parentlead)
 +
            and not(preceding-sibling::parentlead)]">
 +
               <tr><td>decisions_alternative_codes</td><td>number &amp; <xsl:value-of select="$rsquo"/></td></tr>
 
             </xsl:when>
 
             </xsl:when>
 
             <xsl:otherwise>
 
             <xsl:otherwise>
 
               <xsl:choose>
 
               <xsl:choose>
                 <xsl:when test="$key_start_nodes/following-sibling::node()/Feld_1[contains(.,'a') and not(following-sibling::parentlead) and not(preceding-sibling::parentlead)]">
+
                 <xsl:when test="$key_start_nodes/following-sibling::node()/Feld_1[contains(.,$apos)
                   <tr><td>decision_alternative_code</td><td>a-z</td></tr>
+
                and not(following-sibling::parentlead)
 +
                and not(preceding-sibling::parentlead)]">
 +
                  <tr><td>decisions_alternative_codes</td><td>number &amp; <xsl:value-of select="$apos"/></td></tr>
 +
                </xsl:when>
 +
                <xsl:otherwise>
 +
                  <tr><td>decisions_alternative_codes</td><td>number &amp; -</td></tr>
 +
                </xsl:otherwise>
 +
              </xsl:choose>
 +
            </xsl:otherwise>
 +
          </xsl:choose>
 +
        </xsl:otherwise>
 +
      </xsl:choose>
 +
    </xsl:when>
 +
    <xsl:otherwise>
 +
      <xsl:choose><!-- test lower case A-Z -->
 +
        <xsl:when test="$key_start_nodes/following-sibling::node()/Feld_1[starts-with(translate(normalize-space(.), 'abcdefghijklmnopqrstuvwxyz', 'aaaaaaaaaaaaaaaaaaaaaaaaaa'),'a') and not(following-sibling::parentlead) and not(preceding-sibling::parentlead)]">
 +
          <!-- a-z -->
 +
          <xsl:choose>
 +
            <xsl:when test="$key_start_nodes/following-sibling::node()/Feld_1[contains(.,'*')  and not(following-sibling::parentlead) and not(preceding-sibling::parentlead)]">
 +
              <tr><td>decisions_alternative_codes</td><td>a-z &amp; *</td></tr>
 +
            </xsl:when>
 +
            <xsl:otherwise>
 +
              <xsl:choose>
 +
                <xsl:when test="$key_start_nodes/following-sibling::node()/Feld_1[contains(.,$rsquo)  and not(following-sibling::parentlead) and not(preceding-sibling::parentlead)]">
 +
                   <tr><td>decisions_alternative_codes</td><td>a-z &amp; <xsl:value-of select="$rsquo"/></td></tr>
 
                 </xsl:when>
 
                 </xsl:when>
 
                 <xsl:otherwise>
 
                 <xsl:otherwise>
 
                   <xsl:choose>
 
                   <xsl:choose>
                     <xsl:when test="$key_start_nodes/following-sibling::node()/Feld_1[contains(.,'A')  and not(following-sibling::parentlead) and not(preceding-sibling::parentlead)]">
+
                     <xsl:when test="$key_start_nodes/following-sibling::node()/Feld_1[contains(.,$apos)  and not(following-sibling::parentlead) and not(preceding-sibling::parentlead)]">
                       <tr><td>decision_alternative_code</td><td>A-Z</td></tr>
+
                       <tr><td>decisions_alternative_codes</td><td>a-z &amp; <xsl:value-of select="$apos"/></td></tr>
 
                     </xsl:when>
 
                     </xsl:when>
                     <xsl:otherwise> </xsl:otherwise><!-- assume default  mode 1, 1-, 1- -->
+
                     <xsl:otherwise>
 +
                      <tr><td>decisions_alternative_codes</td><td>a-z &amp; -</td></tr>
 +
                    </xsl:otherwise>
 
                   </xsl:choose>
 
                   </xsl:choose>
 
                 </xsl:otherwise>
 
                 </xsl:otherwise>
 
               </xsl:choose>
 
               </xsl:choose>
 
             </xsl:otherwise>
 
             </xsl:otherwise>
 +
          </xsl:choose>
 +
        </xsl:when>
 +
        <xsl:otherwise>
 +
          <xsl:choose><!-- test upper case A-Z -->
 +
            <xsl:when test="$key_start_nodes/following-sibling::node()/Feld_1[starts-with(translate(normalize-space(.), 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'AAAAAAAAAAAAAAAAAAAAAAAAAA'),'A')  and not(following-sibling::parentlead) and not(preceding-sibling::parentlead)]">
 +
              <!-- A-Z -->
 +
              <xsl:choose>
 +
                <xsl:when test="$key_start_nodes/following-sibling::node()/Feld_1[contains(.,'*')  and not(following-sibling::parentlead) and not(preceding-sibling::parentlead)]">
 +
                  <tr><td>decisions_alternative_codes</td><td>A-Z &amp; *</td></tr>
 +
                </xsl:when>
 +
                <xsl:otherwise>
 +
                  <xsl:choose>
 +
                    <xsl:when test="$key_start_nodes/following-sibling::node()/Feld_1[contains(.,$rsquo)  and not(following-sibling::parentlead) and not(preceding-sibling::parentlead)]">
 +
                      <tr><td>decisions_alternative_codes</td><td>A-Z &amp; <xsl:value-of select="$rsquo"/></td></tr>
 +
                    </xsl:when>
 +
                    <xsl:otherwise>
 +
                      <xsl:choose>
 +
                        <xsl:when test="$key_start_nodes/following-sibling::node()/Feld_1[contains(.,$apos)  and not(following-sibling::parentlead) and not(preceding-sibling::parentlead)]">
 +
                          <tr><td>decisions_alternative_codes</td><td>A-Z &amp; <xsl:value-of select="$apos"/></td></tr>
 +
                        </xsl:when>
 +
                        <xsl:otherwise>
 +
                          <tr><td>decisions_alternative_codes</td><td>A-Z &amp; -</td></tr>
 +
                        </xsl:otherwise>
 +
                      </xsl:choose>
 +
                    </xsl:otherwise>
 +
                  </xsl:choose>
 +
                </xsl:otherwise>
 +
              </xsl:choose>
 +
            </xsl:when>
 
           </xsl:choose>
 
           </xsl:choose>
 
         </xsl:otherwise>
 
         </xsl:otherwise>
 
       </xsl:choose>
 
       </xsl:choose>
    </xsl:otherwise>
+
    </xsl:otherwise>
 
   </xsl:choose>
 
   </xsl:choose>
   <!-- nested_decision_alternative_code -->
+
   <!-- nested_decisions_alternative_codes -->
 
   <!-- TODO check modi:
 
   <!-- TODO check modi:
 
   a-z results in a, –, –
 
   a-z results in a, –, –
Line 166: Line 236:
 
   <xsl:choose>
 
   <xsl:choose>
 
     <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, concat('a',$rsquo))]">
 
     <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, concat('a',$rsquo))]">
       <tr><td>nested_decision_alternative_code</td><td>a-z<xsl:value-of select="$rsquo"/></td></tr>
+
       <tr><td>nested_decisions_alternative_codes</td><td>a-z &amp; <xsl:value-of select="$rsquo"/></td></tr>
 
     </xsl:when>
 
     </xsl:when>
 
     <xsl:otherwise>
 
     <xsl:otherwise>
 
       <xsl:choose>
 
       <xsl:choose>
 
         <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, concat('A',$rsquo))]">
 
         <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, concat('A',$rsquo))]">
           <tr><td>nested_decision_alternative_code</td><td>A-Z<xsl:value-of select="$rsquo"/></td></tr>
+
           <tr><td>nested_decisions_alternative_codes</td><td>A-Z &amp;<xsl:value-of select="$rsquo"/></td></tr>
 
         </xsl:when>
 
         </xsl:when>
 
         <xsl:otherwise>
 
         <xsl:otherwise>
 
           <xsl:choose>
 
           <xsl:choose>
 
             <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, 'a*')]">
 
             <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, 'a*')]">
               <tr><td>nested_decision_alternative_code</td><td>a-z*</td></tr>
+
               <tr><td>nested_decisions_alternative_codes</td><td>a-z &amp; *</td></tr>
 
             </xsl:when>
 
             </xsl:when>
 
             <xsl:otherwise>
 
             <xsl:otherwise>
 
               <xsl:choose>
 
               <xsl:choose>
 
                 <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, 'A*')]">
 
                 <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, 'A*')]">
                   <tr><td>nested_decision_alternative_code</td><td>A-Z*</td></tr>
+
                   <tr><td>nested_decisions_alternative_codes</td><td>A-Z &amp; *</td></tr>
 
                 </xsl:when>
 
                 </xsl:when>
 
                 <xsl:otherwise>
 
                 <xsl:otherwise>
 
                   <xsl:choose>
 
                   <xsl:choose>
 
                     <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, concat('a',$apos))]">
 
                     <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, concat('a',$apos))]">
                       <tr><td>nested_decision_alternative_code</td><td>a-z<xsl:value-of select="$apos"/></td></tr>
+
                       <tr><td>nested_decisions_alternative_codes</td><td>a-z &amp; <xsl:value-of select="$apos"/></td></tr>
 
                     </xsl:when>
 
                     </xsl:when>
 
                     <xsl:otherwise>
 
                     <xsl:otherwise>
 
                       <xsl:choose>
 
                       <xsl:choose>
 
                         <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, concat('A',$apos))]">
 
                         <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, concat('A',$apos))]">
                           <tr><td>nested_decision_alternative_code</td><td>A-Z<xsl:value-of select="$apos"/></td></tr>
+
                           <tr><td>nested_decisions_alternative_codes</td><td>A-Z &amp; <xsl:value-of select="$apos"/></td></tr>
 
                         </xsl:when>
 
                         </xsl:when>
 
                         <xsl:otherwise>
 
                         <xsl:otherwise>
 
                           <xsl:choose>
 
                           <xsl:choose>
 
                             <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, 'a-')]">
 
                             <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, 'a-')]">
                               <tr><td>nested_decision_alternative_code</td><td>a-z</td></tr>
+
                               <tr><td>nested_decisions_alternative_codes</td><td>a-z &amp; -</td></tr>
 
                             </xsl:when>
 
                             </xsl:when>
 
                             <xsl:otherwise>
 
                             <xsl:otherwise>
 
                               <xsl:choose>
 
                               <xsl:choose>
 
                                 <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, 'a–')]"><!-- &ndash; -->
 
                                 <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, 'a–')]"><!-- &ndash; -->
                                   <tr><td>nested_decision_alternative_code</td><td>a-z</td></tr>
+
                                   <tr><td>nested_decisions_alternative_codes</td><td>a-z &amp; -</td></tr>
 
                                 </xsl:when>
 
                                 </xsl:when>
 
                                 <xsl:otherwise>
 
                                 <xsl:otherwise>
 
                                   <xsl:choose>
 
                                   <xsl:choose>
 
                                     <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, 'A-')]">
 
                                     <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, 'A-')]">
                                       <tr><td>nested_decision_alternative_code</td><td>A-Z</td></tr>
+
                                       <tr><td>nested_decisions_alternative_codes</td><td>A-Z &amp; -</td></tr>
 
                                     </xsl:when>
 
                                     </xsl:when>
 
                                     <xsl:otherwise>
 
                                     <xsl:otherwise>
 
                                       <xsl:choose>
 
                                       <xsl:choose>
 
                                         <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, 'A–')]"><!-- &ndash; -->
 
                                         <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, 'A–')]"><!-- &ndash; -->
                                           <tr><td>nested_decision_alternative_code</td><td>A-Z</td></tr>
+
                                           <tr><td>nested_decisions_alternative_codes</td><td>A-Z &amp; -</td></tr>
 
                                         </xsl:when>
 
                                         </xsl:when>
 
                                         <xsl:otherwise>
 
                                         <xsl:otherwise>
 
                                           <xsl:choose>
 
                                           <xsl:choose>
 
                                             <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, '1–')]"><!-- &ndash; -->
 
                                             <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, '1–')]"><!-- &ndash; -->
                                               <tr><td>nested_decision_alternative_code</td><td>number</td></tr>
+
                                               <tr><td>nested_decisions_alternative_codes</td><td>number &amp; -</td></tr>
 
                                             </xsl:when>
 
                                             </xsl:when>
 
                                             <xsl:otherwise>
 
                                             <xsl:otherwise>
 
                                               <xsl:choose>
 
                                               <xsl:choose>
 
                                                 <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, '1-')]">
 
                                                 <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, '1-')]">
                                                   <tr><td>nested_decision_alternative_code</td><td>number</td></tr>
+
                                                   <tr><td>nested_decisions_alternative_codes</td><td>number &amp; -</td></tr>
 
                                                 </xsl:when>
 
                                                 </xsl:when>
 
                                                 <xsl:otherwise>
 
                                                 <xsl:otherwise>
Line 266: Line 336:
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; decision_code: Feld_1"><span class="rotated-text"><span class="rotated-text__inner">debug_info_Feld_1_decision_code_and_alternative</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; decision_code: Feld_1"><span class="rotated-text"><span class="rotated-text__inner">debug_info_Feld_1_decision_code_and_alternative</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; next_decision_code: Feld_3"><span class="rotated-text"><span class="rotated-text__inner">debug_info_Feld_3_next_decision_code_and_alternative </span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; next_decision_code: Feld_3"><span class="rotated-text"><span class="rotated-text__inner">debug_info_Feld_3_next_decision_code_and_alternative </span></span></th>
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; alternative_text: Feld_2"><span class="rotated-text"><span class="rotated-text__inner">alternative_text</span></span></th>
+
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; decision_alternative_text: Feld_2"><span class="rotated-text"><span class="rotated-text__inner">decision_alternative_text</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; remarks: remarks"><span class="rotated-text"><span class="rotated-text__inner">remarks</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; remarks: remarks"><span class="rotated-text"><span class="rotated-text__inner">remarks</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; occurrence: occurrence"><span class="rotated-text"><span class="rotated-text__inner">occurrence</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; occurrence: occurrence"><span class="rotated-text"><span class="rotated-text__inner">occurrence</span></span></th>
Line 277: Line 347:
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; common_names: common_names"><span class="rotated-text"><span class="rotated-text__inner">common_names</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; common_names: common_names"><span class="rotated-text"><span class="rotated-text__inner">common_names</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; decision_heading: subheading"><span class="rotated-text"><span class="rotated-text__inner">decision_heading</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; decision_heading: subheading"><span class="rotated-text"><span class="rotated-text__inner">decision_heading</span></span></th>
 +
 +
      <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; primary_media_width: primary_images_width"><span class="rotated-text"><span class="rotated-text__inner">primary_media_width</span></span></th>
 +
      <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; primary_media_height: primary_images_height"><span class="rotated-text"><span class="rotated-text__inner">primary_media_height</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; primary_media_1: image_a"><span class="rotated-text"><span class="rotated-text__inner">primary_media_1</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; primary_media_1: image_a"><span class="rotated-text"><span class="rotated-text__inner">primary_media_1</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; caption_primary_media_1: caption_a"><span class="rotated-text"><span class="rotated-text__inner">caption_primary_media_1</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; caption_primary_media_1: caption_a"><span class="rotated-text"><span class="rotated-text__inner">caption_primary_media_1</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; label_primary_media_1: label_a"><span class="rotated-text"><span class="rotated-text__inner">label_primary_media_1</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; label_primary_media_1: label_a"><span class="rotated-text"><span class="rotated-text__inner">label_primary_media_1</span></span></th>
 +
      <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; primary_media_1_width: image_a_width"><span class="rotated-text"><span class="rotated-text__inner">primary_media_1_width</span></span></th>
 +
      <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; primary_media_1_height: image_a_height"><span class="rotated-text"><span class="rotated-text__inner">primary_media_1_height</span></span></th>
 +
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; primary_media_2: image_b"><span class="rotated-text"><span class="rotated-text__inner">primary_media_2</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; primary_media_2: image_b"><span class="rotated-text"><span class="rotated-text__inner">primary_media_2</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; caption_primary_media_2: caption_b"><span class="rotated-text"><span class="rotated-text__inner">caption_primary_media_2</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; caption_primary_media_2: caption_b"><span class="rotated-text"><span class="rotated-text__inner">caption_primary_media_2</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; label_primary_media_2: label_b"><span class="rotated-text"><span class="rotated-text__inner">label_primary_media_2</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; label_primary_media_2: label_b"><span class="rotated-text"><span class="rotated-text__inner">label_primary_media_2</span></span></th>
 +
      <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; primary_media_2_width: image_b_width"><span class="rotated-text"><span class="rotated-text__inner">primary_media_2_width</span></span></th>
 +
      <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; primary_media_2_height: image_b_height"><span class="rotated-text"><span class="rotated-text__inner">primary_media_2_height</span></span></th>
 +
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; primary_media_3: image_c"><span class="rotated-text"><span class="rotated-text__inner">primary_media_3</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; primary_media_3: image_c"><span class="rotated-text"><span class="rotated-text__inner">primary_media_3</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; caption_primary_media_3: caption_c"><span class="rotated-text"><span class="rotated-text__inner">caption_primary_media_3</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; caption_primary_media_3: caption_c"><span class="rotated-text"><span class="rotated-text__inner">caption_primary_media_3</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; label_primary_media_3: label_c"><span class="rotated-text"><span class="rotated-text__inner">label_primary_media_3</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; label_primary_media_3: label_c"><span class="rotated-text"><span class="rotated-text__inner">label_primary_media_3</span></span></th>
 +
      <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; primary_media_3_width: image_c_width"><span class="rotated-text"><span class="rotated-text__inner">primary_media_3_width</span></span></th>
 +
      <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; primary_media_3_height: image_c_height"><span class="rotated-text"><span class="rotated-text__inner">primary_media_3_height</span></span></th>
 +
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; primary_media_4: image_d"><span class="rotated-text"><span class="rotated-text__inner">primary_media_4</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; primary_media_4: image_d"><span class="rotated-text"><span class="rotated-text__inner">primary_media_4</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; caption_primary_media_4: caption_d"><span class="rotated-text"><span class="rotated-text__inner">caption_primary_media_4</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; caption_primary_media_4: caption_d"><span class="rotated-text"><span class="rotated-text__inner">caption_primary_media_4</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; label_primary_media_4: label_d"><span class="rotated-text"><span class="rotated-text__inner">label_primary_media_4</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; label_primary_media_4: label_d"><span class="rotated-text"><span class="rotated-text__inner">label_primary_media_4</span></span></th>
 +
      <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; primary_media_4_width: image_d_width"><span class="rotated-text"><span class="rotated-text__inner">primary_media_4_width</span></span></th>
 +
      <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; primary_media_4_height: image_d_height"><span class="rotated-text"><span class="rotated-text__inner">primary_media_4_height</span></span></th>
 +
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; primary_media_5: image_e"><span class="rotated-text"><span class="rotated-text__inner">primary_media_5</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; primary_media_5: image_e"><span class="rotated-text"><span class="rotated-text__inner">primary_media_5</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; caption_primary_media_5: caption_e"><span class="rotated-text"><span class="rotated-text__inner">caption_primary_media_5</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; caption_primary_media_5: caption_e"><span class="rotated-text"><span class="rotated-text__inner">caption_primary_media_5</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; label_primary_media_5: label_e"><span class="rotated-text"><span class="rotated-text__inner">label_primary_media_5</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; label_primary_media_5: label_e"><span class="rotated-text"><span class="rotated-text__inner">label_primary_media_5</span></span></th>
 +
      <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; primary_media_5_width: image_e_width"><span class="rotated-text"><span class="rotated-text__inner">primary_media_5_width</span></span></th>
 +
      <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; primary_media_5_height: image_e_height"><span class="rotated-text"><span class="rotated-text__inner">primary_media_5_height</span></span></th>
 +
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; large_primary_media_1: image_j"><span class="rotated-text"><span class="rotated-text__inner">large_primary_media_1</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; large_primary_media_1: image_j"><span class="rotated-text"><span class="rotated-text__inner">large_primary_media_1</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; caption_large_primary_media_1: caption_j"><span class="rotated-text"><span class="rotated-text__inner">caption_large_primary_media_1</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; caption_large_primary_media_1: caption_j"><span class="rotated-text"><span class="rotated-text__inner">caption_large_primary_media_1</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; label_large_primary_media_1: label_j"><span class="rotated-text"><span class="rotated-text__inner">label_large_primary_media_1</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; label_large_primary_media_1: label_j"><span class="rotated-text"><span class="rotated-text__inner">label_large_primary_media_1</span></span></th>
 +
      <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; large_primary_media_1_width: image_j_width"><span class="rotated-text"><span class="rotated-text__inner">large_primary_media_1_width</span></span></th>
 +
      <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; large_primary_media_1_height: image_j_height"><span class="rotated-text"><span class="rotated-text__inner">large_primary_media_1_height</span></span></th>
 +
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; large_primary_media_2: image_k"><span class="rotated-text"><span class="rotated-text__inner">large_primary_media_2</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; large_primary_media_2: image_k"><span class="rotated-text"><span class="rotated-text__inner">large_primary_media_2</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; caption_large_primary_media_2: caption_k"><span class="rotated-text"><span class="rotated-text__inner">caption_large_primary_media_2</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; caption_large_primary_media_2: caption_k"><span class="rotated-text"><span class="rotated-text__inner">caption_large_primary_media_2</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; label_large_primary_media_2: label_k"><span class="rotated-text"><span class="rotated-text__inner">label_large_primary_media_2</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; label_large_primary_media_2: label_k"><span class="rotated-text"><span class="rotated-text__inner">label_large_primary_media_2</span></span></th>
 +
      <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; large_primary_media_2_width: image_k_width"><span class="rotated-text"><span class="rotated-text__inner">large_primary_media_2_width</span></span></th>
 +
      <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; large_primary_media_2_height: image_k_height"><span class="rotated-text"><span class="rotated-text__inner">large_primary_media_2_height</span></span></th>
 +
 +
      <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; collapsed_media_width: extra_images_width"><span class="rotated-text"><span class="rotated-text__inner">collapsed_media_width</span></span></th>
 +
      <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; collapsed_media_height: extra_images_height"><span class="rotated-text"><span class="rotated-text__inner">collapsed_media_height</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; collapsed_media_1: image_m"><span class="rotated-text"><span class="rotated-text__inner">collapsed_media_1</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; collapsed_media_1: image_m"><span class="rotated-text"><span class="rotated-text__inner">collapsed_media_1</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; caption_collapsed_media_1: caption_m"><span class="rotated-text"><span class="rotated-text__inner">caption_collapsed_media_1</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; caption_collapsed_media_1: caption_m"><span class="rotated-text"><span class="rotated-text__inner">caption_collapsed_media_1</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; label_collapsed_media_1: label_m"><span class="rotated-text"><span class="rotated-text__inner">label_collapsed_media_1</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; label_collapsed_media_1: label_m"><span class="rotated-text"><span class="rotated-text__inner">label_collapsed_media_1</span></span></th>
 +
      <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; collapsed_media_1_width: image_m_width"><span class="rotated-text"><span class="rotated-text__inner">collapsed_media_1_width</span></span></th>
 +
      <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; collapsed_media_1_height: image_m_height"><span class="rotated-text"><span class="rotated-text__inner">collapsed_media_1_height</span></span></th>
 +
     
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; collapsed_media_2: image_n"><span class="rotated-text"><span class="rotated-text__inner">collapsed_media_2</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; collapsed_media_2: image_n"><span class="rotated-text"><span class="rotated-text__inner">collapsed_media_2</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; caption_collapsed_media_2: caption_n"><span class="rotated-text"><span class="rotated-text__inner">caption_collapsed_media_2</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; caption_collapsed_media_2: caption_n"><span class="rotated-text"><span class="rotated-text__inner">caption_collapsed_media_2</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; label_collapsed_media_2: label_n"><span class="rotated-text"><span class="rotated-text__inner">label_collapsed_media_2</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; label_collapsed_media_2: label_n"><span class="rotated-text"><span class="rotated-text__inner">label_collapsed_media_2</span></span></th>
 +
      <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; collapsed_media_2_width: image_n_width"><span class="rotated-text"><span class="rotated-text__inner">collapsed_media_2_width</span></span></th>
 +
      <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; collapsed_media_2_height: image_n_height"><span class="rotated-text"><span class="rotated-text__inner">collapsed_media_2_height</span></span></th>
 +
     
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; collapsed_media_3: image_o"><span class="rotated-text"><span class="rotated-text__inner">collapsed_media_3</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; collapsed_media_3: image_o"><span class="rotated-text"><span class="rotated-text__inner">collapsed_media_3</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; caption_collapsed_media_3: caption_o"><span class="rotated-text"><span class="rotated-text__inner">caption_collapsed_media_3</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; caption_collapsed_media_3: caption_o"><span class="rotated-text"><span class="rotated-text__inner">caption_collapsed_media_3</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; label_collapsed_media_3: label_o"><span class="rotated-text"><span class="rotated-text__inner">label_collapsed_media_3</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; label_collapsed_media_3: label_o"><span class="rotated-text"><span class="rotated-text__inner">label_collapsed_media_3</span></span></th>
 +
      <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; collapsed_media_3_width: image_o_width"><span class="rotated-text"><span class="rotated-text__inner">collapsed_media_3_width</span></span></th>
 +
      <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; collapsed_media_3_height: image_o_height"><span class="rotated-text"><span class="rotated-text__inner">collapsed_media_3_height</span></span></th>
 +
     
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; collapsed_media_4: image_p"><span class="rotated-text"><span class="rotated-text__inner">collapsed_media_4</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; collapsed_media_4: image_p"><span class="rotated-text"><span class="rotated-text__inner">collapsed_media_4</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; caption_collapsed_media_4: caption_p"><span class="rotated-text"><span class="rotated-text__inner">caption_collapsed_media_4</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; caption_collapsed_media_4: caption_p"><span class="rotated-text"><span class="rotated-text__inner">caption_collapsed_media_4</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; label_collapsed_media_4: label_p"><span class="rotated-text"><span class="rotated-text__inner">label_collapsed_media_4</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; label_collapsed_media_4: label_p"><span class="rotated-text"><span class="rotated-text__inner">label_collapsed_media_4</span></span></th>
 +
      <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; collapsed_media_4_width: image_p_width"><span class="rotated-text"><span class="rotated-text__inner">collapsed_media_4_width</span></span></th>
 +
      <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; collapsed_media_4_height: image_p_height"><span class="rotated-text"><span class="rotated-text__inner">collapsed_media_4_height</span></span></th>
 +
     
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; collapsed_media_5: image_q"><span class="rotated-text"><span class="rotated-text__inner">collapsed_media_5</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; collapsed_media_5: image_q"><span class="rotated-text"><span class="rotated-text__inner">collapsed_media_5</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; caption_collapsed_media_5: caption_q"><span class="rotated-text"><span class="rotated-text__inner">caption_collapsed_media_5</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; caption_collapsed_media_5: caption_q"><span class="rotated-text"><span class="rotated-text__inner">caption_collapsed_media_5</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; label_collapsed_media_5: label_q"><span class="rotated-text"><span class="rotated-text__inner">label_collapsed_media_5</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; label_collapsed_media_5: label_q"><span class="rotated-text"><span class="rotated-text__inner">label_collapsed_media_5</span></span></th>
 +
      <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; collapsed_media_5_width: image_q_width"><span class="rotated-text"><span class="rotated-text__inner">collapsed_media_5_width</span></span></th>
 +
      <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; collapsed_media_5_height: image_q_height"><span class="rotated-text"><span class="rotated-text__inner">collapsed_media_5_height</span></span></th>
 +
     
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; collapsed_media_6: image_r"><span class="rotated-text"><span class="rotated-text__inner">collapsed_media_6</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; collapsed_media_6: image_r"><span class="rotated-text"><span class="rotated-text__inner">collapsed_media_6</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; caption_collapsed_media_6: caption_r"><span class="rotated-text"><span class="rotated-text__inner">caption_collapsed_media_6</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; caption_collapsed_media_6: caption_r"><span class="rotated-text"><span class="rotated-text__inner">caption_collapsed_media_6</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; label_collapsed_media_6: label_r"><span class="rotated-text"><span class="rotated-text__inner">label_collapsed_media_6</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; label_collapsed_media_6: label_r"><span class="rotated-text"><span class="rotated-text__inner">label_collapsed_media_6</span></span></th>
 +
      <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; collapsed_media_6_width: image_r_width"><span class="rotated-text"><span class="rotated-text__inner">collapsed_media_6_width</span></span></th>
 +
      <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; collapsed_media_6_height: image_r_height"><span class="rotated-text"><span class="rotated-text__inner">collapsed_media_6_height</span></span></th>
 +
     
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; collapsed_media_captionlines: captionlines"><span class="rotated-text"><span class="rotated-text__inner">collapsed_media_captionlines</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; collapsed_media_captionlines: captionlines"><span class="rotated-text"><span class="rotated-text__inner">collapsed_media_captionlines</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; plant_height: plant_height"><span class="rotated-text"><span class="rotated-text__inner">plant_height</span></span></th>
 
       <th title="Entsprechung in &#x7b;&#x7b;Lead&#x7d;&#x7d; plant_height: plant_height"><span class="rotated-text"><span class="rotated-text__inner">plant_height</span></span></th>
Line 354: Line 468:
 
   Feld_1=decision_code
 
   Feld_1=decision_code
 
   Feld_3=next_decision_code
 
   Feld_3=next_decision_code
   Feld_2=alternative_text
+
   Feld_2=decision_alternative_text
 
   remarks=remarks
 
   remarks=remarks
 
   occurrence=occurrence
 
   occurrence=occurrence
Line 676: Line 790:
 
   </xsl:template>
 
   </xsl:template>
  
    <xsl:template name="wrap">
+
  <xsl:template name="wrap">
 
     <xsl:param name="text"/>
 
     <xsl:param name="text"/>
 
     <xsl:param name="separator"/>
 
     <xsl:param name="separator"/>
Line 686: Line 800:
 
         <xsl:with-param name="separator" select="$separator"/>
 
         <xsl:with-param name="separator" select="$separator"/>
 
         <xsl:with-param name="index" select="$separatorsPerLine"/>
 
         <xsl:with-param name="index" select="$separatorsPerLine"/>
 +
      </xsl:call-template>
 +
    </xsl:variable>
 +
    <xsl:value-of select="concat($line,'&#x0d;&#x0a;')"/>
 +
    <xsl:if test="string-length($line) &lt; string-length($text)">
 +
      <xsl:call-template name="wrap">
 +
        <xsl:with-param name="text" select="substring($text,string-length($line)+1)"/>
 +
        <xsl:with-param name="separator" select="$separator"/>
 +
        <xsl:with-param name="separatorsPerLine" select="$separatorsPerLine"/>
 +
      </xsl:call-template>
 +
    </xsl:if>
 +
  </xsl:template>
 +
  <!-- TODO -->
 +
  <xsl:template name="tags2wikitemplate">
 +
    <xsl:param name="content"/>
 +
    <xsl:variable name="line">
 +
      <xsl:call-template name="tags2wikitemplate">
 +
        <xsl:with-param name="content" select="." />
 
       </xsl:call-template>
 
       </xsl:call-template>
 
     </xsl:variable>
 
     </xsl:variable>
Line 902: Line 1,033:
 
       </xsl:choose>
 
       </xsl:choose>
 
       <xsl:choose>
 
       <xsl:choose>
         <!-- Feld_2 → alternative_text -->
+
         <!-- Feld_2 → decision_alternative_text -->
 
         <xsl:when test="$lead_parameter_nodes/Feld_2">
 
         <xsl:when test="$lead_parameter_nodes/Feld_2">
 
           <td>
 
           <td>
Line 1,009: Line 1,140:
 
         </xsl:when>
 
         </xsl:when>
 
         <xsl:otherwise><td><xsl:comment>kein subheading</xsl:comment></td></xsl:otherwise>
 
         <xsl:otherwise><td><xsl:comment>kein subheading</xsl:comment></td></xsl:otherwise>
 +
      </xsl:choose>
 +
     
 +
     
 +
      <xsl:choose>
 +
        <!-- primary_images_width → primary_media_width -->
 +
        <xsl:when test="$lead_parameter_nodes/primary_images_width">
 +
          <td><xsl:value-of select="$lead_parameter_nodes/primary_images_width"/></td>
 +
        </xsl:when>
 +
        <xsl:otherwise><td><xsl:comment>kein primary_images_width</xsl:comment></td></xsl:otherwise>
 +
      </xsl:choose>
 +
      <xsl:choose>
 +
        <!-- primary_images_height → primary_media_height -->
 +
        <xsl:when test="$lead_parameter_nodes/primary_images_height">
 +
          <td><xsl:value-of select="$lead_parameter_nodes/primary_images_height"/></td>
 +
        </xsl:when>
 +
        <xsl:otherwise><td><xsl:comment>kein primary_images_height</xsl:comment></td></xsl:otherwise>
 
       </xsl:choose>
 
       </xsl:choose>
 
       <xsl:choose>
 
       <xsl:choose>
Line 1,039: Line 1,186:
 
         <xsl:otherwise><td><xsl:comment>kein label_a</xsl:comment></td></xsl:otherwise>
 
         <xsl:otherwise><td><xsl:comment>kein label_a</xsl:comment></td></xsl:otherwise>
 
       </xsl:choose>
 
       </xsl:choose>
 +
      <xsl:choose>
 +
        <!-- image_a_width → primary_media_1_width -->
 +
        <xsl:when test="$lead_parameter_nodes/image_a_width">
 +
          <td><xsl:value-of select="$lead_parameter_nodes/image_a_width"/></td>
 +
        </xsl:when>
 +
        <xsl:otherwise><td><xsl:comment>kein image_a_width</xsl:comment></td></xsl:otherwise>
 +
      </xsl:choose>
 +
      <xsl:choose>
 +
        <!-- image_a_height → primary_media_1_height -->
 +
        <xsl:when test="$lead_parameter_nodes/image_a_height">
 +
          <td><xsl:value-of select="$lead_parameter_nodes/image_a_height"/></td>
 +
        </xsl:when>
 +
        <xsl:otherwise><td><xsl:comment>kein image_a_height</xsl:comment></td></xsl:otherwise>
 +
      </xsl:choose>
 +
 +
     
 
       <xsl:choose>
 
       <xsl:choose>
 
         <!-- image_b → primary_media_2 -->
 
         <!-- image_b → primary_media_2 -->
Line 1,068: Line 1,231:
 
         <xsl:otherwise><td><xsl:comment>kein label_b</xsl:comment></td></xsl:otherwise>
 
         <xsl:otherwise><td><xsl:comment>kein label_b</xsl:comment></td></xsl:otherwise>
 
       </xsl:choose>
 
       </xsl:choose>
 +
      <xsl:choose>
 +
        <!-- image_b_width → primary_media_2_width -->
 +
        <xsl:when test="$lead_parameter_nodes/image_b_width">
 +
          <td><xsl:value-of select="$lead_parameter_nodes/image_b_width"/></td>
 +
        </xsl:when>
 +
        <xsl:otherwise><td><xsl:comment>kein image_b_width</xsl:comment></td></xsl:otherwise>
 +
      </xsl:choose>
 +
      <xsl:choose>
 +
        <!-- image_b_height → primary_media_2_height -->
 +
        <xsl:when test="$lead_parameter_nodes/image_b_height">
 +
          <td><xsl:value-of select="$lead_parameter_nodes/image_b_height"/></td>
 +
        </xsl:when>
 +
        <xsl:otherwise><td><xsl:comment>kein image_b_height</xsl:comment></td></xsl:otherwise>
 +
      </xsl:choose>
 +
     
 +
     
 
       <xsl:choose>
 
       <xsl:choose>
 
         <!-- image_c → primary_media_3 -->
 
         <!-- image_c → primary_media_3 -->
Line 1,097: Line 1,276:
 
         <xsl:otherwise><td><xsl:comment>kein label_c</xsl:comment></td></xsl:otherwise>
 
         <xsl:otherwise><td><xsl:comment>kein label_c</xsl:comment></td></xsl:otherwise>
 
       </xsl:choose>
 
       </xsl:choose>
 +
      <xsl:choose>
 +
        <!-- image_c_width → primary_media_3_width -->
 +
        <xsl:when test="$lead_parameter_nodes/image_c_width">
 +
          <td><xsl:value-of select="$lead_parameter_nodes/image_c_width"/></td>
 +
        </xsl:when>
 +
        <xsl:otherwise><td><xsl:comment>kein image_c_width</xsl:comment></td></xsl:otherwise>
 +
      </xsl:choose>
 +
      <xsl:choose>
 +
        <!-- image_c_height → primary_media_3_height -->
 +
        <xsl:when test="$lead_parameter_nodes/image_c_height">
 +
          <td><xsl:value-of select="$lead_parameter_nodes/image_c_height"/></td>
 +
        </xsl:when>
 +
        <xsl:otherwise><td><xsl:comment>kein image_c_height</xsl:comment></td></xsl:otherwise>
 +
      </xsl:choose>
 +
     
 +
     
 
       <xsl:choose>
 
       <xsl:choose>
 
         <!-- image_d → primary_media_4 -->
 
         <!-- image_d → primary_media_4 -->
Line 1,126: Line 1,321:
 
         <xsl:otherwise><td><xsl:comment>kein label_d</xsl:comment></td></xsl:otherwise>
 
         <xsl:otherwise><td><xsl:comment>kein label_d</xsl:comment></td></xsl:otherwise>
 
       </xsl:choose>
 
       </xsl:choose>
 +
      <xsl:choose>
 +
        <!-- image_d_width → primary_media_4_width -->
 +
        <xsl:when test="$lead_parameter_nodes/image_d_width">
 +
          <td><xsl:value-of select="$lead_parameter_nodes/image_d_width"/></td>
 +
        </xsl:when>
 +
        <xsl:otherwise><td><xsl:comment>kein image_d_width</xsl:comment></td></xsl:otherwise>
 +
      </xsl:choose>
 +
      <xsl:choose>
 +
        <!-- image_d_height → primary_media_4_height -->
 +
        <xsl:when test="$lead_parameter_nodes/image_d_height">
 +
          <td><xsl:value-of select="$lead_parameter_nodes/image_d_height"/></td>
 +
        </xsl:when>
 +
        <xsl:otherwise><td><xsl:comment>kein image_d_height</xsl:comment></td></xsl:otherwise>
 +
      </xsl:choose>
 +
     
 +
     
 
       <xsl:choose>
 
       <xsl:choose>
 
         <!-- image_e → primary_media_5 -->
 
         <!-- image_e → primary_media_5 -->
Line 1,155: Line 1,366:
 
         <xsl:otherwise><td><xsl:comment>kein label_e</xsl:comment></td></xsl:otherwise>
 
         <xsl:otherwise><td><xsl:comment>kein label_e</xsl:comment></td></xsl:otherwise>
 
       </xsl:choose>
 
       </xsl:choose>
 +
      <xsl:choose>
 +
        <!-- image_e_width → primary_media_5_width -->
 +
        <xsl:when test="$lead_parameter_nodes/image_e_width">
 +
          <td><xsl:value-of select="$lead_parameter_nodes/image_e_width"/></td>
 +
        </xsl:when>
 +
        <xsl:otherwise><td><xsl:comment>kein image_e_width</xsl:comment></td></xsl:otherwise>
 +
      </xsl:choose>
 +
      <xsl:choose>
 +
        <!-- image_e_height → primary_media_5_height -->
 +
        <xsl:when test="$lead_parameter_nodes/image_e_height">
 +
          <td><xsl:value-of select="$lead_parameter_nodes/image_e_height"/></td>
 +
        </xsl:when>
 +
        <xsl:otherwise><td><xsl:comment>kein image_e_height</xsl:comment></td></xsl:otherwise>
 +
      </xsl:choose>
 +
     
 +
     
 
       <xsl:choose>
 
       <xsl:choose>
 
         <!-- image_j → large_primary_media_1 -->
 
         <!-- image_j → large_primary_media_1 -->
Line 1,184: Line 1,411:
 
         <xsl:otherwise><td><xsl:comment>kein label_j</xsl:comment></td></xsl:otherwise>
 
         <xsl:otherwise><td><xsl:comment>kein label_j</xsl:comment></td></xsl:otherwise>
 
       </xsl:choose>
 
       </xsl:choose>
 +
      <xsl:choose>
 +
        <!-- image_j_width → large_primary_media_1_width -->
 +
        <xsl:when test="$lead_parameter_nodes/image_j_width">
 +
          <td><xsl:value-of select="$lead_parameter_nodes/image_j_width"/></td>
 +
        </xsl:when>
 +
        <xsl:otherwise><td><xsl:comment>kein image_j_width</xsl:comment></td></xsl:otherwise>
 +
      </xsl:choose>
 +
      <xsl:choose>
 +
        <!-- image_j_height → large_primary_media_1_height -->
 +
        <xsl:when test="$lead_parameter_nodes/image_j_height">
 +
          <td><xsl:value-of select="$lead_parameter_nodes/image_j_height"/></td>
 +
        </xsl:when>
 +
        <xsl:otherwise><td><xsl:comment>kein image_j_height</xsl:comment></td></xsl:otherwise>
 +
      </xsl:choose>
 +
 +
     
 
       <xsl:choose>
 
       <xsl:choose>
 
         <!-- image_k → large_primary_media_2 -->
 
         <!-- image_k → large_primary_media_2 -->
Line 1,213: Line 1,456:
 
         <xsl:otherwise><td><xsl:comment>kein label_k</xsl:comment></td></xsl:otherwise>
 
         <xsl:otherwise><td><xsl:comment>kein label_k</xsl:comment></td></xsl:otherwise>
 
       </xsl:choose>
 
       </xsl:choose>
 +
      <xsl:choose>
 +
        <!-- image_k_width → large_primary_media_2_width -->
 +
        <xsl:when test="$lead_parameter_nodes/image_k_width">
 +
          <td><xsl:value-of select="$lead_parameter_nodes/image_k_width"/></td>
 +
        </xsl:when>
 +
        <xsl:otherwise><td><xsl:comment>kein image_k_width</xsl:comment></td></xsl:otherwise>
 +
      </xsl:choose>
 +
      <xsl:choose>
 +
        <!-- image_k_height → large_primary_media_2_height -->
 +
        <xsl:when test="$lead_parameter_nodes/image_k_height">
 +
          <td><xsl:value-of select="$lead_parameter_nodes/image_k_height"/></td>
 +
        </xsl:when>
 +
        <xsl:otherwise><td><xsl:comment>kein image_k_height</xsl:comment></td></xsl:otherwise>
 +
      </xsl:choose>
 +
 +
     
 +
      <xsl:choose>
 +
        <!-- extra_images_width → collapsed_media_width -->
 +
        <xsl:when test="$lead_parameter_nodes/extra_images_width">
 +
          <td><xsl:value-of select="$lead_parameter_nodes/extra_images_width"/></td>
 +
        </xsl:when>
 +
        <xsl:otherwise><td><xsl:comment>kein extra_images_width</xsl:comment></td></xsl:otherwise>
 +
      </xsl:choose>
 +
      <xsl:choose>
 +
        <!-- extra_images_height → collapsed_media_height -->
 +
        <xsl:when test="$lead_parameter_nodes/extra_images_height">
 +
          <td><xsl:value-of select="$lead_parameter_nodes/extra_images_height"/></td>
 +
        </xsl:when>
 +
        <xsl:otherwise><td><xsl:comment>kein extra_images_height</xsl:comment></td></xsl:otherwise>
 +
      </xsl:choose>     
 
       <xsl:choose>
 
       <xsl:choose>
 
         <!-- image_m → collapsed_media_1 -->
 
         <!-- image_m → collapsed_media_1 -->
Line 1,242: Line 1,515:
 
         <xsl:otherwise><td><xsl:comment>kein label_m</xsl:comment></td></xsl:otherwise>
 
         <xsl:otherwise><td><xsl:comment>kein label_m</xsl:comment></td></xsl:otherwise>
 
       </xsl:choose>
 
       </xsl:choose>
 +
      <xsl:choose>
 +
        <!-- image_m_width → collapsed_media_1_width -->
 +
        <xsl:when test="$lead_parameter_nodes/image_m_width">
 +
          <td><xsl:value-of select="$lead_parameter_nodes/image_m_width"/></td>
 +
        </xsl:when>
 +
        <xsl:otherwise><td><xsl:comment>kein image_m_width</xsl:comment></td></xsl:otherwise>
 +
      </xsl:choose>
 +
      <xsl:choose>
 +
        <!-- image_m_height → collapsed_media_1_height -->
 +
        <xsl:when test="$lead_parameter_nodes/image_m_height">
 +
          <td><xsl:value-of select="$lead_parameter_nodes/image_m_height"/></td>
 +
        </xsl:when>
 +
        <xsl:otherwise><td><xsl:comment>kein image_m_height</xsl:comment></td></xsl:otherwise>
 +
      </xsl:choose>
 +
 +
     
 
       <xsl:choose>
 
       <xsl:choose>
 
         <!-- image_n → collapsed_media_2 -->
 
         <!-- image_n → collapsed_media_2 -->
Line 1,271: Line 1,560:
 
         <xsl:otherwise><td><xsl:comment>kein label_n</xsl:comment></td></xsl:otherwise>
 
         <xsl:otherwise><td><xsl:comment>kein label_n</xsl:comment></td></xsl:otherwise>
 
       </xsl:choose>
 
       </xsl:choose>
 +
      <xsl:choose>
 +
        <!-- image_n_width → collapsed_media_2_width -->
 +
        <xsl:when test="$lead_parameter_nodes/image_n_width">
 +
          <td><xsl:value-of select="$lead_parameter_nodes/image_n_width"/></td>
 +
        </xsl:when>
 +
        <xsl:otherwise><td><xsl:comment>kein image_n_width</xsl:comment></td></xsl:otherwise>
 +
      </xsl:choose>
 +
      <xsl:choose>
 +
        <!-- image_n_height → collapsed_media_2_height -->
 +
        <xsl:when test="$lead_parameter_nodes/image_n_height">
 +
          <td><xsl:value-of select="$lead_parameter_nodes/image_n_height"/></td>
 +
        </xsl:when>
 +
        <xsl:otherwise><td><xsl:comment>kein image_n_height</xsl:comment></td></xsl:otherwise>
 +
      </xsl:choose>
 +
     
 +
     
 
       <xsl:choose>
 
       <xsl:choose>
 
         <!-- image_o → collapsed_media_3 -->
 
         <!-- image_o → collapsed_media_3 -->
Line 1,300: Line 1,605:
 
         <xsl:otherwise><td><xsl:comment>kein label_o</xsl:comment></td></xsl:otherwise>
 
         <xsl:otherwise><td><xsl:comment>kein label_o</xsl:comment></td></xsl:otherwise>
 
       </xsl:choose>
 
       </xsl:choose>
 +
      <xsl:choose>
 +
        <!-- image_o_width → collapsed_media_3_width -->
 +
        <xsl:when test="$lead_parameter_nodes/image_o_width">
 +
          <td><xsl:value-of select="$lead_parameter_nodes/image_o_width"/></td>
 +
        </xsl:when>
 +
        <xsl:otherwise><td><xsl:comment>kein image_o_width</xsl:comment></td></xsl:otherwise>
 +
      </xsl:choose>
 +
      <xsl:choose>
 +
        <!-- image_o_height → collapsed_media_3_height -->
 +
        <xsl:when test="$lead_parameter_nodes/image_o_height">
 +
          <td><xsl:value-of select="$lead_parameter_nodes/image_o_height"/></td>
 +
        </xsl:when>
 +
        <xsl:otherwise><td><xsl:comment>kein image_o_height</xsl:comment></td></xsl:otherwise>
 +
      </xsl:choose>
 +
     
 +
     
 
       <xsl:choose>
 
       <xsl:choose>
 
         <!-- image_p → collapsed_media_4 -->
 
         <!-- image_p → collapsed_media_4 -->
Line 1,329: Line 1,650:
 
         <xsl:otherwise><td><xsl:comment>kein label_p</xsl:comment></td></xsl:otherwise>
 
         <xsl:otherwise><td><xsl:comment>kein label_p</xsl:comment></td></xsl:otherwise>
 
       </xsl:choose>
 
       </xsl:choose>
 +
      <xsl:choose>
 +
        <!-- image_p_width → collapsed_media_4_width -->
 +
        <xsl:when test="$lead_parameter_nodes/image_p_width">
 +
          <td><xsl:value-of select="$lead_parameter_nodes/image_p_width"/></td>
 +
        </xsl:when>
 +
        <xsl:otherwise><td><xsl:comment>kein image_p_width</xsl:comment></td></xsl:otherwise>
 +
      </xsl:choose>
 +
      <xsl:choose>
 +
        <!-- image_p_height → collapsed_media_4_height -->
 +
        <xsl:when test="$lead_parameter_nodes/image_p_height">
 +
          <td><xsl:value-of select="$lead_parameter_nodes/image_p_height"/></td>
 +
        </xsl:when>
 +
        <xsl:otherwise><td><xsl:comment>kein image_p_height</xsl:comment></td></xsl:otherwise>
 +
      </xsl:choose>
 +
     
 +
     
 
       <xsl:choose>
 
       <xsl:choose>
 
         <!-- image_q → collapsed_media_5 -->
 
         <!-- image_q → collapsed_media_5 -->
Line 1,358: Line 1,695:
 
         <xsl:otherwise><td><xsl:comment>kein label_q</xsl:comment></td></xsl:otherwise>
 
         <xsl:otherwise><td><xsl:comment>kein label_q</xsl:comment></td></xsl:otherwise>
 
       </xsl:choose>
 
       </xsl:choose>
 +
      <xsl:choose>
 +
        <!-- image_q_width → collapsed_media_5_width -->
 +
        <xsl:when test="$lead_parameter_nodes/image_q_width">
 +
          <td><xsl:value-of select="$lead_parameter_nodes/image_q_width"/></td>
 +
        </xsl:when>
 +
        <xsl:otherwise><td><xsl:comment>kein image_q_width</xsl:comment></td></xsl:otherwise>
 +
      </xsl:choose>
 +
      <xsl:choose>
 +
        <!-- image_q_height → collapsed_media_5_height -->
 +
        <xsl:when test="$lead_parameter_nodes/image_q_height">
 +
          <td><xsl:value-of select="$lead_parameter_nodes/image_q_height"/></td>
 +
        </xsl:when>
 +
        <xsl:otherwise><td><xsl:comment>kein image_q_height</xsl:comment></td></xsl:otherwise>
 +
      </xsl:choose>
 +
     
 +
     
 
       <xsl:choose>
 
       <xsl:choose>
 
         <!-- image_r → collapsed_media_6 -->
 
         <!-- image_r → collapsed_media_6 -->
Line 1,387: Line 1,740:
 
         <xsl:otherwise><td><xsl:comment>kein label_r</xsl:comment></td></xsl:otherwise>
 
         <xsl:otherwise><td><xsl:comment>kein label_r</xsl:comment></td></xsl:otherwise>
 
       </xsl:choose>
 
       </xsl:choose>
 +
      <xsl:choose>
 +
        <!-- image_r_width → collapsed_media_6_width -->
 +
        <xsl:when test="$lead_parameter_nodes/image_r_width">
 +
          <td><xsl:value-of select="$lead_parameter_nodes/image_r_width"/></td>
 +
        </xsl:when>
 +
        <xsl:otherwise><td><xsl:comment>kein image_r_width</xsl:comment></td></xsl:otherwise>
 +
      </xsl:choose>
 +
      <xsl:choose>
 +
        <!-- image_r_height → collapsed_media_6_height -->
 +
        <xsl:when test="$lead_parameter_nodes/image_r_height">
 +
          <td><xsl:value-of select="$lead_parameter_nodes/image_r_height"/></td>
 +
        </xsl:when>
 +
        <xsl:otherwise><td><xsl:comment>kein image_r_height</xsl:comment></td></xsl:otherwise>
 +
      </xsl:choose>
 +
     
 +
     
 
       <xsl:choose>
 
       <xsl:choose>
 
         <!-- captionlines → collapsed_media_captionlines -->
 
         <!-- captionlines → collapsed_media_captionlines -->

Revision as of 16:01, 29 March 2017

<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0"

   xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
   xmlns="http://www.w3.org/1999/xhtml"
 >
 <xsl:output method="xml"
             version="1.0"
             encoding="utf-8"
             indent="yes"
             omit-xml-declaration="yes"  />
 <xsl:param name="current_date_time" />
 <xsl:template match="/Seiten">

<xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text> <html lang="de">

 <head>

<xsl:element name="meta" >

 <xsl:attribute name="http-equiv" >Content-Type</xsl:attribute>
 <xsl:attribute name="content" >text/html; charset=UTF-8</xsl:attribute>

</xsl:element>

   <title><xsl:value-of select="/Seiten/Seite/Titel"/> ({{Key Start}} Export als Tabelle, <xsl:value-of select="$current_date_time"/>)</title>
   <style>
     table {
         border-spacing: 0px;
         border-collapse: collapse;
     }
     table.vertical-align-top th {
       vertical-align:bottom;
       border:1px dotted gray;
       padding: 2px 4px;
     }
     table.vertical-align-top td {
       vertical-align:top;
       border:1px dotted gray;
     }
     body {font-size:smaller;}
     .warning { color:#F57900}
     /* https://github.com/kizu/kizu.github.com/blob/master/demos/rotated-text.html */
     .rotated-text {
           display: inline-block;
           overflow: hidden;
           width: 1.5em;
           line-height: 1.5;
       }
       .rotated-text__inner {
           display: inline-block;
           white-space: nowrap;
           -webkit-transform: translate(0,100%) rotate(-90deg);
              -moz-transform: translate(0,100%) rotate(-90deg);
               -ms-transform: translate(0,100%) rotate(-90deg);
                -o-transform: translate(0,100%) rotate(-90deg);
                   transform: translate(0,100%) rotate(-90deg);
           -webkit-transform-origin: 0 0;
              -moz-transform-origin: 0 0;
               -ms-transform-origin: 0 0;
                -o-transform-origin: 0 0;
                   transform-origin: 0 0;
       }
       /* This element stretches the parent to be square
          by using the mechanics of vertical margins  */
       .rotated-text__inner:before {
           content: "";
           float: left;
           margin-top: 100%;
       }
   </style>
 </head>
 <body>

{{Key Start}} Export als Tabelle

Seite: <xsl:element name="a"><xsl:attribute name="href">http://wiki.infoflora.ch/swissflorawiki/de/<xsl:value-of select="translate(/Seiten/Seite/Titel, ' ','_')"/></xsl:attribute><xsl:value-of select="/Seiten/Seite/Titel"/></xsl:element>
(mit <xsl:choose><xsl:when test="count(/Seiten/Seite/Key_Start) < 2">einem Schlüssel</xsl:when><xsl:otherwise><xsl:value-of select="count(/Seiten/Seite/Key_Start)" /> Schlüsseln</xsl:otherwise></xsl:choose> auf dieser Seite)

Dies ist die Tabellenansicht eines XML-Daten-Exportes eines {{Key Start}}-Schlüssels.

Prüfen Sie im Zweifelsfalle die korrekten Indizes
für (1) die normalen Entscheidungen und ihre Alternativen und
für (2) den eingeschachtelten Modus:

  1. decision_number,
    decision_alternative_number,
    next_decision_number
  2. nested_decision_number,
    nested_decision_alternative_number,
    next_nested_decision_number

Kopieren Sie <xsl:choose><xsl:when test="count(/Seiten/Seite/Key_Start) < 2">folgende Tabelle</xsl:when><xsl:otherwise>folgenden <xsl:value-of select="count(/Seiten/Seite/Key_Start)" /> Tabellen (am besten separat)</xsl:otherwise></xsl:choose> in ein Tabellen-Verarbeitungssprogramm zur weiteren Verarbeitung


 <xsl:apply-templates/>
 </body>
 </html>
 </xsl:template>
 
 <xsl:template name="key-start-keys" match="/Seiten/Seite">
   <xsl:for-each select="./Key_Start">
     <xsl:call-template name="key-start" >
       <xsl:with-param name="key_start_nodes" select="."/>
     </xsl:call-template>
   </xsl:for-each>
 </xsl:template>
 <xsl:template name="key-start" >
   <xsl:param name="key_start_nodes" />
<tbody> <xsl:for-each select="$key_start_nodes"> <xsl:for-each select="child::*"> </xsl:for-each> </xsl:for-each> <xsl:if test="$key_start_nodes/following-sibling::node()/Feld_1[contains(.,'(')]">
 </xsl:if>
 <xsl:choose> 
   <xsl:when test="$key_start_nodes/following-sibling::node()/Feld_1[starts-with(translate(normalize-space(.), '1234567890', '1111111111'),'1')  
   and not(following-sibling::parentlead) 
   and not(preceding-sibling::parentlead)]">
     <xsl:choose>
       <xsl:when test="$key_start_nodes/following-sibling::node()/Feld_1[contains(.,'*') 
       and not(following-sibling::parentlead) and not(preceding-sibling::parentlead)]">
       </xsl:when>
       <xsl:otherwise>
         <xsl:choose>
           <xsl:when test="$key_start_nodes/following-sibling::node()/Feld_1[contains(.,$rsquo) 
           and not(following-sibling::parentlead)
           and not(preceding-sibling::parentlead)]">
           </xsl:when>
           <xsl:otherwise>
             <xsl:choose>
               <xsl:when test="$key_start_nodes/following-sibling::node()/Feld_1[contains(.,$apos) 
               and not(following-sibling::parentlead) 
               and not(preceding-sibling::parentlead)]">
               </xsl:when>
               <xsl:otherwise>
               </xsl:otherwise>
             </xsl:choose>
           </xsl:otherwise>
         </xsl:choose>
       </xsl:otherwise>
     </xsl:choose>
   </xsl:when>
   <xsl:otherwise>
     <xsl:choose>
       <xsl:when test="$key_start_nodes/following-sibling::node()/Feld_1[starts-with(translate(normalize-space(.), 'abcdefghijklmnopqrstuvwxyz', 'aaaaaaaaaaaaaaaaaaaaaaaaaa'),'a')  and not(following-sibling::parentlead) and not(preceding-sibling::parentlead)]">
         <xsl:choose>
           <xsl:when test="$key_start_nodes/following-sibling::node()/Feld_1[contains(.,'*')  and not(following-sibling::parentlead) and not(preceding-sibling::parentlead)]">
           </xsl:when>
           <xsl:otherwise>
             <xsl:choose>
               <xsl:when test="$key_start_nodes/following-sibling::node()/Feld_1[contains(.,$rsquo)  and not(following-sibling::parentlead) and not(preceding-sibling::parentlead)]">
               </xsl:when>
               <xsl:otherwise>
                 <xsl:choose>
                   <xsl:when test="$key_start_nodes/following-sibling::node()/Feld_1[contains(.,$apos)  and not(following-sibling::parentlead) and not(preceding-sibling::parentlead)]">
                   </xsl:when>
                   <xsl:otherwise>
                   </xsl:otherwise>
                 </xsl:choose>
               </xsl:otherwise>
             </xsl:choose>
           </xsl:otherwise>
         </xsl:choose>
       </xsl:when>
       <xsl:otherwise>
         <xsl:choose>
           <xsl:when test="$key_start_nodes/following-sibling::node()/Feld_1[starts-with(translate(normalize-space(.), 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'AAAAAAAAAAAAAAAAAAAAAAAAAA'),'A')  and not(following-sibling::parentlead) and not(preceding-sibling::parentlead)]">
             <xsl:choose>
               <xsl:when test="$key_start_nodes/following-sibling::node()/Feld_1[contains(.,'*')  and not(following-sibling::parentlead) and not(preceding-sibling::parentlead)]">
               </xsl:when>
               <xsl:otherwise>
                 <xsl:choose>
                   <xsl:when test="$key_start_nodes/following-sibling::node()/Feld_1[contains(.,$rsquo)  and not(following-sibling::parentlead) and not(preceding-sibling::parentlead)]">
                   </xsl:when>
                   <xsl:otherwise>
                     <xsl:choose>
                       <xsl:when test="$key_start_nodes/following-sibling::node()/Feld_1[contains(.,$apos)  and not(following-sibling::parentlead) and not(preceding-sibling::parentlead)]">
                       </xsl:when>
                       <xsl:otherwise>
                       </xsl:otherwise>
                     </xsl:choose>
                   </xsl:otherwise>
                 </xsl:choose>
               </xsl:otherwise>
             </xsl:choose>
           </xsl:when>
         </xsl:choose>
       </xsl:otherwise>
     </xsl:choose>
   </xsl:otherwise>
 </xsl:choose>
 <xsl:choose>
   <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, concat('a',$rsquo))]">
   </xsl:when>
   <xsl:otherwise>
     <xsl:choose>
       <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, concat('A',$rsquo))]">
       </xsl:when>
       <xsl:otherwise>
         <xsl:choose>
           <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, 'a*')]">
           </xsl:when>
           <xsl:otherwise>
             <xsl:choose>
               <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, 'A*')]">
               </xsl:when>
               <xsl:otherwise>
                 <xsl:choose>
                   <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, concat('a',$apos))]">
                   </xsl:when>
                   <xsl:otherwise>
                     <xsl:choose>
                       <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, concat('A',$apos))]">
                       </xsl:when>
                       <xsl:otherwise>
                         <xsl:choose>
                           <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, 'a-')]">
                           </xsl:when>
                           <xsl:otherwise>
                             <xsl:choose>
                               <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, 'a–')]">
                               </xsl:when>
                               <xsl:otherwise>
                                 <xsl:choose>
                                   <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, 'A-')]">
                                   </xsl:when>
                                   <xsl:otherwise>
                                     <xsl:choose>
                                       <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, 'A–')]">
                                       </xsl:when>
                                       <xsl:otherwise>
                                         <xsl:choose>
                                           <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, '1–')]">
                                           </xsl:when>
                                           <xsl:otherwise>
                                             <xsl:choose>
                                               <xsl:when test="$key_start_nodes/following-sibling::node()/parentlead[starts-with(../descendant-or-self::Feld_1, '1-')]">
                                               </xsl:when>
                                               <xsl:otherwise>
                                               </xsl:otherwise>
                                             </xsl:choose>
                                           </xsl:otherwise>
                                         </xsl:choose>
                                       </xsl:otherwise>
                                     </xsl:choose>
                                   </xsl:otherwise>
                                 </xsl:choose>
                               </xsl:otherwise>
                             </xsl:choose>
                           </xsl:otherwise>
                         </xsl:choose>
                       </xsl:otherwise>
                     </xsl:choose>
                   </xsl:otherwise>
                 </xsl:choose>
               </xsl:otherwise>
             </xsl:choose>
           </xsl:otherwise>
         </xsl:choose>
       </xsl:otherwise>
     </xsl:choose>
    </xsl:otherwise>
 </xsl:choose>
  </tbody>
<xsl:value-of select="name(.)"/> <xsl:call-template name="remove_translate_tags" > <xsl:with-param name="text" select="."/> </xsl:call-template>
add_decision_backlinks1
decisions_alternative_codesnumber & *
decisions_alternative_codesnumber & <xsl:value-of select="$rsquo"/>
decisions_alternative_codesnumber & <xsl:value-of select="$apos"/>
decisions_alternative_codesnumber & -
decisions_alternative_codesa-z & *
decisions_alternative_codesa-z & <xsl:value-of select="$rsquo"/>
decisions_alternative_codesa-z & <xsl:value-of select="$apos"/>
decisions_alternative_codesa-z & -
decisions_alternative_codesA-Z & *
decisions_alternative_codesA-Z & <xsl:value-of select="$rsquo"/>
decisions_alternative_codesA-Z & <xsl:value-of select="$apos"/>
decisions_alternative_codesA-Z & -
nested_decisions_alternative_codesa-z & <xsl:value-of select="$rsquo"/>
nested_decisions_alternative_codesA-Z &<xsl:value-of select="$rsquo"/>
nested_decisions_alternative_codesa-z & *
nested_decisions_alternative_codesA-Z & *
nested_decisions_alternative_codesa-z & <xsl:value-of select="$apos"/>
nested_decisions_alternative_codesA-Z & <xsl:value-of select="$apos"/>
nested_decisions_alternative_codesa-z & -
nested_decisions_alternative_codesa-z & -
nested_decisions_alternative_codesA-Z & -
nested_decisions_alternative_codesA-Z & -
nested_decisions_alternative_codesnumber & -
nested_decisions_alternative_codesnumber & -
<tbody> <xsl:for-each select="following-sibling::Lead"> <xsl:call-template name="lead_as_table_row"> <xsl:with-param name="lead_parameter_nodes" select="."/> </xsl:call-template> </xsl:for-each> </tbody>
decision_number decision_alternative_number nested_decision_number nested_decision_alternative_number next_decision_number debug_info_Feld_1_decision_code_and_alternative debug_info_Feld_3_next_decision_code_and_alternative decision_alternative_text remarks occurrence description result_link result_text result_id scientific_name scientific_name_synonyms common_names decision_heading primary_media_width primary_media_height primary_media_1 caption_primary_media_1 label_primary_media_1 primary_media_1_width primary_media_1_height primary_media_2 caption_primary_media_2 label_primary_media_2 primary_media_2_width primary_media_2_height primary_media_3 caption_primary_media_3 label_primary_media_3 primary_media_3_width primary_media_3_height primary_media_4 caption_primary_media_4 label_primary_media_4 primary_media_4_width primary_media_4_height primary_media_5 caption_primary_media_5 label_primary_media_5 primary_media_5_width primary_media_5_height large_primary_media_1 caption_large_primary_media_1 label_large_primary_media_1 large_primary_media_1_width large_primary_media_1_height large_primary_media_2 caption_large_primary_media_2 label_large_primary_media_2 large_primary_media_2_width large_primary_media_2_height collapsed_media_width collapsed_media_height collapsed_media_1 caption_collapsed_media_1 label_collapsed_media_1 collapsed_media_1_width collapsed_media_1_height collapsed_media_2 caption_collapsed_media_2 label_collapsed_media_2 collapsed_media_2_width collapsed_media_2_height collapsed_media_3 caption_collapsed_media_3 label_collapsed_media_3 collapsed_media_3_width collapsed_media_3_height collapsed_media_4 caption_collapsed_media_4 label_collapsed_media_4 collapsed_media_4_width collapsed_media_4_height collapsed_media_5 caption_collapsed_media_5 label_collapsed_media_5 collapsed_media_5_width collapsed_media_5_height collapsed_media_6 caption_collapsed_media_6 label_collapsed_media_6 collapsed_media_6_width collapsed_media_6_height collapsed_media_captionlines plant_height plant_height_min plant_height_from plant_height_to plant_height_max plant_height_unit organism_size organism_size_min organism_size_from organism_size_to organism_size_max organism_size_unit flowering_period flowering_period_min flowering_period_from flowering_period_to flowering_period_max altitudinal_zone altitudinal_zone_min altitudinal_zone_from altitudinal_zone_to altitudinal_zone_max occurrence_status floristic_regions floristic_zones

</xsl:template>

 <xsl:template match="@*|node()">
   <xsl:copy>
     <xsl:apply-templates select="@*|node()"/>
   </xsl:copy>
 </xsl:template>
 <xsl:variable name="apos" select='"'"'/>
 <xsl:variable name="rsquo" select='"’"'/>
 <xsl:variable name="alphabetic" 
             select="'abcdefghijklmnopqrstuvwxyz'"/>
 <xsl:variable name="ALPHABETIC" 
             select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
 <xsl:variable name="abc2integer">a:1;b:2;c:3;d:4;e:5;f:6;g:7;h:8;i:9;j:10;k:11;l:12;m:13;n:14;o:15;p:16;q:17;r:18;s:19;t:20;u:21;v:22;w:23;x:24;y:25;z:26;</xsl:variable>
 <xsl:variable name="ABC2integer">A:1;B:2;C:3;D:4;E:5;F:6;G:7;H:8;I:9;J:10;K:11;L:12;M:13;N:14;O:15;P:16;Q:17;R:18;S:19;T:20;U:21;V:22;W:23;X:24;Y:25;Z:26;</xsl:variable>
 <xsl:template name="number_parent_lead" match="Lead/parentlead">
   Test numbering: <xsl:value-of select="descendant-or-self::parentlead" />
   
<xsl:number format="1." level="multiple" count="parentlead"/> </xsl:template> <xsl:template name="remove_string_from_to"> <xsl:param name="string"/> <xsl:param name="remove_from"/> <xsl:param name="remove_to"/> <xsl:choose> <xsl:when test="contains($string, $remove_from)"> <xsl:value-of select="substring-before($string, $remove_from)" /> <xsl:call-template name="remove_string_from_to"> <xsl:with-param name="remove_to" select="$remove_to"/> <xsl:with-param name="remove_from" select="$remove_from"/> <xsl:with-param name="string" select="substring-after($string, $remove_to)"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="$string"/> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="remove_translate_tags"> <xsl:param name="text" /> <xsl:call-template name="remove_string_from_to"> <xsl:with-param name="string"> <xsl:call-template name="remove_string_from_to"> <xsl:with-param name="string" select="$text"/> <xsl:with-param name="remove_from" select="'<translate><!--T:'"/> <xsl:with-param name="remove_to" select="'--> '"/> </xsl:call-template> </xsl:with-param> <xsl:with-param name="remove_from" select="'</translate'"/> <xsl:with-param name="remove_to" select="'>'"/> </xsl:call-template> </xsl:template> <xsl:template name="translate_decision_code_to_indexnumber"> <xsl:param name="text" /> <xsl:variable name="this_presumed_number"> <xsl:call-template name="remove_string_from_to"> <xsl:with-param name="string" > <xsl:call-template name="remove_string_from_to"> <xsl:with-param name="string" > <xsl:call-template name="remove_string_from_to"> <xsl:with-param name="string"> <xsl:call-template name="remove_string_from_to"> <xsl:with-param name="string"> <xsl:call-template name="remove_string_from_to"> <xsl:with-param name="string"> <xsl:call-template name="remove_string_from_to"> <xsl:with-param name="string" select="$text"/> <xsl:with-param name="remove_from" select="'('"/> <xsl:with-param name="remove_to" select="')'"/> </xsl:call-template> </xsl:with-param> <xsl:with-param name="remove_from" select="$rsquo"/> <xsl:with-param name="remove_to" select="$rsquo"/> </xsl:call-template> </xsl:with-param> <xsl:with-param name="remove_from" select="$apos"/> <xsl:with-param name="remove_to" select="$apos"/> </xsl:call-template> </xsl:with-param> <xsl:with-param name="remove_from" select="'*'"/> <xsl:with-param name="remove_to" select="'*'"/> </xsl:call-template> </xsl:with-param> <xsl:with-param name="remove_from" select="'–'"/> <xsl:with-param name="remove_to" select="'–'"/> </xsl:call-template> </xsl:with-param> <xsl:with-param name="remove_from" select="'-'"/> <xsl:with-param name="remove_to" select="'-'"/> </xsl:call-template> </xsl:variable> <xsl:choose> <xsl:when test="number($this_presumed_number)=$this_presumed_number"> <xsl:value-of select="$this_presumed_number"/> </xsl:when> <xsl:otherwise> <xsl:choose> <xsl:when test="string-length(translate($this_presumed_number, $alphabetic, )) = 0"> <xsl:value-of select="substring-before(substring-after($abc2integer, concat($this_presumed_number,':')),';')"/> </xsl:when> <xsl:when test="string-length(translate($this_presumed_number, $ALPHABETIC, )) = 0"> <xsl:value-of select="substring-before(substring-after($ABC2integer, concat($this_presumed_number,':')),';')"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$this_presumed_number"/> (debug info: case not considered yet. Is it numeric or alphabetic?) </xsl:otherwise> </xsl:choose> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="get_clean_decision_code"> <xsl:param name="text" /> <xsl:variable name="this_presumed_decision_code"> <xsl:call-template name="remove_string_from_to"> <xsl:with-param name="string" > <xsl:call-template name="remove_string_from_to"> <xsl:with-param name="string" > <xsl:call-template name="remove_string_from_to"> <xsl:with-param name="string"> <xsl:call-template name="remove_string_from_to"> <xsl:with-param name="string"> <xsl:call-template name="remove_string_from_to"> <xsl:with-param name="string"> <xsl:call-template name="remove_string_from_to"> <xsl:with-param name="string" select="$text"/> <xsl:with-param name="remove_from" select="'('"/> <xsl:with-param name="remove_to" select="')'"/> </xsl:call-template> </xsl:with-param> <xsl:with-param name="remove_from" select="$rsquo"/> <xsl:with-param name="remove_to" select="$rsquo"/> </xsl:call-template> </xsl:with-param> <xsl:with-param name="remove_from" select="$apos"/> <xsl:with-param name="remove_to" select="$apos"/> </xsl:call-template> </xsl:with-param> <xsl:with-param name="remove_from" select="'*'"/> <xsl:with-param name="remove_to" select="'*'"/> </xsl:call-template> </xsl:with-param> <xsl:with-param name="remove_from" select="'–'"/> <xsl:with-param name="remove_to" select="'–'"/> </xsl:call-template> </xsl:with-param> <xsl:with-param name="remove_from" select="'-'"/> <xsl:with-param name="remove_to" select="'-'"/> </xsl:call-template> </xsl:variable> <xsl:value-of select="$this_presumed_decision_code" /> </xsl:template> <xsl:template name="get_clean_decision_alternative_code"> <xsl:param name="text" /> <xsl:variable name="this_clean_decision_alternative_code"> <xsl:call-template name="remove_string_from_to"> <xsl:with-param name="string" select="$text"/> <xsl:with-param name="remove_from" select="'('"/> <xsl:with-param name="remove_to" select="')'"/> </xsl:call-template> </xsl:variable> <xsl:value-of select="$this_clean_decision_alternative_code"/> </xsl:template>
 <xsl:template name="get_split_fragment_by_separator">
   <xsl:param name="separator"/>
   <xsl:param name="index"/>
   
   <xsl:param name="startfragment"/>
   <xsl:param name="restfragment"/>
   
   <xsl:choose>
     <xsl:when test="$index < 2">
       <xsl:choose>
         <xsl:when test="string-length($restfragment)">
           <xsl:choose>
             <xsl:when test="substring-before($restfragment, $separator)">
               <xsl:value-of select="substring-before($restfragment, $separator)"/>
             </xsl:when>
             <xsl:otherwise>
               <xsl:choose>
                 <xsl:when test="starts-with($restfragment, $separator)">
                   <xsl:value-of select="substring-before($restfragment, $separator)" />
                 </xsl:when>
                 <xsl:otherwise>
                   <xsl:value-of select="$restfragment"/>
                 </xsl:otherwise>
               </xsl:choose>
             </xsl:otherwise>
           </xsl:choose>
         </xsl:when>
         <xsl:otherwise>
         </xsl:otherwise>
       </xsl:choose>
     </xsl:when>
     <xsl:when test="contains($restfragment,$separator)">
       <xsl:call-template name="get_split_fragment_by_separator">
         <xsl:with-param name="startfragment" select="concat($startfragment,substring-before($restfragment,$separator),$separator)"/>
         <xsl:with-param name="restfragment" select="substring-after($restfragment,$separator)"/>
         <xsl:with-param name="separator" select="$separator"/>
         <xsl:with-param name="index" select="$index - 1"/>
       </xsl:call-template>
     </xsl:when>
     <xsl:otherwise>
     </xsl:otherwise>
   </xsl:choose>
 </xsl:template>
 <xsl:template name="wrap">
   <xsl:param name="text"/>
   <xsl:param name="separator"/>
   <xsl:param name="separatorsPerLine"/>
   <xsl:variable name="line">
     <xsl:call-template name="get_split_fragment_by_separator">
       <xsl:with-param name="startfragment" select=""/>
       <xsl:with-param name="restfragment" select="$text"/>
       <xsl:with-param name="separator" select="$separator"/>
       <xsl:with-param name="index" select="$separatorsPerLine"/>
     </xsl:call-template>
   </xsl:variable>
   <xsl:value-of select="concat($line,'&#x0d;
')"/>
   <xsl:if test="string-length($line) < string-length($text)">
     <xsl:call-template name="wrap">
       <xsl:with-param name="text" select="substring($text,string-length($line)+1)"/>
       <xsl:with-param name="separator" select="$separator"/>
       <xsl:with-param name="separatorsPerLine" select="$separatorsPerLine"/>
     </xsl:call-template>
   </xsl:if>
 </xsl:template>
 <xsl:template name="tags2wikitemplate">
   <xsl:param name="content"/>
   <xsl:variable name="line">
     <xsl:call-template name="tags2wikitemplate">
       <xsl:with-param name="content" select="." />
     </xsl:call-template>
   </xsl:variable>
   <xsl:value-of select="concat($line,'&#x0d;
')"/>
   <xsl:if test="string-length($line) < string-length($text)">
     <xsl:call-template name="wrap">
       <xsl:with-param name="text" select="substring($text,string-length($line)+1)"/>
       <xsl:with-param name="separator" select="$separator"/>
       <xsl:with-param name="separatorsPerLine" select="$separatorsPerLine"/>
     </xsl:call-template>
   </xsl:if>
 </xsl:template>
 <xsl:template name="lead_as_table_row">
   <xsl:param name="lead_parameter_nodes"/>
   <xsl:variable name="debug_current_value" select="."/>
   
   <tr>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/Feld_1">
         <td>
           <xsl:choose>
             <xsl:when test="$lead_parameter_nodes/parentlead">
               <xsl:call-template name="translate_decision_code_to_indexnumber">
             <xsl:with-param name="text" select="$lead_parameter_nodes/parentlead"/>
           </xsl:call-template>
             </xsl:when>
             <xsl:otherwise>
               <xsl:call-template name="translate_decision_code_to_indexnumber">
                 <xsl:with-param name="text" select="$lead_parameter_nodes/Feld_1"/>
               </xsl:call-template>
             </xsl:otherwise>
           </xsl:choose>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein Feld_1</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/Feld_1">
         <td>
           <xsl:variable name="current_clean_decision_code">
             <xsl:choose>
               <xsl:when test="$lead_parameter_nodes/parentlead">
                 <xsl:call-template name="get_clean_decision_code">
                   <xsl:with-param name="text" select="$lead_parameter_nodes/parentlead"/>
                 </xsl:call-template>
               </xsl:when>
               <xsl:otherwise>
                 <xsl:call-template name="get_clean_decision_code">
                   <xsl:with-param name="text" select="$lead_parameter_nodes/Feld_1"/>
                 </xsl:call-template>
               </xsl:otherwise>
             </xsl:choose>
           </xsl:variable>
           <xsl:value-of select="count(preceding-sibling::*/descendant-or-self::Feld_1[starts-with(node(), $current_clean_decision_code)]) + count(./descendant-or-self::Feld_1[starts-with(node(), $current_clean_decision_code)])" />
        </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein Feld_1</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/nested">
         <td>
           0
         </td>
       </xsl:when>
       <xsl:otherwise>
         <td>
           <xsl:choose>
             <xsl:when test="$lead_parameter_nodes/parentlead">
               <xsl:variable name="current_nested_decision_number">
                 <xsl:call-template name="translate_decision_code_to_indexnumber">
                   <xsl:with-param name="text" select="$lead_parameter_nodes/Feld_1"/>
                 </xsl:call-template>
               </xsl:variable>
               <xsl:value-of select="$current_nested_decision_number"/>
             </xsl:when>
             <xsl:otherwise>
               <xsl:comment>kein nested</xsl:comment>
             </xsl:otherwise>
           </xsl:choose>
         </td>
       </xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/parentlead">
         <td>
           <xsl:variable name="this_clean_decision_code_by_parentlead">
             <xsl:call-template name="get_clean_decision_code">
               <xsl:with-param name="text" select="$lead_parameter_nodes/Feld_1"/>
             </xsl:call-template>
           </xsl:variable>
           
           <xsl:value-of select="count(preceding-sibling::*[1]/descendant-or-self::*[name()='Feld_1']/../Feld_1[starts-with(node(), $this_clean_decision_code_by_parentlead)]) + 1"/>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein parentlead</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/Feld_3 and not($lead_parameter_nodes/parentlead)">
         <td>
           <xsl:call-template name="translate_decision_code_to_indexnumber">
             <xsl:with-param name="text" select="$lead_parameter_nodes/Feld_3"/>
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein Feld_3</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/Feld_1">
         <td><xsl:value-of select="$lead_parameter_nodes/Feld_1"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein Feld_1</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/Feld_3">
         <td><xsl:value-of select="$lead_parameter_nodes/Feld_3"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein Feld_3</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/Feld_2">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/Feld_2"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein Feld_2</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/remarks">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/remarks"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein remarks</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/occurrence">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/occurrence"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein occurrence</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/description">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/description"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein description</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/result">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/result"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein result</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/result_text">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/result_text"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein result_text</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/result_id">
         <td><xsl:value-of select="$lead_parameter_nodes/result_id"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein result_id</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/scientific_name">
         <td><xsl:value-of select="$lead_parameter_nodes/scientific_name"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein scientific_name</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/synonyms">
         <td><xsl:value-of select="$lead_parameter_nodes/synonyms"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein synonyms</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/common_names">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/common_names"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein common_names</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/subheading">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/subheading"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein subheading</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     
     
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/primary_images_width">
         <td><xsl:value-of select="$lead_parameter_nodes/primary_images_width"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein primary_images_width</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/primary_images_height">
         <td><xsl:value-of select="$lead_parameter_nodes/primary_images_height"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein primary_images_height</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_a">
         <td><xsl:value-of select="$lead_parameter_nodes/image_a"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_a</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/caption_a">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/caption_a"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein caption_a</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/label_a">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/label_a"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein label_a</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_a_width">
         <td><xsl:value-of select="$lead_parameter_nodes/image_a_width"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_a_width</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_a_height">
         <td><xsl:value-of select="$lead_parameter_nodes/image_a_height"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_a_height</xsl:comment></td></xsl:otherwise>
     </xsl:choose>


     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_b">
         <td><xsl:value-of select="$lead_parameter_nodes/image_b"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_b</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/caption_b">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/caption_b"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein caption_b</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/label_b">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/label_b"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein label_b</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_b_width">
         <td><xsl:value-of select="$lead_parameter_nodes/image_b_width"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_b_width</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_b_height">
         <td><xsl:value-of select="$lead_parameter_nodes/image_b_height"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_b_height</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     
     
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_c">
         <td><xsl:value-of select="$lead_parameter_nodes/image_c"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_c</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/caption_c">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/caption_c"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein caption_c</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/label_c">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/label_c"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein label_c</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_c_width">
         <td><xsl:value-of select="$lead_parameter_nodes/image_c_width"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_c_width</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_c_height">
         <td><xsl:value-of select="$lead_parameter_nodes/image_c_height"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_c_height</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     
     
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_d">
         <td><xsl:value-of select="$lead_parameter_nodes/image_d"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_d</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/caption_d">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/caption_d"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein caption_d</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/label_d">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/label_d"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein label_d</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_d_width">
         <td><xsl:value-of select="$lead_parameter_nodes/image_d_width"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_d_width</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_d_height">
         <td><xsl:value-of select="$lead_parameter_nodes/image_d_height"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_d_height</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     
     
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_e">
         <td><xsl:value-of select="$lead_parameter_nodes/image_e"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_e</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/caption_e">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/caption_e"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein caption_e</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/label_e">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/label_e"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein label_e</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_e_width">
         <td><xsl:value-of select="$lead_parameter_nodes/image_e_width"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_e_width</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_e_height">
         <td><xsl:value-of select="$lead_parameter_nodes/image_e_height"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_e_height</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     
     
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_j">
         <td><xsl:value-of select="$lead_parameter_nodes/image_j"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_j</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/caption_j">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/caption_j"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein caption_j</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/label_j">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/label_j"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein label_j</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_j_width">
         <td><xsl:value-of select="$lead_parameter_nodes/image_j_width"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_j_width</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_j_height">
         <td><xsl:value-of select="$lead_parameter_nodes/image_j_height"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_j_height</xsl:comment></td></xsl:otherwise>
     </xsl:choose>


     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_k">
         <td><xsl:value-of select="$lead_parameter_nodes/image_k"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_k</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/caption_k">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/caption_k"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein caption_k</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/label_k">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/label_k"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein label_k</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_k_width">
         <td><xsl:value-of select="$lead_parameter_nodes/image_k_width"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_k_width</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_k_height">
         <td><xsl:value-of select="$lead_parameter_nodes/image_k_height"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_k_height</xsl:comment></td></xsl:otherwise>
     </xsl:choose>


     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/extra_images_width">
         <td><xsl:value-of select="$lead_parameter_nodes/extra_images_width"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein extra_images_width</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/extra_images_height">
         <td><xsl:value-of select="$lead_parameter_nodes/extra_images_height"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein extra_images_height</xsl:comment></td></xsl:otherwise>
     </xsl:choose>      
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_m">
         <td><xsl:value-of select="$lead_parameter_nodes/image_m"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_m</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/caption_m">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/caption_m"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein caption_m</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/label_m">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/label_m"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein label_m</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_m_width">
         <td><xsl:value-of select="$lead_parameter_nodes/image_m_width"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_m_width</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_m_height">
         <td><xsl:value-of select="$lead_parameter_nodes/image_m_height"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_m_height</xsl:comment></td></xsl:otherwise>
     </xsl:choose>


     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_n">
         <td><xsl:value-of select="$lead_parameter_nodes/image_n"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_n</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/caption_n">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/caption_n"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein caption_n</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/label_n">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/label_n"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein label_n</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_n_width">
         <td><xsl:value-of select="$lead_parameter_nodes/image_n_width"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_n_width</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_n_height">
         <td><xsl:value-of select="$lead_parameter_nodes/image_n_height"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_n_height</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     
     
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_o">
         <td><xsl:value-of select="$lead_parameter_nodes/image_o"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_o</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/caption_o">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/caption_o"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein caption_o</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/label_o">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/label_o"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein label_o</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_o_width">
         <td><xsl:value-of select="$lead_parameter_nodes/image_o_width"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_o_width</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_o_height">
         <td><xsl:value-of select="$lead_parameter_nodes/image_o_height"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_o_height</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     
     
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_p">
         <td><xsl:value-of select="$lead_parameter_nodes/image_p"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_p</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/caption_p">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/caption_p"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein caption_p</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/label_p">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/label_p"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein label_p</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_p_width">
         <td><xsl:value-of select="$lead_parameter_nodes/image_p_width"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_p_width</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_p_height">
         <td><xsl:value-of select="$lead_parameter_nodes/image_p_height"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_p_height</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     
     
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_q">
         <td><xsl:value-of select="$lead_parameter_nodes/image_q"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_q</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/caption_q">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/caption_q"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein caption_q</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/label_q">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/label_q"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein label_q</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_q_width">
         <td><xsl:value-of select="$lead_parameter_nodes/image_q_width"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_q_width</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_q_height">
         <td><xsl:value-of select="$lead_parameter_nodes/image_q_height"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_q_height</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     
     
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_r">
         <td><xsl:value-of select="$lead_parameter_nodes/image_r"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_r</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/caption_r">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/caption_r"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein caption_r</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/label_r">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/label_r"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein label_r</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_r_width">
         <td><xsl:value-of select="$lead_parameter_nodes/image_r_width"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_r_width</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/image_r_height">
         <td><xsl:value-of select="$lead_parameter_nodes/image_r_height"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein image_r_height</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     
     
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/captionlines">
         <td><xsl:value-of select="$lead_parameter_nodes/captionlines"/></td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein captionlines</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
         <td>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/plant_height">
         <xsl:value-of select="$lead_parameter_nodes/plant_height"/>
       </xsl:when>
       <xsl:otherwise>
         <xsl:comment>kein plant_height</xsl:comment>
       </xsl:otherwise>
     </xsl:choose>
         </td>
         <td>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/plant_height_formula_min-from-to-max">
         <xsl:call-template name="get_split_fragment_by_separator">
           <xsl:with-param name="separator" select="'/'"/>
           <xsl:with-param name="index" select="'1'"/>
           <xsl:with-param name="startfragment" select=""/>
           <xsl:with-param name="restfragment" select="$lead_parameter_nodes/plant_height_formula_min-from-to-max"/>
         </xsl:call-template>
       </xsl:when>
       <xsl:otherwise>
         <xsl:choose>
           <xsl:when test="$lead_parameter_nodes/plant_height_min">
             <xsl:value-of select="$lead_parameter_nodes/plant_height_min"/>
           </xsl:when>
           <xsl:otherwise>
             <xsl:comment>kein plant_height_min</xsl:comment>
           </xsl:otherwise>
         </xsl:choose>
       </xsl:otherwise>
     </xsl:choose>
         </td>
         <td>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/plant_height_formula_min-from-to-max">
         <xsl:call-template name="get_split_fragment_by_separator">
           <xsl:with-param name="separator" select="'/'"/>
           <xsl:with-param name="index" select="'2'"/>
           <xsl:with-param name="startfragment" select=""/>
           <xsl:with-param name="restfragment" select="$lead_parameter_nodes/plant_height_formula_min-from-to-max"/>
         </xsl:call-template>
       </xsl:when>
       <xsl:otherwise>
         <xsl:choose>
           <xsl:when test="$lead_parameter_nodes/plant_height_from">
             <xsl:value-of select="$lead_parameter_nodes/plant_height_from"/>
           </xsl:when>
           <xsl:otherwise>
             <xsl:comment>kein plant_height_from</xsl:comment>
           </xsl:otherwise>
         </xsl:choose>
       </xsl:otherwise>
     </xsl:choose>
         </td>
         <td>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/plant_height_formula_min-from-to-max">
         <xsl:call-template name="get_split_fragment_by_separator">
           <xsl:with-param name="separator" select="'/'"/>
           <xsl:with-param name="index" select="'3'"/>
           <xsl:with-param name="startfragment" select=""/>
           <xsl:with-param name="restfragment" select="$lead_parameter_nodes/plant_height_formula_min-from-to-max"/>
         </xsl:call-template>
       </xsl:when>
       <xsl:otherwise>
         <xsl:choose>
           <xsl:when test="$lead_parameter_nodes/plant_height_to">
             <xsl:value-of select="$lead_parameter_nodes/plant_height_to"/>
           </xsl:when>
           <xsl:otherwise>
             <xsl:comment>kein plant_height_to</xsl:comment>
           </xsl:otherwise>
         </xsl:choose>
       </xsl:otherwise>
     </xsl:choose>
         </td>
         <td>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/plant_height_formula_min-from-to-max">
         <xsl:call-template name="get_split_fragment_by_separator">
           <xsl:with-param name="separator" select="'/'"/>
           <xsl:with-param name="index" select="'4'"/>
           <xsl:with-param name="startfragment" select=""/>
           <xsl:with-param name="restfragment" select="$lead_parameter_nodes/plant_height_formula_min-from-to-max"/>
         </xsl:call-template>
       </xsl:when>
       <xsl:otherwise>
         <xsl:choose>
           <xsl:when test="$lead_parameter_nodes/plant_height_max">
             <xsl:value-of select="$lead_parameter_nodes/plant_height_max"/>
           </xsl:when>
           <xsl:otherwise>
             <xsl:comment>kein plant_height_max</xsl:comment>
           </xsl:otherwise>
         </xsl:choose>
       </xsl:otherwise>
     </xsl:choose>
         </td>
         <td>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/plant_height_formula_min-from-to-max">
         <xsl:variable name="this_plant_height_unit">
           <xsl:call-template name="get_split_fragment_by_separator">
             <xsl:with-param name="separator" select="'/'"/>
             <xsl:with-param name="index" select="'5'"/>
             <xsl:with-param name="startfragment" select=""/>
             <xsl:with-param name="restfragment" select="$lead_parameter_nodes/plant_height_formula_min-from-to-max"/>
           </xsl:call-template>
         </xsl:variable>
         
         <xsl:choose>
           <xsl:when test="$this_plant_height_unit">
             <xsl:value-of select="$this_plant_height_unit"/>
           </xsl:when>
           <xsl:otherwise>
             <xsl:choose>
               <xsl:when test="$lead_parameter_nodes/plant_height_unit">
                 <xsl:value-of select="$lead_parameter_nodes/plant_height_unit"/>
               </xsl:when>
               <xsl:otherwise>
                 <xsl:comment>kein plant_height_unit</xsl:comment>
               </xsl:otherwise>
             </xsl:choose>
           </xsl:otherwise>
         </xsl:choose>
       </xsl:when>
       <xsl:otherwise>
         <xsl:choose>
           <xsl:when test="$lead_parameter_nodes/plant_height_unit">
             <xsl:value-of select="$lead_parameter_nodes/plant_height_unit"/>
           </xsl:when>
           <xsl:otherwise>
             <xsl:comment>kein plant_height_unit</xsl:comment>
           </xsl:otherwise>
         </xsl:choose>
       </xsl:otherwise>
     </xsl:choose>
         </td>
         <td>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/organism_size">
           <xsl:value-of select="$lead_parameter_nodes/organism_size"/>
       </xsl:when>
       <xsl:otherwise><xsl:comment>kein organism_size</xsl:comment></xsl:otherwise>
     </xsl:choose>
         </td>
         <td>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/organism_size_formula_min-from-to-max">
         <xsl:call-template name="get_split_fragment_by_separator">
           <xsl:with-param name="separator" select="'/'"/>
           <xsl:with-param name="index" select="'1'"/>
           <xsl:with-param name="startfragment" select=""/>
           <xsl:with-param name="restfragment" select="$lead_parameter_nodes/organism_size_formula_min-from-to-max"/>
         </xsl:call-template>
       </xsl:when>
       <xsl:otherwise>
         <xsl:choose>
           <xsl:when test="$lead_parameter_nodes/organism_size_min">
             <xsl:value-of select="$lead_parameter_nodes/organism_size_min"/>
           </xsl:when>
           <xsl:otherwise>
             <xsl:comment>kein organism_size_min</xsl:comment>
           </xsl:otherwise>
         </xsl:choose>
       </xsl:otherwise>
     </xsl:choose>
         </td>
         <td>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/organism_size_formula_min-from-to-max">
         <xsl:call-template name="get_split_fragment_by_separator">
           <xsl:with-param name="separator" select="'/'"/>
           <xsl:with-param name="index" select="'2'"/>
           <xsl:with-param name="startfragment" select=""/>
           <xsl:with-param name="restfragment" select="$lead_parameter_nodes/organism_size_formula_min-from-to-max"/>
         </xsl:call-template>
       </xsl:when>
       <xsl:otherwise>
         <xsl:choose>
           <xsl:when test="$lead_parameter_nodes/organism_size_from">
             <xsl:value-of select="$lead_parameter_nodes/organism_size_from"/>
           </xsl:when>
           <xsl:otherwise>
             <xsl:comment>kein organism_size_from</xsl:comment>
           </xsl:otherwise>
         </xsl:choose>
       </xsl:otherwise>
     </xsl:choose>
         </td>
         <td>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/organism_size_formula_min-from-to-max">
         <xsl:call-template name="get_split_fragment_by_separator">
           <xsl:with-param name="separator" select="'/'"/>
           <xsl:with-param name="index" select="'3'"/>
           <xsl:with-param name="startfragment" select=""/>
           <xsl:with-param name="restfragment" select="$lead_parameter_nodes/organism_size_formula_min-from-to-max"/>
         </xsl:call-template>
       </xsl:when>
       <xsl:otherwise>
         <xsl:choose>
           <xsl:when test="$lead_parameter_nodes/organism_size_to">
             <xsl:value-of select="$lead_parameter_nodes/organism_size_to"/>
           </xsl:when>
           <xsl:otherwise>
             <xsl:comment>kein organism_size_to</xsl:comment>
           </xsl:otherwise>
         </xsl:choose>
       </xsl:otherwise>
     </xsl:choose>
         </td>
         <td>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/organism_size_formula_min-from-to-max">
         <xsl:call-template name="get_split_fragment_by_separator">
           <xsl:with-param name="separator" select="'/'"/>
           <xsl:with-param name="index" select="'4'"/>
           <xsl:with-param name="startfragment" select=""/>
           <xsl:with-param name="restfragment" select="$lead_parameter_nodes/organism_size_formula_min-from-to-max"/>
         </xsl:call-template>
       </xsl:when>
       <xsl:otherwise>
         <xsl:choose>
           <xsl:when test="$lead_parameter_nodes/organism_size_max">
             <xsl:value-of select="$lead_parameter_nodes/organism_size_max"/>
           </xsl:when>
           <xsl:otherwise>
             <xsl:comment>kein organism_size_max</xsl:comment>
           </xsl:otherwise>
         </xsl:choose>
       </xsl:otherwise>
     </xsl:choose>
         </td>
         <td>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/organism_size_formula_min-from-to-max">
         <xsl:variable name="this_organism_size_unit">
           <xsl:call-template name="get_split_fragment_by_separator">
             <xsl:with-param name="separator" select="'/'"/>
             <xsl:with-param name="index" select="'5'"/>
             <xsl:with-param name="startfragment" select=""/>
             <xsl:with-param name="restfragment" select="$lead_parameter_nodes/organism_size_formula_min-from-to-max"/>
           </xsl:call-template>
         </xsl:variable>
         
         <xsl:choose>
           <xsl:when test="$this_organism_size_unit">
             <xsl:value-of select="$this_organism_size_unit"/>
           </xsl:when>
           <xsl:otherwise>
             <xsl:choose>
               <xsl:when test="$lead_parameter_nodes/organism_size_unit">
                 <xsl:value-of select="$lead_parameter_nodes/organism_size_unit"/>
               </xsl:when>
               <xsl:otherwise>
                 <xsl:comment>kein organism_size_unit</xsl:comment>
               </xsl:otherwise>
             </xsl:choose>
           </xsl:otherwise>
         </xsl:choose>
       </xsl:when>
       <xsl:otherwise>
         <xsl:choose>
           <xsl:when test="$lead_parameter_nodes/organism_size_unit">
             <xsl:value-of select="$lead_parameter_nodes/organism_size_unit"/>
           </xsl:when>
           <xsl:otherwise>
             <xsl:comment>kein organism_size_unit</xsl:comment>
           </xsl:otherwise>
         </xsl:choose>
       </xsl:otherwise>
     </xsl:choose>
         </td>
         <td>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/flowering_period">
           <xsl:value-of select="$lead_parameter_nodes/flowering_period"/>
       </xsl:when>
       <xsl:otherwise><xsl:comment>kein flowering_period</xsl:comment></xsl:otherwise>
     </xsl:choose>
         </td>
         <td>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/flowering_period_formula_min-from-to-max">
         <xsl:call-template name="get_split_fragment_by_separator">
           <xsl:with-param name="separator" select="'/'"/>
           <xsl:with-param name="index" select="'1'"/>
           <xsl:with-param name="startfragment" select=""/>
           <xsl:with-param name="restfragment" select="$lead_parameter_nodes/flowering_period_formula_min-from-to-max"/>
         </xsl:call-template>
       </xsl:when>
       <xsl:otherwise>
         <xsl:choose>
           <xsl:when test="$lead_parameter_nodes/flowering_period_min">
             <xsl:value-of select="$lead_parameter_nodes/flowering_period_min"/>
           </xsl:when>
           <xsl:otherwise>
             <xsl:comment>kein flowering_period_min</xsl:comment>
           </xsl:otherwise>
         </xsl:choose>
       </xsl:otherwise>
     </xsl:choose>
         </td>
         <td>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/flowering_period_formula_min-from-to-max">
         <xsl:call-template name="get_split_fragment_by_separator">
           <xsl:with-param name="separator" select="'/'"/>
           <xsl:with-param name="index" select="'2'"/>
           <xsl:with-param name="startfragment" select=""/>
           <xsl:with-param name="restfragment" select="$lead_parameter_nodes/flowering_period_formula_min-from-to-max"/>
         </xsl:call-template>
       </xsl:when>
       <xsl:otherwise>
         <xsl:choose>
           <xsl:when test="$lead_parameter_nodes/flowering_period_from">
             <xsl:value-of select="$lead_parameter_nodes/flowering_period_from"/>
           </xsl:when>
           <xsl:otherwise>
             <xsl:comment>kein flowering_period_from</xsl:comment>
           </xsl:otherwise>
         </xsl:choose>
       </xsl:otherwise>
     </xsl:choose>
         </td>
         <td>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/flowering_period_formula_min-from-to-max">
         <xsl:call-template name="get_split_fragment_by_separator">
           <xsl:with-param name="separator" select="'/'"/>
           <xsl:with-param name="index" select="'3'"/>
           <xsl:with-param name="startfragment" select=""/>
           <xsl:with-param name="restfragment" select="$lead_parameter_nodes/flowering_period_formula_min-from-to-max"/>
         </xsl:call-template>
       </xsl:when>
       <xsl:otherwise>
         <xsl:choose>
           <xsl:when test="$lead_parameter_nodes/flowering_period_to">
             <xsl:value-of select="$lead_parameter_nodes/flowering_period_to"/>
           </xsl:when>
           <xsl:otherwise>
             <xsl:comment>kein flowering_period_to</xsl:comment>
           </xsl:otherwise>
         </xsl:choose>
       </xsl:otherwise>
     </xsl:choose>
         </td>
         <td>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/flowering_period_formula_min-from-to-max">
         <xsl:call-template name="get_split_fragment_by_separator">
           <xsl:with-param name="separator" select="'/'"/>
           <xsl:with-param name="index" select="'4'"/>
           <xsl:with-param name="startfragment" select=""/>
           <xsl:with-param name="restfragment" select="$lead_parameter_nodes/flowering_period_formula_min-from-to-max"/>
         </xsl:call-template>
       </xsl:when>
       <xsl:otherwise>
         <xsl:choose>
           <xsl:when test="$lead_parameter_nodes/flowering_period_max">
             <xsl:value-of select="$lead_parameter_nodes/flowering_period_max"/>
           </xsl:when>
           <xsl:otherwise>
             <xsl:comment>kein flowering_period_max</xsl:comment>
           </xsl:otherwise>
         </xsl:choose>
       </xsl:otherwise>
     </xsl:choose>
         </td>
         <td>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/altitudinal_zone">
           <xsl:value-of select="$lead_parameter_nodes/altitudinal_zone"/>
       </xsl:when>
       <xsl:otherwise><xsl:comment>kein altitudinal_zone</xsl:comment></xsl:otherwise>
     </xsl:choose>
         </td>
         <td>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/altitudinal_zone_formula_min-from-to-max">
         <xsl:call-template name="get_split_fragment_by_separator">
           <xsl:with-param name="separator" select="'/'"/>
           <xsl:with-param name="index" select="'1'"/>
           <xsl:with-param name="startfragment" select=""/>
           <xsl:with-param name="restfragment" select="$lead_parameter_nodes/altitudinal_zone_formula_min-from-to-max"/>
         </xsl:call-template>
       </xsl:when>
       <xsl:otherwise>
         <xsl:choose>
           <xsl:when test="$lead_parameter_nodes/altitudinal_zone_min">
             <xsl:value-of select="$lead_parameter_nodes/altitudinal_zone_min"/>
           </xsl:when>
           <xsl:otherwise>
             <xsl:comment>kein altitudinal_zone_min</xsl:comment>
           </xsl:otherwise>
         </xsl:choose>
       </xsl:otherwise>
     </xsl:choose>
         </td>
         <td>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/altitudinal_zone_formula_min-from-to-max">
         <xsl:call-template name="get_split_fragment_by_separator">
           <xsl:with-param name="separator" select="'/'"/>
           <xsl:with-param name="index" select="'2'"/>
           <xsl:with-param name="startfragment" select=""/>
           <xsl:with-param name="restfragment" select="$lead_parameter_nodes/altitudinal_zone_formula_min-from-to-max"/>
         </xsl:call-template>
       </xsl:when>
       <xsl:otherwise>
         <xsl:choose>
           <xsl:when test="$lead_parameter_nodes/altitudinal_zone_from">
             <xsl:value-of select="$lead_parameter_nodes/altitudinal_zone_from"/>
           </xsl:when>
           <xsl:otherwise>
             <xsl:comment>kein altitudinal_zone_from</xsl:comment>
           </xsl:otherwise>
         </xsl:choose>
       </xsl:otherwise>
     </xsl:choose>
         </td>
         <td>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/altitudinal_zone_formula_min-from-to-max">
         <xsl:call-template name="get_split_fragment_by_separator">
           <xsl:with-param name="separator" select="'/'"/>
           <xsl:with-param name="index" select="'3'"/>
           <xsl:with-param name="startfragment" select=""/>
           <xsl:with-param name="restfragment" select="$lead_parameter_nodes/altitudinal_zone_formula_min-from-to-max"/>
         </xsl:call-template>
       </xsl:when>
       <xsl:otherwise>
         <xsl:choose>
           <xsl:when test="$lead_parameter_nodes/altitudinal_zone_to">
             <xsl:value-of select="$lead_parameter_nodes/altitudinal_zone_to"/>
           </xsl:when>
           <xsl:otherwise>
             <xsl:comment>kein altitudinal_zone_to</xsl:comment>
           </xsl:otherwise>
         </xsl:choose>
       </xsl:otherwise>
     </xsl:choose>
         </td>
         <td>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/altitudinal_zone_formula_min-from-to-max">
         <xsl:call-template name="get_split_fragment_by_separator">
           <xsl:with-param name="separator" select="'/'"/>
           <xsl:with-param name="index" select="'4'"/>
           <xsl:with-param name="startfragment" select=""/>
           <xsl:with-param name="restfragment" select="$lead_parameter_nodes/altitudinal_zone_formula_min-from-to-max"/>
         </xsl:call-template>
       </xsl:when>
       <xsl:otherwise>
         <xsl:choose>
           <xsl:when test="$lead_parameter_nodes/altitudinal_zone_max">
             <xsl:value-of select="$lead_parameter_nodes/altitudinal_zone_max"/>
           </xsl:when>
           <xsl:otherwise>
             <xsl:comment>kein altitudinal_zone_max</xsl:comment>
           </xsl:otherwise>
         </xsl:choose>
       </xsl:otherwise>
     </xsl:choose>
         </td>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/occurrence_status">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/occurrence_status"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein occurrence_status</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/floristic_regions">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/floristic_regions"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein floristic_regions</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
     <xsl:choose>
       <xsl:when test="$lead_parameter_nodes/floristic_zones">
         <td>
           <xsl:call-template name="remove_translate_tags" > 
             <xsl:with-param name="text" select="$lead_parameter_nodes/floristic_zones"/> 
           </xsl:call-template>
         </td>
       </xsl:when>
       <xsl:otherwise><td><xsl:comment>kein floristic_zones</xsl:comment></td></xsl:otherwise>
     </xsl:choose>
   </tr>
 </xsl:template>

</xsl:stylesheet>