Hallo Julian,
wie kann ich mein xml aufgrund der "LineInformation"/"Item"/"LineNum" sortieren?
Dafür steht xsl:sort bereit:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
  <xsl:template match="@* | node()">
    <xsl:copy>
      <xsl:apply-templates select="@* | node()"/>
    </xsl:copy>
  </xsl:template>
  <xsl:template match="LineInformation">
    <xsl:copy>
      <xsl:apply-templates select="Item">
        <xsl:sort select="LineNum" data-type="number" order="ascending"/>
      </xsl:apply-templates>
    </xsl:copy>
  </xsl:template>
</xsl:stylesheet>
Grüße,
Thomas
 nicht angemeldet
 nicht angemeldet