xml - XSL - Do I need a Value-of? -
<xsl:for-each select="/date/logs"> <rect> <xsl:attribute name="fill"> red </xsl:attribute>
......... portion of xsl transformation document. when process it, red comes out just
		red 		
do need value-of select , variable. i'm not knowledgeable sorry poor explanation.
could me please, in advance.
you can use literal result elements including attribute values e.g.
<xsl:for-each select="/date/logs"> <rect fill="red"/> </xsl:for-each>
if want or need populate attribute value based on value in input doc use attribute value template e.g.
<xsl:for-each select="/date/logs"> <rect fill="{@color}"/> </xsl:for-each>
Comments
Post a Comment