Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>View the generated HTML source. Does it look right? You're displaying a complete <code>&lt;html&gt;</code> page for <strong>each</strong> <code>feedback</code> instead of displaying only the <code>&lt;span&gt;</code>s for each <code>feedback</code>.</p> <p>Your XSL needs to be altered with a <code>&lt;xsl:for-each&gt;</code> for each feedback:</p> <pre><code>&lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"&gt; &lt;xsl:output method="html" indent="yes"/&gt; &lt;xsl:template match="feed"&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Feedback Forum&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;xsl:for-each select="feedback"&gt; &lt;span style="display:block; padding: 5px 10px; background-color: #C9F0F9; width: 100%; margin-top:10px; border-left:10px solid #F9EBC9; border-bottom: 1px solid #000000;"&gt;&lt;xsl:apply-templates select="user"/&gt; on &lt;xsl:apply-templates select="date"/&gt;&lt;/span&gt; &lt;span style="display:block; padding: 5px 10px; background-color: #CDF5CD; width: 100%; border-left:10px solid #F9EBC9;"&gt;&lt;xsl:apply-templates select="comments"/&gt;&lt;/span&gt; &lt;/xsl:for-each&gt; &lt;/body&gt; &lt;/html&gt; &lt;/xsl:template&gt; &lt;/xsl:stylesheet&gt; </code></pre> <p>IE is too forgiving in displaying multiple <code>&lt;html&gt;</code>s in one response, that's why it worked in this browser. Firefox more strictly adheres the standards: there can be only <strong>one</strong> <code>&lt;html&gt;</code> element in the DOM.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload