Hallo,
<input type="submit" id="{@tag}_btnUpload" value="Upload" disabled=""/>
aber hier ist alles zwecklos, denn du hast das <input> beendet ( "/>"!)!
<xsl:if test="/xmlContent/para.file.war = warfile.txt">
<xsl:attribute name="disabled">
<xsl:value-of select="yes" />
</xsl:attribute>
</xsl:if>Ich möchte hier überprüfen ob im Element /xmlContent/para.file.war der Inhalt warfile.txt steht , wenn ja soll im Input Tag dann disabled="yes" stehen...
Problem zum einen ist , dass die If Bedingung nicht erfüllt wird obwohl sie es ja ist....
und dann bekomme ich den Wert yes nicht an disabled übergeben...
??? bin hilflos...
<input type="submit" id="{@tag}_btnUpload" value="Upload">
<xsl:if test="/xmlContent/para.file.war[. = 'warfile.txt']">
<xsl:attribute name="disabled">yes</xsl:attribute>
</xsl:if>
</input>
Achte darauf, dass der Pfad "/xmlContent/para.file.war" wirklich stimmt, von dort aus gesehen, wo duch dich im Elementenbaum des XMLs befindest!
Grüße
Thomas