I am trying to write an Xsl file that contains embedded style sheet rules, but with no success.
I don't see that the rules are being used.
Here’s an example of what I tried:
Does someone know what am I doing wrong?Code:<?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <html> <head> <style type='text/css'> <xsl:text><!-- .caption { background-color: #ff0000; font-weight: bolder; } --> </xsl:text> </style> </head> <body> <span class='caption'>Hello</span> … </body> </html> </xsl:template> </xsl:stylesheet>




Reply With Quote