Hej.
Den laver en fejl, "he stylesheet does not contain a document element. The stylesheet may be empty, or it may not be a well-formed XML document"
koden efter at heve rettet i den.
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="
http://www.w3.org/1999/XSL/Transform"><xsl:output method="html" omit-xml-declaration="yes" indent="yes" />
<xsl:param name="PageSize" select="4" />
<xsl:param name="Count" select="count(*/content)"/>
<xsl:param name="CurrentPage" />
<xsl:param name="cat" />
<xsl:param name="con" />
<xsl:template match="*">
<br/>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border: 0px;">
<xsl:for-each select="//content[GAMECATEGORY=$cat]">
<xsl:sort select="@id" data-type="number" order="descending" />
<xsl:if test="position()>(($CurrentPage -1)*$PageSize) and position()<=((($CurrentPage -1)*$PageSize)+$PageSize)">
<tr>
<td bgcolor="#D6D6A7" colspan="2"><strong><xsl:value-of select="GAMENAME" /></strong></td>
</tr>
<tr>
<td><small>Bestillingskode: <strong><xsl:value-of select="shortcode" /></strong></small></td>
</tr>
<tr bgcolor="#E6F2EA">
<td bgcolor="#E6F2EA" width="100" rowspan="2">
<!-- Billede 1 -->
<img>
<xsl:attribute name="src">
<xsl:value-of select="PICTURE_URL_a" />
</xsl:attribute>
<xsl:attribute name="border">
<xsl:text>0</xsl:text>
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:text>image</xsl:text>
</xsl:attribute></img><br/>
<!-- Billede 2 -->
<img>
<xsl:attribute name="src">
<xsl:value-of select="PICTURE_URL_b" />
</xsl:attribute>
<xsl:attribute name="border">
<xsl:text>0</xsl:text>
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:text>image</xsl:text>
</xsl:attribute></img><br/>
<!-- Billede 3 -->
<img>
<xsl:attribute name="src">
<xsl:value-of select="PICTURE_URL_c" />
</xsl:attribute>
<xsl:attribute name="border">
<xsl:text>0</xsl:text>
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:text>image</xsl:text>
</xsl:attribute></img></td>
<td width="100%" bgcolor="#E6F2EA" valign="top"><small><xsl:value-of select="DESCRIPTION" /></small></td>
</tr>
<tr>
<td valign="bottom" width="100%" bgcolor="#E6F2EA" colspan="2"><small>
<!-- Koden fra exp - -->
<xsl:apply-templates name="supported_phones">
<!-- slut på koden fra exp -->
</small><br/></td>
</tr>
<tr><td height="20"></td>
</tr>
</xsl:if>
</xsl:for-each>
</table>
<!-- PAGING START -->
<xsl:call-template name="paging">
<xsl:with-param name="Count" select="count(*/content[GAMECATEGORY=$cat])"/>
<xsl:with-param name="Page" select="1"/>
</xsl:call-template>
<br />
</xsl:template>
<xsl:template name="paging">
<xsl:param name="Count"/>
<xsl:param name="Page"/>
<xsl:if test="$Page!=$CurrentPage">
<small><a href="?con={$con}&tc=java&page={$Page}&cat={$cat}">
<xsl:value-of select="$Page"/>
</a></small>
</xsl:if>
<xsl:if test="$Page=$CurrentPage">
<strong><small>
<xsl:value-of select="$Page"/>
</small></strong>
</xsl:if>
<xsl:text> </xsl:text>
<xsl:if test="$Page <= ($Count div $PageSize)">
<xsl:call-template name="paging">
<xsl:with-param name="Count" select="$Count"/>
<xsl:with-param name="Page" select="$Page+1"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
<!-- PAGING END -->
<xsl:template match="/">
<xsl:apply-templates />
</xsl:template>
<!-- mobil cat -->
<xsl:template match="supported_phones">
<xsl:call-template name="listitems">
<xsl:with-param name="productname" select="substring-before(item,' ')" />
</xsl:call-template>
</xsl:template>
<xsl:template name="listitems">
<xsl:param name="index" select="number(1)"/>
<xsl:param name="productname" select="''"/>
<xsl:variable name="current-item" select="phone[$index]"/>
<xsl:choose>
<xsl:when test="$productname != substring-before($current-item,' ')">
<xsl:value-of select="substring-before($current-item,' ')">:
<xsl:value-of select="substring-before($current-item,' ')">
</xsl:when>
<xsl:otherwise>
, <xsl:value-of select="substring-before($current-item,' ')">
</xsl:otherwise>
</xsl:choose>
<xsl:if test="$index < last()">
<xsl:call-template name="listitems">
<xsl:with-param name="index" select="$index+1"/>
<xsl:with-param name="productname" select="substring-before($current-item,' ')"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
</xsl:stylesheet>