Sign In/My Account | View Cart  
advertisement

Article:
 Putting Attributes to Work
Subject: Example does not render output in FireFox 1.5.0.2
Date: 2006-04-28 12:56:08
From: cenobite

Your XSL:


<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">


<?startSampleFile ?>
<!-- xq178.xsl: converts xq181.xml into xq183.txt -->


<xsl:template match="para">


Color: <xsl:value-of select="@color"/>


<!-- List the attribute names and values. -->
<xsl:for-each select="@*">
attribute name: <xsl:value-of select="name()"/>
attribute value: <xsl:value-of select="."/>
</xsl:for-each>


</xsl:template>
<?endSampleFile ?>


</xsl:stylesheet>


does not render output in Fire Fox, it does work in IE6, is this a problem with FF cycling through the nodes? or the XSL?


thanks!


Previous Message Previous Message   Next Message No Next Message


Titles Only Titles Only Oldest First
  • Example does not render output in FireFox 1.5.0.2
    2006-04-28 13:59:12 Bob DuCharme [Reply]

    When using a browser's XSLT processor, it's best to have the stylesheet convert the result to some sort of HTML. The stylesheet worked in IE when I added this template rule to it:


    <xsl:template match="/">
    <html><body>

    <xsl:apply-templates/>
    </body></html>
    </xsl:template>



Sponsored By: