You can use literal result elements including attribute values e.g.
<xsl:for-each select="/date/logs">
<rect fill="red"/>
</xsl:for-each>
If you want or need to populate an attribute value based on a value in your input doc use an attribute value template e.g.
<xsl:for-each select="/date/logs">
<rect fill="{@color}"/>
</xsl:for-each>