Ho un file xml che funziona in questo modo.Come controllare i nomi dei nodi xml utilizzando <xsl:if>
<RootTag>
<Form>
<Section>
<Annex>
<Group>
<Label value = "Name"></Label>
<Text Value = "Enter Name"></Text>
</Group>
<Group>
<Label value = "Gender"></Label>
<Radio Value = "Male||Female"></Text>
</Group>
</Annex>
</Section>
</Form>
</RootTag>
Ora nel mio xsl, devo controllare se il tag è <Text>
o <Radio>
e generare <input>
tag in base a quel risultato.
C'è qualche cosa che posso fare usando <xsl:if>
? Come <xsl:if test = 'node = <Text>'>