juls_pro_37: XSLT - Sortierung nach Nodes

Beitrag lesen

Hi,

wie kann ich mein xml aufgrund der "LineInformation"/"Item"/"LineNum" sortieren?

Derzeit:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<SALESINVOICE>
  <Interchange>   
    <Interchange_Control_Number>5637353077</Interchange_Control_Number>
  </Interchange>
  <HeaderInformation>
    <Currency>EUR</Currency>    
  </HeaderInformation>
  <LineInformation>
    <Item>
      <LineNum>1.001</LineNum>      
    </Item>
    <Item>
      <LineNum>1.002</LineNum>      
    </Item>
    <Item>
      <LineNum>2</LineNum>      
    </Item>
    <Item>
      <LineNum>3</LineNum>      
    </Item>
    <Item>
      <LineNum>1</LineNum>      
    </Item>
  </LineInformation> 
</SALESINVOICE>

Korrekt:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<SALESINVOICE>
  <Interchange>   
    <Interchange_Control_Number>5637353077</Interchange_Control_Number>
  </Interchange>
  <HeaderInformation>
    <Currency>EUR</Currency>    
  </HeaderInformation>
  <LineInformation>
     <Item>
      <LineNum>1</LineNum>      
    </Item>
    <Item>
      <LineNum>1.001</LineNum>      
    </Item>
    <Item>
      <LineNum>1.002</LineNum>      
    </Item>
    <Item>
      <LineNum>2</LineNum>      
    </Item>
    <Item>
      <LineNum>3</LineNum>      
    </Item>
  </LineInformation> 
</SALESINVOICE>

Danke & LG Julian

akzeptierte Antworten