Avendo il codice:
Codice PHP:
<svg:svg width="1400" height="800" align="center">
<
svg:rect x="0" y="0" width="100%" height="100%" fill="lightgrey" style="opacity:20"/>

  <
xsl:for-each select="SERIE_A_08-09/SQUADRA">
   <
xsl:sort select="POSIZIONE" data-type="number"/>

   <
xsl:variable name="colori" select="COD_COLORI"/>
   <
xsl:variable name="colore1" select="substring-before($colori,&quot;,&quot;)" />
   <
xsl:variable name="colore2" select="substring-after($colori,&quot;,&quot;)" />
   <
xsl:variable name="nome" select="NOME"/>
   <
xsl:variable name="stemma" select="@STEMMA"/>
   <
xsl:variable name="postext" select="((position()-1)*70)"/>
   <
xsl:variable name="contatore" select="((position()-1)*70)+10"/>
   <
xsl:variable name="punti" select="PUNTI_CLASSIFICA"/>
   <
xsl:variable name="altezza" select="(600*$punti) div 84"/>
   
   <
svg:defs>
   <
svg:linearGradient id="{position()}" gradientUnits="objectBoundingBox" x1="0%" y1="0%" x2="100%" y2="0%">
   <
svg:stop offset="0.3" stop-color="{$colore1}"/>
   <
svg:stop offset="0.7" stop-color="{$colore2}"/>
   </
svg:linearGradient>
   </
svg:defs>
   
   <
svg:text x="{$contatore}y="620" style="font-weight:bold;fill:#ffff00;writing-mode:tb-rl;"><xsl:value-of select="NOME" /></svg:text>
   
   <
svg:image xlink:href="{$stemma}x="{$contatore}y="650" width="50px" height="50px" />
   
   <
svg:rect x="{$contatore}y="{600-$altezza}" width="50" height="{$altezza}fill="url(#{position()})" stroke="black" stroke-width="2"/>

  </
xsl:for-each>
  
  </
svg:svg
Il parser mi da un errore del tipo:
"Errore interpretazione XML: prefisso non confinante con un namespace"
sul tag <svg:image>... se elimino il tag <svg:image> il documento funziona benissimo.

a cosa può essere dovuto questo errore???