![]() |
xsl:for-each gibt nicht alle Elemente aus
Ich habe folgende XML-Struktur:
XML-Code:
Diese will ich jetzt ausgeben:
<Features>
<Feature>Unterstützung von Dateien größer 4GB</Feature> <Feature>Einfache, übersichtliche Bedienoberfläche</Feature> <Feature>Schnelles Teilen auch von sehr großen Dateien</Feature> <Feature>Zusammensetzen ohne Programm möglich über eine DOS Stapelverarbeitungsdatei. (Wird vom Programm erstellt.)</Feature> </Features>
XML-Code:
Doch sehe ich nur das erste Elemen. Ich dachte mit for-each geht er durch alle Elemente durch?
<h3>Features</h3>
<ul> <xsl:for-each select="/XML_DIZ_INFO/Program_Descriptions/German/Features">[*]<xsl:value-of select="Feature"/> </xsl:for-each>[/list] Problem ist Dank Christian gelöst (Der jetzt auch weiß, wie man an den Inhalt alter Repositories drankommt.). So geht es:
XML-Code:
<h3>Features</h3>
<ul> <xsl:for-each select="/XML_DIZ_INFO/Program_Descriptions/German/Features/Feature">[*]<xsl:apply-templates /> </xsl:for-each>[/list] |
Alle Zeitangaben in WEZ +1. Es ist jetzt 23:13 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