Ticket #3282: ess.xsl

File ess.xsl, 766 bytes (added by Pierre Labastie, 12 years ago)
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 version="1.0">
4
5 <xsl:template match="/">
6 <xsl:apply-templates select="//para[@role='required'] |
7 para[@role='recommended'] |
8 para[@role='optional']"/>
9 </xsl:template>
10
11 <xsl:template match="para">
12 <xsl:if test="translate(preceding-sibling::bridgehead[1],'RO','ro') != @role">
13 <xsl:message>In <xsl:value-of
14 select="ancestor::sect1/@xreflabel"/>, the <xsl:value-of
15 select="preceding-sibling::bridgehead[1]"/> dependencies appear with a
16role of <xsl:value-of select="@role"/>.</xsl:message>
17 </xsl:if>
18 </xsl:template>
19</xsl:stylesheet>