frodosfoot
IS-IT--Management
In my xml, certain elements have an id. For example:
<countryfrom id="21">Brasil</countryfrom>
In my xslt I'm using <xsl:value-of select="countryfrom"/> to get the country name into the relevant cell of a table.
However, what I'd like to do is to show the country flag in addition to its name. Each country has an ID and each flag image has a name that is linked to its ID. For example, Brazil's flag image is "21.png". What needs to be added to the xslt file to get it to print out the correct flag for the ID?
<countryfrom id="21">Brasil</countryfrom>
In my xslt I'm using <xsl:value-of select="countryfrom"/> to get the country name into the relevant cell of a table.
However, what I'd like to do is to show the country flag in addition to its name. Each country has an ID and each flag image has a name that is linked to its ID. For example, Brazil's flag image is "21.png". What needs to be added to the xslt file to get it to print out the correct flag for the ID?