You can use an @ sign before an attribute name to select or match an attribute of the current node.
@
<xsl:template match="DENSITY"> <li>Density: <xsl:value-of select="."/> <xsl:value-of select="@UNITS"/></li> </xsl:template>