I am trying to get a program working that uses a (poorly) written tutorial. It uses an XML file which calls an XLS style sheet.<br /><br />This is the XLS Style Sheet:<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec--><?xml version="1.0" encoding="ISO-8859-1"?><br /><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><br /><br />Â <xsl:template match="/"><br />Â Â <xsl:apply-templates select="location"/><br />Â </xsl:template><br /><br />Â <xsl:template match="location"><br />Â Â <div style="padding-right: 8px; margin-top: 2px"><br />Â Â Â <xsl:apply-templates select="info"/><br />Â Â </div><br />Â </xsl:template><br /><br />Â <xsl:template match="info"><br />Â <br />Â Â <xsl:variable name="page" select="../@arg0"/><br />Â Â <xsl:variable name="address"><br />Â Â Â Â <xsl:for-each select="address/line"><br />Â Â Â Â Â <xsl:if test="position() > 1">, </xsl:if><br />Â Â Â Â Â <xsl:value-of select="."/><br />Â Â Â Â </xsl:for-each><br />Â Â </xsl:variable><br /><br />Â Â <div style="font-weight: bold">Custom!</div><br /><br />Â Â <div><br /><img><br />Â Â <xsl:attribute name="src"><br />Â <xsl:value-of select="image"/>Â <br />Â Â </xsl:attribute><br /></img><br />Â Â </div><br /><br />Â Â <div style="font-size: small; margin-top: 14px"><br />Â Â Â <xsl:apply-templates select="address/line"/><br />Â Â </div><br /><br />Â </xsl:template><br /><br />Â <xsl:template match="line"><br />Â Â <div style="margin-top: 2px"><xsl:value-of select="."/></div><br />Â </xsl:template><br /><br />Â <xsl:template name="getSingleLineAddress"><br />Â Â <xsl:for-each select="address/line"><br />Â Â Â <xsl:if test="position() > 1">, </xsl:if><br />Â Â Â <xsl:value-of select="."/><br />Â Â </xsl:for-each><br />Â </xsl:template><br /><br /></xsl:stylesheet><!--QuoteEnd--></div><!--QuoteEEnd-->The tutorial goes on to 'hack' the above style sheet so that the XML file can use standard HTML tags. The 'hack' to the XLS style sheet isn't precisely given, but when clicking on the link that is suppsoed to give the code for the style sheet, this is what i get:<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec--><xsl:stylesheet version="1.0"><br /><xsl:template match="/"><br /><xsl:apply-templates select="location"/><br /></xsl:template><br /><xsl:template match="location"><br /><xsl:apply-templates select="info"/><br /></xsl:template><br /><xsl:template match="info"><br /><xsl:variable name="page" select="../@arg0"/><br /><div><br /><xsl:copy-of select="minipage/node()"/><br /></div><br /></xsl:template><br /></xsl:stylesheet><!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />The code for the above stylesheet doesn't look long enough (relative to the one above it) and i really don't know anything about XML and XLS files (can you tell <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/biggrin.gif" style="vertical-align:middle" emoid="" border="0" alt="biggrin.gif" /> ).<br /><br />Can anybody tell if the above should be enough to display HTML tags in an XML file that calls this style sheet; if not, what is missing and/or any leads as to what may be wrong. (or am i way off base?)<br /><br />As always, thank you.<!--content-->
Obviously the above should be XSL (and not XLS)<!--content-->
Don't meen to doublepost, but i posted <a href="http://www.totalchoicehosting.com/forums/index.php?showtopic=20375" target="_blank">THIS QUESTION</a> about XSL but don't know if my question belongs here.<br /><br />Please move if necessary.<br /><br />Thanks.<!--content-->
I merged your posts,<br />we read all forums.<br /><br />Sorry no one has any insight on this.<br />Maybe it will take a little longer for all the family members to check in<br />and help.<!--content-->
Obviously the above should be XSL (and not XLS)<!--content-->
Don't meen to doublepost, but i posted <a href="http://www.totalchoicehosting.com/forums/index.php?showtopic=20375" target="_blank">THIS QUESTION</a> about XSL but don't know if my question belongs here.<br /><br />Please move if necessary.<br /><br />Thanks.<!--content-->
I merged your posts,<br />we read all forums.<br /><br />Sorry no one has any insight on this.<br />Maybe it will take a little longer for all the family members to check in<br />and help.<!--content-->