how to use xsl as attribute in html tag

DSQ

New Member
I'm new to xslt and i'm doing a chat application and I want to save the users sessions as xml files that appear with the user predefined color and font so I used xslt to make that happen but I don't know how to take the font from the xml and applay it in the html tag so it appears with the font that the user selected.\[code\]<xsl:choose> <xsl:when test="/body/msg[italic/text()='true']"> <i> <font family="/body/msg[font/text()] color="/body/msg/color"> <xsl:value-of select="from" /><p>: </p> <xsl:value-of select="content"/><br/> </font> </i> </xsl:when> <xsl:when test="/body/msg[bold/text()='true']"> <b> <font family="/body/msg[font/text()]" color="/body/msg/color"> <xsl:value-of select="from" /><p>: </p> <xsl:value-of select="content"/><br/> </font> </b> </xsl:when> <xsl:when test="/body/msg[bold/text()='true'] and /body/msg[italic/text()='true']"> <b> <i> <font family="/body/msg[font/text()]" color="/body/msg/color"> <xsl:value-of select="from" /><p>: </p> <xsl:value-of select="content"/><br/> </font> </i> </b> </xsl:when> </xsl:choose>\[/code\]
 
Back
Top