Thomas J.S.: XML Abfrage

Beitrag lesen

hallo, (nochmal)

und gleich zwei fehler sind drinn:

<xsl:apply-templates select="document('http://www.camelot-europe.com/herald/servers//Avalon/guilds/588.xml')"/>

muss so der link auf deine xml datei richtig sein:
http://www.camelot-europe.com/herald/servers/Avalon/guilds/588.xml
                                          ^^^^
also nur ein /

und das zeite ist, es sit besser so zu machen:
------
            <td>Name der Gilde:
               <a>
                  <xsl:attribute name="href">
                     <xsl:if test="not(contains(@websiteurl,'http'))">http://</xsl:if>
                     <xsl:value-of select="@websiteurl" />
                  </xsl:attribute>
               <xsl:value-of select="@name" />
              </a>
            </td>

------

grüße
thomas