2004-02-09 14:18:27 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2002-02-08 20:03:20 +00:00
|
|
|
<xsl:stylesheet
|
|
|
|
version="1.0"
|
|
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
|
xmlns:fo="http://www.w3.org/1999/XSL/Format">
|
|
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
%
|
|
|
|
% Logtalk - Object oriented extension to Prolog
|
2005-05-24 00:33:41 +01:00
|
|
|
% Release 2.25.0
|
2002-02-08 20:03:20 +00:00
|
|
|
%
|
2005-01-13 12:22:42 +00:00
|
|
|
% Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
|
2002-02-08 20:03:20 +00:00
|
|
|
%
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:output indent="yes"/>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match ="/">
|
|
|
|
|
|
|
|
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
|
|
|
|
|
|
|
|
<fo:layout-master-set>
|
|
|
|
<fo:simple-page-master
|
|
|
|
master-name="simple"
|
|
|
|
page-height="297mm"
|
|
|
|
page-width="210mm"
|
|
|
|
margin-top="15mm"
|
|
|
|
margin-bottom="15mm"
|
|
|
|
margin-left="25mm"
|
|
|
|
margin-right="25mm">
|
|
|
|
<fo:region-body margin-top="15mm" margin-bottom="15mm"/>
|
|
|
|
<fo:region-before extent="15mm"/>
|
|
|
|
<fo:region-after extent="15mm"/>
|
|
|
|
</fo:simple-page-master>
|
|
|
|
</fo:layout-master-set>
|
|
|
|
|
2002-09-14 19:14:17 +01:00
|
|
|
<fo:page-sequence master-reference="simple">
|
2002-02-08 20:03:20 +00:00
|
|
|
|
|
|
|
<fo:static-content flow-name="xsl-region-before">
|
|
|
|
<fo:block>
|
2002-11-04 21:29:14 +00:00
|
|
|
<fo:leader leader-pattern="rule" leader-length.optimum="100%"/>
|
2002-02-08 20:03:20 +00:00
|
|
|
</fo:block>
|
|
|
|
<fo:block
|
|
|
|
text-align="end"
|
|
|
|
font-size="9pt"
|
|
|
|
font-family="sans-serif"
|
|
|
|
font-weight="bold">
|
|
|
|
<xsl:value-of select="logtalk/entity/type"/>: <xsl:value-of select="logtalk/entity/name"/>
|
|
|
|
</fo:block>
|
|
|
|
</fo:static-content>
|
|
|
|
|
|
|
|
<fo:static-content flow-name="xsl-region-after">
|
|
|
|
<fo:block>
|
2002-11-04 21:29:14 +00:00
|
|
|
<fo:leader leader-pattern="rule" leader-length.optimum="100%"/>
|
2002-02-08 20:03:20 +00:00
|
|
|
</fo:block>
|
|
|
|
<fo:block
|
|
|
|
text-align="end"
|
|
|
|
font-size="9pt"
|
|
|
|
font-family="sans-serif"
|
|
|
|
font-weight="bold">
|
|
|
|
<fo:page-number/> of <fo:page-number-citation ref-id="end"/>
|
|
|
|
</fo:block>
|
|
|
|
</fo:static-content>
|
|
|
|
|
|
|
|
<fo:flow flow-name="xsl-region-body">
|
|
|
|
<fo:block
|
|
|
|
font-size="18pt"
|
|
|
|
font-family="sans-serif"
|
2002-09-14 19:14:17 +01:00
|
|
|
font-weight="bold"
|
2002-02-08 20:03:20 +00:00
|
|
|
space-after="8pt">
|
|
|
|
<xsl:value-of select="logtalk/entity/name"/>
|
|
|
|
</fo:block>
|
|
|
|
<xsl:apply-templates select="logtalk/entity"/>
|
|
|
|
<xsl:apply-templates select="logtalk/relations"/>
|
|
|
|
<xsl:apply-templates select="logtalk/predicates"/>
|
2005-04-23 00:57:45 +01:00
|
|
|
<xsl:apply-templates select="logtalk/remarks"/>
|
2002-02-08 20:03:20 +00:00
|
|
|
<fo:block id="end"/>
|
|
|
|
</fo:flow>
|
|
|
|
|
|
|
|
</fo:page-sequence>
|
|
|
|
|
|
|
|
</fo:root>
|
|
|
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="logtalk/entity">
|
|
|
|
|
|
|
|
<xsl:if test="comment">
|
|
|
|
<fo:block
|
2002-09-14 19:14:17 +01:00
|
|
|
margin-left="10mm"
|
2002-02-08 20:03:20 +00:00
|
|
|
font-size="10pt"
|
|
|
|
font-family="serif"
|
2005-04-23 00:57:45 +01:00
|
|
|
font-style="italic">
|
2002-02-08 20:03:20 +00:00
|
|
|
<xsl:value-of select="comment"/>
|
|
|
|
</fo:block>
|
|
|
|
</xsl:if>
|
|
|
|
|
2005-04-23 00:57:45 +01:00
|
|
|
<xsl:if test="parameters">
|
|
|
|
<fo:block
|
|
|
|
font-size="9pt"
|
|
|
|
font-family="monospace"
|
|
|
|
margin-left="10mm"
|
|
|
|
space-before="4pt">
|
|
|
|
</fo:block>
|
|
|
|
<xsl:for-each select="parameters/parameter">
|
|
|
|
<fo:block
|
|
|
|
font-size="9pt"
|
|
|
|
font-family="monospace"
|
|
|
|
margin-left="10mm">
|
|
|
|
<xsl:value-of select="name"/> - <xsl:value-of select="description"/>
|
|
|
|
</fo:block>
|
|
|
|
</xsl:for-each>
|
|
|
|
</xsl:if>
|
|
|
|
|
2003-02-05 00:15:28 +00:00
|
|
|
<xsl:if test="author">
|
2002-02-08 20:03:20 +00:00
|
|
|
<fo:block
|
|
|
|
font-size="10pt"
|
|
|
|
font-family="serif"
|
2005-04-23 00:57:45 +01:00
|
|
|
keep-with-next="always"
|
|
|
|
space-before="8pt">
|
2003-02-05 00:15:28 +00:00
|
|
|
author:
|
2002-02-08 20:03:20 +00:00
|
|
|
</fo:block>
|
|
|
|
<fo:block
|
|
|
|
font-size="9pt"
|
|
|
|
font-family="monospace"
|
2002-09-14 19:14:17 +01:00
|
|
|
margin-left="10mm">
|
2003-02-05 00:15:28 +00:00
|
|
|
<xsl:value-of select="author"/>
|
2002-02-08 20:03:20 +00:00
|
|
|
</fo:block>
|
|
|
|
</xsl:if>
|
|
|
|
|
|
|
|
<xsl:if test="version">
|
|
|
|
<fo:block
|
|
|
|
font-size="10pt"
|
|
|
|
font-family="serif"
|
|
|
|
keep-with-next="always">
|
|
|
|
version:
|
|
|
|
</fo:block>
|
|
|
|
<fo:block
|
|
|
|
font-size="9pt"
|
|
|
|
font-family="monospace"
|
2002-09-14 19:14:17 +01:00
|
|
|
margin-left="10mm">
|
2002-02-08 20:03:20 +00:00
|
|
|
<xsl:value-of select="version"/>
|
|
|
|
</fo:block>
|
|
|
|
</xsl:if>
|
|
|
|
|
|
|
|
<xsl:if test="date">
|
|
|
|
<fo:block
|
|
|
|
font-size="10pt"
|
|
|
|
font-family="serif"
|
|
|
|
keep-with-next="always">
|
|
|
|
date:
|
|
|
|
</fo:block>
|
|
|
|
<fo:block
|
|
|
|
font-size="9pt"
|
|
|
|
font-family="monospace"
|
2002-09-14 19:14:17 +01:00
|
|
|
margin-left="10mm">
|
2002-02-08 20:03:20 +00:00
|
|
|
<xsl:value-of select="date"/>
|
|
|
|
</fo:block>
|
|
|
|
</xsl:if>
|
|
|
|
|
|
|
|
<fo:block
|
|
|
|
font-size="10pt"
|
|
|
|
font-family="serif"
|
|
|
|
space-before="8pt"
|
|
|
|
keep-with-next="always">
|
|
|
|
compilation:
|
|
|
|
</fo:block>
|
|
|
|
<fo:block
|
|
|
|
font-size="9pt"
|
|
|
|
font-family="monospace"
|
2002-09-14 19:14:17 +01:00
|
|
|
margin-left="10mm"
|
2005-04-23 00:57:45 +01:00
|
|
|
space-after="4pt">
|
2002-02-08 20:03:20 +00:00
|
|
|
<xsl:value-of select="compilation"/>
|
|
|
|
</fo:block>
|
|
|
|
|
2002-09-14 19:14:17 +01:00
|
|
|
<xsl:if test="info">
|
2002-02-08 20:03:20 +00:00
|
|
|
<xsl:for-each select="info">
|
2002-09-14 19:14:17 +01:00
|
|
|
<fo:block
|
|
|
|
font-size="10pt"
|
|
|
|
font-family="serif"
|
|
|
|
keep-with-next="always">
|
|
|
|
<xsl:value-of select="key"/>:
|
|
|
|
</fo:block>
|
|
|
|
<fo:block
|
|
|
|
font-size="9pt"
|
|
|
|
font-family="monospace"
|
|
|
|
margin-left="10mm">
|
|
|
|
<xsl:value-of select="value"/>
|
|
|
|
</fo:block>
|
2002-02-08 20:03:20 +00:00
|
|
|
</xsl:for-each>
|
2002-09-14 19:14:17 +01:00
|
|
|
</xsl:if>
|
2002-02-08 20:03:20 +00:00
|
|
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="logtalk/relations">
|
2005-04-23 00:57:45 +01:00
|
|
|
<fo:block
|
|
|
|
font-size="10pt"
|
|
|
|
font-family="serif"
|
|
|
|
space-before="4pt">
|
|
|
|
</fo:block>
|
2002-02-08 20:03:20 +00:00
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="*">
|
|
|
|
<xsl:if test="implements">
|
|
|
|
<fo:block
|
|
|
|
font-size="10pt"
|
|
|
|
font-family="serif"
|
|
|
|
keep-with-next="always">
|
|
|
|
implements:
|
|
|
|
</fo:block>
|
|
|
|
<xsl:apply-templates select="implements"/>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="imports">
|
|
|
|
<fo:block
|
|
|
|
font-size="10pt"
|
|
|
|
font-family="serif"
|
|
|
|
keep-with-next="always">
|
|
|
|
imports:
|
|
|
|
</fo:block>
|
|
|
|
<xsl:apply-templates select="imports"/>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="extends">
|
|
|
|
<fo:block
|
|
|
|
font-size="10pt"
|
|
|
|
font-family="serif"
|
|
|
|
keep-with-next="always">
|
|
|
|
extends:
|
|
|
|
</fo:block>
|
|
|
|
<xsl:apply-templates select="extends"/>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="instantiates">
|
|
|
|
<fo:block
|
|
|
|
font-size="10pt"
|
|
|
|
font-family="serif"
|
|
|
|
keep-with-next="always">
|
|
|
|
instantiates:
|
|
|
|
</fo:block>
|
|
|
|
<xsl:apply-templates select="instantiates"/>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="specializes">
|
|
|
|
<fo:block
|
|
|
|
font-size="10pt"
|
|
|
|
font-family="serif"
|
|
|
|
keep-with-next="always">
|
|
|
|
specializes:
|
|
|
|
</fo:block>
|
|
|
|
<xsl:apply-templates select="specializes"/>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="uses">
|
|
|
|
<fo:block
|
|
|
|
font-size="10pt"
|
|
|
|
font-family="serif"
|
|
|
|
keep-with-next="always">
|
|
|
|
uses:
|
|
|
|
</fo:block>
|
|
|
|
<xsl:apply-templates select="uses"/>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="calls">
|
|
|
|
<fo:block
|
|
|
|
font-size="10pt"
|
|
|
|
font-family="serif"
|
|
|
|
keep-with-next="always">
|
|
|
|
calls:
|
|
|
|
</fo:block>
|
|
|
|
<xsl:apply-templates select="calls"/>
|
|
|
|
</xsl:if>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<fo:block
|
2005-04-23 00:57:45 +01:00
|
|
|
font-size="10pt"
|
2002-02-08 20:03:20 +00:00
|
|
|
font-family="serif"
|
2005-04-23 00:57:45 +01:00
|
|
|
font-style="italic"
|
|
|
|
space-before="4pt">
|
2002-02-08 20:03:20 +00:00
|
|
|
(no dependencies on other files)
|
|
|
|
</fo:block>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="logtalk/relations/uses">
|
|
|
|
<fo:block
|
|
|
|
font-size="9pt"
|
|
|
|
font-family="monospace"
|
2002-09-14 19:14:17 +01:00
|
|
|
margin-left="10mm">
|
2002-02-08 20:03:20 +00:00
|
|
|
<xsl:value-of select="name"/>
|
|
|
|
</fo:block>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="logtalk/relations/calls">
|
|
|
|
<fo:block
|
|
|
|
font-size="9pt"
|
|
|
|
font-family="monospace"
|
2002-09-14 19:14:17 +01:00
|
|
|
margin-left="10mm">
|
2002-02-08 20:03:20 +00:00
|
|
|
<xsl:value-of select="name"/>
|
|
|
|
</fo:block>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="logtalk/relations/*">
|
|
|
|
<fo:block
|
|
|
|
font-size="9pt"
|
|
|
|
font-family="monospace"
|
2002-09-14 19:14:17 +01:00
|
|
|
margin-left="10mm">
|
2002-02-08 20:03:20 +00:00
|
|
|
<xsl:value-of select="scope"/><xsl:text> </xsl:text><xsl:value-of select="name"/>
|
|
|
|
</fo:block>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="logtalk/predicates">
|
|
|
|
|
|
|
|
<fo:block
|
|
|
|
font-size="14pt"
|
|
|
|
font-family="sans-serif"
|
|
|
|
font-weight="bold"
|
|
|
|
keep-with-next="always"
|
|
|
|
space-before="18pt">
|
|
|
|
Public interface
|
|
|
|
</fo:block>
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="public/predicate">
|
|
|
|
<xsl:apply-templates select="public/predicate"/>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:when test="/logtalk/relations/*">
|
|
|
|
<fo:block
|
|
|
|
font-size="10pt"
|
|
|
|
font-family="serif"
|
|
|
|
font-style="italic"
|
|
|
|
space-before="10pt">
|
|
|
|
(see related entities)
|
|
|
|
</fo:block>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<fo:block
|
|
|
|
font-size="10pt"
|
|
|
|
font-family="serif"
|
|
|
|
font-style="italic"
|
|
|
|
space-before="10pt">
|
|
|
|
(none)
|
|
|
|
</fo:block>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
|
|
|
|
<fo:block
|
|
|
|
font-size="14pt"
|
|
|
|
font-family="sans-serif"
|
|
|
|
font-weight="bold"
|
|
|
|
keep-with-next="always"
|
|
|
|
space-before="18pt">
|
|
|
|
Protected interface
|
|
|
|
</fo:block>
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="protected/predicate">
|
|
|
|
<xsl:apply-templates select="protected/predicate"/>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:when test="/logtalk/relations/*">
|
|
|
|
<fo:block
|
|
|
|
font-size="10pt"
|
|
|
|
font-family="serif"
|
|
|
|
font-style="italic"
|
|
|
|
space-before="10pt">
|
|
|
|
(see related entities)
|
|
|
|
</fo:block>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<fo:block
|
|
|
|
font-size="10pt"
|
|
|
|
font-family="serif"
|
|
|
|
font-style="italic"
|
|
|
|
space-before="10pt">
|
|
|
|
(none)
|
|
|
|
</fo:block>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
|
|
|
|
<fo:block
|
|
|
|
font-size="14pt"
|
|
|
|
font-family="sans-serif"
|
|
|
|
font-weight="bold"
|
|
|
|
keep-with-next="always"
|
|
|
|
space-before="18pt">
|
|
|
|
Private predicates
|
|
|
|
</fo:block>
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="private/predicate">
|
|
|
|
<xsl:apply-templates select="private/predicate"/>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:when test="/logtalk/relations/*">
|
|
|
|
<fo:block
|
|
|
|
font-size="10pt"
|
|
|
|
font-family="serif"
|
|
|
|
font-style="italic"
|
|
|
|
space-before="10pt">
|
|
|
|
(see related entities)
|
|
|
|
</fo:block>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<fo:block
|
|
|
|
font-size="10pt"
|
|
|
|
font-family="serif"
|
|
|
|
font-style="italic"
|
|
|
|
space-before="10pt">
|
|
|
|
(none)
|
|
|
|
</fo:block>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="*/predicate">
|
|
|
|
|
|
|
|
<fo:block
|
|
|
|
font-size="12pt"
|
|
|
|
font-family="sans-serif"
|
|
|
|
font-weight="bold"
|
|
|
|
keep-with-next="always"
|
|
|
|
space-before="10pt">
|
|
|
|
<xsl:value-of select="name"/>
|
|
|
|
</fo:block>
|
|
|
|
|
|
|
|
<xsl:if test="comment">
|
|
|
|
<fo:block
|
2002-09-14 19:14:17 +01:00
|
|
|
margin-left="10mm"
|
2002-02-08 20:03:20 +00:00
|
|
|
font-size="10pt"
|
|
|
|
font-family="serif"
|
|
|
|
font-style="italic"
|
2002-09-14 19:14:17 +01:00
|
|
|
space-before="4pt"
|
|
|
|
space-after="8pt">
|
2002-02-08 20:03:20 +00:00
|
|
|
<xsl:value-of select="comment"/>
|
|
|
|
</fo:block>
|
|
|
|
</xsl:if>
|
|
|
|
|
2002-09-14 19:14:17 +01:00
|
|
|
<fo:block
|
|
|
|
font-size="10pt"
|
|
|
|
font-family="serif"
|
|
|
|
keep-with-next="always">
|
|
|
|
compilation:
|
|
|
|
</fo:block>
|
|
|
|
<fo:block
|
|
|
|
font-size="9pt"
|
|
|
|
font-family="monospace"
|
|
|
|
margin-left="10mm">
|
|
|
|
<xsl:value-of select="compilation"/>
|
|
|
|
</fo:block>
|
|
|
|
|
|
|
|
<xsl:if test="template">
|
|
|
|
<fo:block
|
|
|
|
font-size="10pt"
|
|
|
|
font-family="serif"
|
2005-04-23 00:57:45 +01:00
|
|
|
keep-with-next="always"
|
|
|
|
space-before="4pt">
|
2002-09-14 19:14:17 +01:00
|
|
|
template:
|
|
|
|
</fo:block>
|
|
|
|
<fo:block
|
|
|
|
font-size="9pt"
|
|
|
|
font-family="monospace"
|
|
|
|
margin-left="10mm">
|
|
|
|
<xsl:value-of select="template"/>
|
|
|
|
</fo:block>
|
|
|
|
</xsl:if>
|
|
|
|
|
2005-04-23 00:57:45 +01:00
|
|
|
<xsl:if test="arguments">
|
|
|
|
<fo:block
|
|
|
|
font-size="9pt"
|
|
|
|
font-family="monospace"
|
|
|
|
margin-left="10mm"
|
|
|
|
space-before="4pt">
|
|
|
|
</fo:block>
|
|
|
|
<xsl:for-each select="arguments/argument">
|
|
|
|
<fo:block
|
|
|
|
margin-left="10mm">
|
|
|
|
<fo:inline font-size="9pt" font-family="monospace"><xsl:value-of select="name"/></fo:inline>
|
|
|
|
<fo:inline font-size="10pt" font-family="serif" font-style="italic"> - <xsl:value-of select="description"/></fo:inline>
|
|
|
|
</fo:block>
|
|
|
|
</xsl:for-each>
|
|
|
|
</xsl:if>
|
|
|
|
|
2002-09-14 19:14:17 +01:00
|
|
|
<xsl:if test="meta">
|
|
|
|
<fo:block
|
|
|
|
font-size="10pt"
|
|
|
|
font-family="serif"
|
2005-04-23 00:57:45 +01:00
|
|
|
keep-with-next="always"
|
|
|
|
space-before="4pt">
|
|
|
|
meta-predicate template:
|
2002-09-14 19:14:17 +01:00
|
|
|
</fo:block>
|
|
|
|
<fo:block
|
|
|
|
font-size="9pt"
|
|
|
|
font-family="monospace"
|
|
|
|
margin-left="10mm">
|
|
|
|
<xsl:value-of select="meta"/>
|
|
|
|
</fo:block>
|
|
|
|
</xsl:if>
|
|
|
|
|
|
|
|
<xsl:if test="mode">
|
|
|
|
<fo:block
|
|
|
|
font-size="10pt"
|
|
|
|
font-family="serif"
|
2005-04-23 00:57:45 +01:00
|
|
|
keep-with-next="always"
|
|
|
|
space-before="4pt">
|
2002-09-14 19:14:17 +01:00
|
|
|
mode - number of solutions:
|
|
|
|
</fo:block>
|
|
|
|
<xsl:for-each select="mode">
|
|
|
|
<fo:block
|
|
|
|
font-size="9pt"
|
|
|
|
font-family="monospace"
|
|
|
|
margin-left="10mm">
|
|
|
|
<xsl:value-of select="template"/> - <xsl:value-of select="solutions"/>
|
|
|
|
</fo:block>
|
|
|
|
</xsl:for-each>
|
|
|
|
</xsl:if>
|
2002-02-08 20:03:20 +00:00
|
|
|
|
2004-06-06 23:46:45 +01:00
|
|
|
<xsl:if test="exceptions">
|
|
|
|
<fo:block
|
|
|
|
font-size="10pt"
|
|
|
|
font-family="serif"
|
2005-04-23 00:57:45 +01:00
|
|
|
keep-with-next="always"
|
|
|
|
space-before="4pt">
|
2004-06-06 23:46:45 +01:00
|
|
|
exceptions:
|
|
|
|
</fo:block>
|
|
|
|
<xsl:for-each select="exceptions/exception">
|
|
|
|
<fo:block
|
|
|
|
font-size="10pt"
|
|
|
|
font-family="serif"
|
|
|
|
keep-with-next="always"
|
|
|
|
margin-left="10mm">
|
|
|
|
<xsl:value-of select="condition" />:
|
|
|
|
</fo:block>
|
|
|
|
<fo:block
|
|
|
|
font-size="9pt"
|
|
|
|
font-family="monospace"
|
|
|
|
margin-left="20mm">
|
|
|
|
<xsl:value-of select="term" />
|
|
|
|
</fo:block>
|
|
|
|
</xsl:for-each>
|
|
|
|
</xsl:if>
|
|
|
|
|
2005-04-23 00:57:45 +01:00
|
|
|
<xsl:if test="examples">
|
|
|
|
<fo:block
|
|
|
|
font-size="10pt"
|
|
|
|
font-family="serif"
|
|
|
|
keep-with-next="always"
|
|
|
|
space-before="4pt">
|
|
|
|
examples:
|
|
|
|
</fo:block>
|
|
|
|
<xsl:for-each select="examples/example">
|
|
|
|
<fo:block
|
|
|
|
font-size="10pt"
|
|
|
|
font-family="serif"
|
|
|
|
font-style="italic"
|
|
|
|
keep-with-next="always"
|
|
|
|
margin-left="10mm">
|
|
|
|
<xsl:value-of select="description" />
|
|
|
|
</fo:block>
|
|
|
|
<fo:block
|
|
|
|
font-size="9pt"
|
|
|
|
font-family="monospace"
|
|
|
|
margin-left="20mm">
|
|
|
|
<xsl:value-of select="call" />
|
|
|
|
</fo:block>
|
|
|
|
<fo:block
|
|
|
|
font-size="9pt"
|
|
|
|
font-family="monospace"
|
|
|
|
margin-left="20mm"
|
|
|
|
space-after="4pt">
|
|
|
|
<xsl:value-of select="bindings" />
|
|
|
|
</fo:block>
|
|
|
|
</xsl:for-each>
|
|
|
|
</xsl:if>
|
|
|
|
|
2002-02-08 20:03:20 +00:00
|
|
|
<xsl:if test="info">
|
2002-09-14 19:14:17 +01:00
|
|
|
<xsl:for-each select="info">
|
|
|
|
<fo:block
|
|
|
|
font-size="10pt"
|
|
|
|
font-family="serif"
|
2005-04-23 00:57:45 +01:00
|
|
|
keep-with-next="always"
|
|
|
|
space-before="4pt">
|
2004-06-06 23:46:45 +01:00
|
|
|
<xsl:value-of select="key"/>:
|
|
|
|
</fo:block>
|
2002-09-14 19:14:17 +01:00
|
|
|
<fo:block
|
|
|
|
font-size="9pt"
|
|
|
|
font-family="monospace"
|
|
|
|
margin-left="10mm">
|
|
|
|
<xsl:value-of select="value"/>
|
|
|
|
</fo:block>
|
|
|
|
</xsl:for-each>
|
2002-02-08 20:03:20 +00:00
|
|
|
</xsl:if>
|
|
|
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
2005-04-23 00:57:45 +01:00
|
|
|
<xsl:template match="logtalk/remarks">
|
|
|
|
|
|
|
|
<fo:block
|
|
|
|
font-size="14pt"
|
|
|
|
font-family="sans-serif"
|
|
|
|
font-weight="bold"
|
|
|
|
keep-with-next="always"
|
|
|
|
space-before="18pt">
|
|
|
|
Remarks
|
|
|
|
</fo:block>
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="*">
|
|
|
|
<xsl:for-each select="remark">
|
|
|
|
<fo:block
|
|
|
|
font-size="10pt"
|
|
|
|
font-family="serif"
|
|
|
|
font-style="italic"
|
|
|
|
keep-with-next="always"
|
|
|
|
space-before="10pt">
|
|
|
|
<xsl:value-of select="topic" />
|
|
|
|
</fo:block>
|
|
|
|
<fo:block
|
|
|
|
font-size="10pt"
|
|
|
|
font-family="serif"
|
|
|
|
margin-left="10mm">
|
|
|
|
<xsl:value-of select="text" />
|
|
|
|
</fo:block>
|
|
|
|
</xsl:for-each>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<fo:block
|
|
|
|
font-size="10pt"
|
|
|
|
font-family="serif"
|
|
|
|
font-style="italic"
|
|
|
|
space-before="10pt">
|
|
|
|
(none)
|
|
|
|
</fo:block>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
2002-02-08 20:03:20 +00:00
|
|
|
</xsl:stylesheet>
|