Hallo Zusammen,
ich habe folgende XML-Struktur:
Jetzt möchte ich in einer for-each mit jeweils den Tag <value> und <name> eines jeden GK_StandardComment_Attribute anzeigen. Ich weiß nur nicht, wie ich über den Key darauf zugreifen kann. Er erscheint kein Fehler, nur leere Zeilen.
Folgendes habe ich schon probiert:
bzw.
Kann mir da einer auf die Sprünge helfen?
Vielen Dank :-)
ich habe folgende XML-Struktur:
Code:
<GKStandardComments> <GKStandardComment> <GKStandardComment_Attribute name="Description"> <name>i18N(Description)</name> <value>Dies ist eine Beschreibung</value> </GKStandardComment_Attribute> <GKStandardComment_Attribute name="Category"> <name>i18N(Kategorie)</name> <value>Kategorie 1</value> </GKStandardComment_Attribute> <GKStandardComment_Attribute name="GKBezeichnung"> <name>i18N(BezeichnungDE)</name> <value>Eine weitere Bezeichnung</value> </GKStandardComment_Attribute> </GKStandardComment> <GKStandardComment> <GKStandardComment_Attribute name="Description"> <name>i18N(Description)</name> <value>Beschreibung einer Tatsache</value> </GKStandardComment_Attribute> <GKStandardComment_Attribute name="Category"> <name>i18N(Kategorie)</name> <value>Kategorie 4</value> </GKStandardComment_Attribute> <GKStandardComment_Attribute name="GKBezeichnung"> <name>i18N(BezeichnungDE)</name> <value>Noch eine Bezeichnung</value> </GKStandardComment_Attribute> </GKStandardComment> <GKStandardComment> ... </GKStandardComment> </GKStandardComments>
Folgendes habe ich schon probiert:
Code:
<xsl:for-each select="GKStandardComments/GKStandardComment"> <fo:block> <xsl:value-of select="GKStandardComment_Attribute[@key = 'Description']/value"/> </fo:block>
Code:
<xsl:for-each select="GKStandardComments/GKStandardComment"> <fo:block> <xsl:value-of select="GKStandardComment_Attribute[@name = 'Description']/value"/> </fo:block>
Vielen Dank :-)
Comment