Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
<a href="http://api.eve-central.com/api/marketstat?&typeid=34®ionlimit=10000002">...Text...</a>
$xml = simplexml_load_file('http://api.eve-central.com/api/marketstat?&typeid=34®ionlimit=10000002');
echo $xml->asXML();
<?php
$xml = simplexml_load_file('http://api.eve-central.com/api/marketstat?&typeid=34®ionlimit=10000002');
echo $xml->asXML();
?>
<?php
$xml = new DOMDocument;
$xml->load('http://api.eve-central.com/api/marketstat?&typeid=34®ionlimit=10000002');
$xsl = new DOMDocument;
$xsl->load('xsl.xsl');
$proc = new XSLTProcessor;
$proc->importStyleSheet($xsl); // XSL Document importieren
echo $proc->transformToDoc($xml)->saveXML();
?>
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<table border="1">
<thead>
<tr><th> </th><th>volume</th><th>avg</th><th>max</th><th>min</th><th>stddev</th><th>median</th><th>percentile</th></tr>
</thead>
<tbody>
<xsl:apply-templates />
</tbody>
</table>
</xsl:template>
<xsl:template match="/evec_api">
<xsl:apply-templates />
</xsl:template>
<xsl:template match="/evec_api/marketstat">
<xsl:apply-templates />
</xsl:template>
<xsl:template match="/evec_api/marketstat/type">
<tr><th colspan="8">ID:<xsl:value-of select="@id"/></th></tr>
<xsl:apply-templates />
</xsl:template>
<xsl:template match="/evec_api/marketstat/type/*">
<tr><th><xsl:value-of select="name()"/></th><xsl:apply-templates /></tr>
</xsl:template>
<xsl:template match="/evec_api/marketstat/type/*/*">
<td><xsl:value-of select="."/></td>
</xsl:template>
</xsl:stylesheet>