I want to use data from XML to populate a class:
E.g.
<p class="<xsl:value-of select="a:Subject"/>">English</p>
Which would generate:
<p class="English">English</p>
IS this possible?
I want to use data from XML to populate a class:
E.g.
<p class="<xsl:value-of select="a:Subject"/>">English</p>
Which would generate:
<p class="English">English</p>
IS this possible?
Yes, it is possible, use the below code with Attribute Value Template
<p class="{a:Subject}">English</p>
Yes via the <xsl:attribute>
Ex:
<xsl:template match="yourXPath">
<p>
<xsl:attribute name="class">
<xsl:value-of select="a:Subject"/>
</xsl:attribute>
</p>
</xsl:template>