AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

per XSL 2 Felder gruppieren

Ein Thema von Mussi0 · begonnen am 6. Sep 2007 · letzter Beitrag vom 10. Sep 2007
 
Mussi0

Registriert seit: 8. Jun 2006
55 Beiträge
 
#1

per XSL 2 Felder gruppieren

  Alt 6. Sep 2007, 08:45
Hallo,

ich habe eine Frage!

Ich möchte wie das Titel schon verrät per XSL 2 Felder einer XML Datei Gruppieren!

Code:
<table rules="all">
 <tr>
    <td>
     <table>
        <tr>
         <td></td>
         <td>A T T R I B U T 2</td>
      </tr>
      <tr>
         <td></td>
         <td>A T T R I B U T 3</td>
      </tr>
      <tr>
         <td>A T T R I B U T 1 
-
 Kann variabel sein also die anzahl</td>
      </tr>
     </table>
    </td>
    <td>
     <table rules="all">
        <tr>
         <td>A T T R I B U T W E R T 2 - nach rechts</td>
      </tr>
      <tr>
         <td>A T T R I B U T W E R T 3 - nach rechts</td>
      </tr>
      <tr>
         <td></td>
      </tr>
     </table>
    </td>
    <td rowspan="2">
       <table rules="all" style="width:100%; height:100%;">
          <tr>
             <td>P R E I S E - H E A D E R</td>
          </tr>
          <tr>
             <td>P R E I S E</td>
          </tr>
       </table>
    </td>
 </tr>
 <tr>
    <td>
     <table rules="all">
      <tr>
       <td>A T T R I B U T W E R T 1 
-
 Kann variabel sein also die anzahl</td>
      </tr>
     </table>
    </td>
    <td>
       <table rules="all">
          <tr>
             <td>B E S T E L L N U M M E R
-
 Muss variabel sein also die anzahl</td>
          </tr>
       </table>
    </td>
 </tr>
</table>
Die Anzahl der Attribute ist variabel aber nur dort wo Attribut1
steht die anderen nicht. Alle anderen Felder müssen variabel sein d.h. da kommen nicht nur 2 - 3 sondern dan kann mal 1 Wert kommen da können aber auch 10 oder mehr Werte kommen.

Mein eigentliches Problem ist das ich eine Zuordnung zwischen der Bestellnummer, dem Preis, dem Attribut 1/2/3 benötige! Nun ja wenn ich mir das alles so ausgebe was teilweise funktioniert dann bekomm ich natürlich auch doppelte Werte zurück. Meine Frage ist kann ich das Attribut 2 und 3 so gruppieren das diese in Kombination wirklich nur einmal vorkommt?

Und habt ihr eine Idee wie ich diese Zuordnung machen kann die ich oben schonmal ansprach?

Hier mal ein Auszug aus der XML Datei
XML-Code:
<produkt id="10010392">
  <hierarchy>
    <attribut id="2043">
      <sort>1</sort>
      <bezeichnung nsort="1">Typ</bezeichnung>
    </attribut>
    <attribut id="2359">
      <sort>2</sort>
      <bezeichnung nsort="2">Korpus/Front</bezeichnung>
    </attribut>
    <attribut id="2330">
      <sort>3</sort>
      <bezeichnung nsort="3">Anzahl Fächer</bezeichnung>
    </attribut>
    <attribut id="2532">
      <sort>4</sort>
      <bezeichnung nsort="4">Gewicht in kg</bezeichnung>
    </attribut>
  </hierarchy>
  <artikel id="1385637">
    <sartikelnr>21151</sartikelnr>
    <nlfdartikel>1385637</nlfdartikel>
    <attribute parrent="1385637">
      <attribut nsort="1">S4/4</attribut>
      <attribut nsort="2">hellsilber/enzianblau</attribut>
      <attribut nsort="3">4</attribut>
      <attribut nsort="4">40</attribut>
    </attribute>
    <preise>
      <preis nbildpos="010">
       <nstaffel>1</nstaffel>
       <nwert>223,50</nwert>
      </preis>
      <preis nbildpos="010">
       <nstaffel>5</nstaffel>
       <nwert>199,50</nwert>
      </preis>
    </preise>
    <bestellnummer>21151-K72</bestellnummer>
  </artikel>
  <artikel id="1385625">
    <sartikelnr>21152</sartikelnr>
    <nlfdartikel>1385625</nlfdartikel>
    <attribute parrent="1385625">
      <attribut nsort="1">S4/4</attribut>
      <attribut nsort="2">lichtgrau/platingrau</attribut>
      <attribut nsort="3">4</attribut>
      <attribut nsort="4">40</attribut>
    </attribute>
    <preise>
      <preis nbildpos="010">
       <nstaffel>1</nstaffel>
       <nwert>223,50</nwert>
      </preis>
      <preis nbildpos="010">
       <nstaffel>5</nstaffel>
       <nwert>199,50</nwert>
      </preis>
    </preise>
    <bestellnummer>21152-K72</bestellnummer>
  </artikel>
  ...
</produkt>
Gruß und Danke im Vorraus

Muss!0
Wer die anderen neben sich klein macht ist nie groß.
von Johann Gottfried Seume

Website: http://mussio.funpic.de
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 04:41 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz