| <?xml version="1.0" encoding="utf-8"?> |
| <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
| <xsl:template match="directive"> |
| <!-- <center><h4><xsl:value-of select="@name"/> </h4></center> --> |
| <xsl:apply-templates select="syntax"/> |
| <xsl:apply-templates select="default"/> |
| <xsl:apply-templates select="context"/> |
| <xsl:if test="(@appeared-in)"> |
| <strong>appeared in version</strong>: |
| <xsl:value-of select="@appeared-in"/> |
| <xsl:apply-templates select="para"/> |
| <xsl:template match="syntax"> |
| <xsl:when test="position() = 1"> |
| <xsl:template match="default"> |
| <strong>default</strong>: |
| <xsl:when test="count(text()) = 0"> |
| <xsl:template match="context"> |
| <xsl:if test="position() = 1"> |
| <strong>context</strong>: |
| <xsl:when test="count(text()) = 0"> |
| <xsl:when test="position() != last()"> |