FSN#32930 API Documentatie

svn path=/Website/trunk/; revision=25626
This commit is contained in:
Jos Groot Lipman
2015-07-13 13:23:10 +00:00
parent 01cf5e08b7
commit dbdfc06a25
3 changed files with 66 additions and 6 deletions

28
APPL/API2/reference.xsl Normal file
View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" encoding="windows-1252" indent="yes"/>
<xsl:template match="/">
<html>
<head>
<link rel="stylesheet" type="text/css" href="../appl/api2/reference.css?"/>
</head>
<body>
<h1>API reference <xsl:value-of select="/api/records_name"/>xx</h1>
Record name: <xsl:value-of select="/api/record_name"/><br />
Records name: <xsl:value-of select="/api/records_name"/><br />
Example:
<div class="sample">
GET /api2/<xsl:value-of select="/api/records_name"/>.html
</div>
<h2>Fields list</h2>
<xsl:for-each select="/api/fields/*">
<h3>Field <xsl:value-of select="local-name()"/></h3>
Name: <xsl:value-of select="local-name()"/><br />
Filter: <xsl:value-of select="filter"/>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>