style-3c-NOM-PREP-NOM-gr.xsl
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:output method="html"/> <xsl:template match="/"> <html> <head> <title>Les rubriques Culture et Livres sur lemonde.fr</title> <meta http-equiv="content-type" content="text/html; charset=windows-1250"></meta> </head> <body bgcolor="#5EC3FB" text="#12162E" link="#B40002" alink="#0C340C" vlink="#67284C"> <body background ="./IMAGES/rss-news.jpg"><table align="center" width="90%" bgcolor="white" bordercolor="#3300FF" border="1"> <tr bgcolor="#12162E"> <td width="90%" valign="top" align="center" colspan="4"><font color="white"><h1><u>Extraction de patrons</u>: /professions</h1><h1><font color="red"><b> NOM</b></font> <font color="green"><b> PREP</b></font> <font color="blue"><b> NOM</b></font></h1></font></td> </tr> <tr><td width="90%" valign="top" align="center" colspan="4"><img src="./IMAGES/NPN-gr.jpg" alt="Graphe de Mots autour du motif: MOTIF=(iste)\b"/></td></tr> <tr bgcolor="#12162E"> <td width="45%" valign="top" align="center" colspan="2"><font color="white"><h1>Culture</h1></font></td> <td width="45%" valign="top" align="center" colspan="2"><font color="white"><h1>Livres</h1></font></td> </tr> <tr bgcolor="#12162E"> <td width="25%" valign="top" align="center"><font color="white"><h1>TreeTagger</h1></font></td> <td width="25%" valign="top" align="center"><font color="white"><h1>Cordial</h1></font></td> <td width="25%" valign="top" align="center"><font color="white"><h1>TreeTagger</h1></font></td> <td width="25%" valign="top" align="center"><font color="white"><h1>Cordial</h1></font></td> </tr> <tr> <td width="25%" valign="top" align="center"><xsl:apply-templates select="./document/culture/TreeTagger/element"/></td> <td width="25%" valign="top" align="center"><xsl:apply-templates select="./document/culture/Cordial/element"/></td> <td width="25%" valign="top" align="center"><xsl:apply-templates select="./document/livres/TreeTagger/element"/></td> <td width="25%" valign="top" align="center"><xsl:apply-templates select="./document/livres/Cordial/element"/></td> </tr> </table> <p><a href="./index.htm"><img src="./IMAGES/index.gif"></img></a></p> </body> </body> </html> </xsl:template>
<xsl:template match="element"> <xsl:choose>
<xsl:when test="((./data[contains(text(),'phe')]) and (./data[contains(text(),'NOM')]) and (following-sibling::element[1][(./data[contains(text(),'PRP')])]) and (following-sibling::element[2][(./data[contains(text(),'NOM')])])) or ((./data[contains(text(),'NOM')]) and (following-sibling::element[1][(./data[contains(text(),'PRP')])]) and (following-sibling::element[2][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'phe')])]))"> <font color="red"><xsl:value-of select="./data[3]"/></font><xsl:text> </xsl:text> </xsl:when> <xsl:when test="((./data[contains(text(),'PRP')]) and (preceding-sibling::element[1][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'phe')])]) and (following-sibling::element[1][(./data[contains(text(),'NOM')])])) or ((./data[contains(text(),'PRP')]) and (preceding-sibling::element[1][(./data[contains(text(),'NOM')])]) and (following-sibling::element[1][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'phe')])]))"> <font color="green"><xsl:value-of select="./data[3]"/></font><xsl:text> </xsl:text> </xsl:when> <xsl:when test="(((./data[contains(text(),'phe')]) and (./data[contains(text(),'NOM')])) and (preceding-sibling::element[1][(./data[contains(text(),'PRP')])]) and (preceding-sibling::element[2][(./data[contains(text(),'NOM')])])) or ((./data[contains(text(),'NOM')]) and (preceding-sibling::element[1][(./data[contains(text(),'PRP')])]) and (preceding-sibling::element[2][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'phe')])]))"> <font color="blue"><xsl:value-of select="./data[3]"/></font><br/> </xsl:when>
<xsl:when test="((./data[contains(text(),'ste')]) and (./data[contains(text(),'NOM')]) and (following-sibling::element[1][(./data[contains(text(),'PRP')])]) and (following-sibling::element[2][(./data[contains(text(),'NOM')])])) or ((./data[contains(text(),'NOM')]) and (following-sibling::element[1][(./data[contains(text(),'PRP')])]) and (following-sibling::element[2][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'ste')])]))"> <font color="red"><xsl:value-of select="./data[3]"/></font><xsl:text> </xsl:text> </xsl:when> <xsl:when test="((./data[contains(text(),'PRP')]) and (preceding-sibling::element[1][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'ste')])]) and (following-sibling::element[1][(./data[contains(text(),'NOM')])])) or ((./data[contains(text(),'PRP')]) and (preceding-sibling::element[1][(./data[contains(text(),'NOM')])]) and (following-sibling::element[1][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'ste')])]))"> <font color="green"><xsl:value-of select="./data[3]"/></font><xsl:text> </xsl:text> </xsl:when> <xsl:when test="(((./data[contains(text(),'ste')]) and (./data[contains(text(),'NOM')])) and (preceding-sibling::element[1][(./data[contains(text(),'PRP')])]) and (preceding-sibling::element[2][(./data[contains(text(),'NOM')])])) or ((./data[contains(text(),'NOM')]) and (preceding-sibling::element[1][(./data[contains(text(),'PRP')])]) and (preceding-sibling::element[2][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'ste')])]))"> <font color="blue"><xsl:value-of select="./data[3]"/></font><br/> </xsl:when>
<xsl:when test="((./data[contains(text(),'eur')]) and (./data[contains(text(),'NOM')]) and (following-sibling::element[1][(./data[contains(text(),'PRP')])]) and (following-sibling::element[2][(./data[contains(text(),'NOM')])])) or ((./data[contains(text(),'NOM')]) and (following-sibling::element[1][(./data[contains(text(),'PRP')])]) and (following-sibling::element[2][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'eur')])]))"> <font color="red"><xsl:value-of select="./data[3]"/></font><xsl:text> </xsl:text> </xsl:when> <xsl:when test="((./data[contains(text(),'PRP')]) and (preceding-sibling::element[1][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'eur')])]) and (following-sibling::element[1][(./data[contains(text(),'NOM')])])) or ((./data[contains(text(),'PRP')]) and (preceding-sibling::element[1][(./data[contains(text(),'NOM')])]) and (following-sibling::element[1][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'eur')])]))"> <font color="green"><xsl:value-of select="./data[3]"/></font><xsl:text> </xsl:text> </xsl:when> <xsl:when test="(((./data[contains(text(),'eur')]) and (./data[contains(text(),'NOM')])) and (preceding-sibling::element[1][(./data[contains(text(),'PRP')])]) and (preceding-sibling::element[2][(./data[contains(text(),'NOM')])])) or ((./data[contains(text(),'NOM')]) and (preceding-sibling::element[1][(./data[contains(text(),'PRP')])]) and (preceding-sibling::element[2][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'eur')])]))"> <font color="blue"><xsl:value-of select="./data[3]"/></font><br/> </xsl:when>
<xsl:when test="((./data[contains(text(),'cier')]) and (./data[contains(text(),'NOM')]) and (following-sibling::element[1][(./data[contains(text(),'PRP')])]) and (following-sibling::element[2][(./data[contains(text(),'NOM')])])) or ((./data[contains(text(),'NOM')]) and (following-sibling::element[1][(./data[contains(text(),'PRP')])]) and (following-sibling::element[2][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'cier')])]))"> <font color="red"><xsl:value-of select="./data[3]"/></font><xsl:text> </xsl:text> </xsl:when> <xsl:when test="((./data[contains(text(),'PRP')]) and (preceding-sibling::element[1][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'cier')])]) and (following-sibling::element[1][(./data[contains(text(),'NOM')])])) or ((./data[contains(text(),'PRP')]) and (preceding-sibling::element[1][(./data[contains(text(),'NOM')])]) and (following-sibling::element[1][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'cier')])]))"> <font color="green"><xsl:value-of select="./data[3]"/></font><xsl:text> </xsl:text> </xsl:when> <xsl:when test="(((./data[contains(text(),'cier')]) and (./data[contains(text(),'NOM')])) and (preceding-sibling::element[1][(./data[contains(text(),'PRP')])]) and (preceding-sibling::element[2][(./data[contains(text(),'NOM')])])) or ((./data[contains(text(),'NOM')]) and (preceding-sibling::element[1][(./data[contains(text(),'PRP')])]) and (preceding-sibling::element[2][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'cier')])]))"> <font color="blue"><xsl:value-of select="./data[3]"/></font><br/> </xsl:when>
<xsl:when test="((./data[contains(text(),'vain')]) and (./data[contains(text(),'NOM')]) and (following-sibling::element[1][(./data[contains(text(),'PRP')])]) and (following-sibling::element[2][(./data[contains(text(),'NOM')])])) or ((./data[contains(text(),'NOM')]) and (following-sibling::element[1][(./data[contains(text(),'PRP')])]) and (following-sibling::element[2][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'vain')])]))"> <font color="red"><xsl:value-of select="./data[3]"/></font><xsl:text> </xsl:text> </xsl:when> <xsl:when test="((./data[contains(text(),'PRP')]) and (preceding-sibling::element[1][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'vain')])]) and (following-sibling::element[1][(./data[contains(text(),'NOM')])])) or ((./data[contains(text(),'PRP')]) and (preceding-sibling::element[1][(./data[contains(text(),'NOM')])]) and (following-sibling::element[1][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'vain')])]))"> <font color="green"><xsl:value-of select="./data[3]"/></font><xsl:text> </xsl:text> </xsl:when> <xsl:when test="(((./data[contains(text(),'vain')]) and (./data[contains(text(),'NOM')])) and (preceding-sibling::element[1][(./data[contains(text(),'PRP')])]) and (preceding-sibling::element[2][(./data[contains(text(),'NOM')])])) or ((./data[contains(text(),'NOM')]) and (preceding-sibling::element[1][(./data[contains(text(),'PRP')])]) and (preceding-sibling::element[2][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'vain')])]))"> <font color="blue"><xsl:value-of select="./data[3]"/></font><br/> </xsl:when>
<xsl:when test="((./data[contains(text(),'euse')]) and (./data[contains(text(),'NOM')]) and (following-sibling::element[1][(./data[contains(text(),'PRP')])]) and (following-sibling::element[2][(./data[contains(text(),'NOM')])])) or ((./data[contains(text(),'NOM')]) and (following-sibling::element[1][(./data[contains(text(),'PRP')])]) and (following-sibling::element[2][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'euse')])]))"> <font color="red"><xsl:value-of select="./data[3]"/></font><xsl:text> </xsl:text> </xsl:when> <xsl:when test="((./data[contains(text(),'PRP')]) and (preceding-sibling::element[1][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'euse')])]) and (following-sibling::element[1][(./data[contains(text(),'NOM')])])) or ((./data[contains(text(),'PRP')]) and (preceding-sibling::element[1][(./data[contains(text(),'NOM')])]) and (following-sibling::element[1][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'euse')])]))"> <font color="green"><xsl:value-of select="./data[3]"/></font><xsl:text> </xsl:text> </xsl:when> <xsl:when test="(((./data[contains(text(),'euse')]) and (./data[contains(text(),'NOM')])) and (preceding-sibling::element[1][(./data[contains(text(),'PRP')])]) and (preceding-sibling::element[2][(./data[contains(text(),'NOM')])])) or ((./data[contains(text(),'NOM')]) and (preceding-sibling::element[1][(./data[contains(text(),'PRP')])]) and (preceding-sibling::element[2][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'euse')])]))"> <font color="blue"><xsl:value-of select="./data[3]"/></font><br/> </xsl:when>
<xsl:when test="((./data[contains(text(),'urge')]) and (./data[contains(text(),'NOM')]) and (following-sibling::element[1][(./data[contains(text(),'PRP')])]) and (following-sibling::element[2][(./data[contains(text(),'NOM')])])) or ((./data[contains(text(),'NOM')]) and (following-sibling::element[1][(./data[contains(text(),'PRP')])]) and (following-sibling::element[2][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'urge')])]))"> <font color="red"><xsl:value-of select="./data[3]"/></font><xsl:text> </xsl:text> </xsl:when> <xsl:when test="((./data[contains(text(),'PRP')]) and (preceding-sibling::element[1][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'urge')])]) and (following-sibling::element[1][(./data[contains(text(),'NOM')])])) or ((./data[contains(text(),'PRP')]) and (preceding-sibling::element[1][(./data[contains(text(),'NOM')])]) and (following-sibling::element[1][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'urge')])]))"> <font color="green"><xsl:value-of select="./data[3]"/></font><xsl:text> </xsl:text> </xsl:when> <xsl:when test="(((./data[contains(text(),'urge')]) and (./data[contains(text(),'NOM')])) and (preceding-sibling::element[1][(./data[contains(text(),'PRP')])]) and (preceding-sibling::element[2][(./data[contains(text(),'NOM')])])) or ((./data[contains(text(),'NOM')]) and (preceding-sibling::element[1][(./data[contains(text(),'PRP')])]) and (preceding-sibling::element[2][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'urge')])]))"> <font color="blue"><xsl:value-of select="./data[3]"/></font><br/> </xsl:when>
<xsl:when test="((./data[contains(text(),'ien')]) and (./data[contains(text(),'NOM')]) and (following-sibling::element[1][(./data[contains(text(),'PRP')])]) and (following-sibling::element[2][(./data[contains(text(),'NOM')])])) or ((./data[contains(text(),'NOM')]) and (following-sibling::element[1][(./data[contains(text(),'PRP')])]) and (following-sibling::element[2][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'ien')])]))"> <font color="red"><xsl:value-of select="./data[3]"/></font><xsl:text> </xsl:text> </xsl:when> <xsl:when test="((./data[contains(text(),'PRP')]) and (preceding-sibling::element[1][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'ien')])]) and (following-sibling::element[1][(./data[contains(text(),'NOM')])])) or ((./data[contains(text(),'PRP')]) and (preceding-sibling::element[1][(./data[contains(text(),'NOM')])]) and (following-sibling::element[1][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'ien')])]))"> <font color="green"><xsl:value-of select="./data[3]"/></font><xsl:text> </xsl:text> </xsl:when> <xsl:when test="(((./data[contains(text(),'ien')]) and (./data[contains(text(),'NOM')])) and (preceding-sibling::element[1][(./data[contains(text(),'PRP')])]) and (preceding-sibling::element[2][(./data[contains(text(),'NOM')])])) or ((./data[contains(text(),'NOM')]) and (preceding-sibling::element[1][(./data[contains(text(),'PRP')])]) and (preceding-sibling::element[2][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'ien')])]))"> <font color="blue"><xsl:value-of select="./data[3]"/></font><br/> </xsl:when>
<xsl:when test="((./data[contains(text(),'tre')]) and (./data[contains(text(),'NOM')]) and (following-sibling::element[1][(./data[contains(text(),'PRP')])]) and (following-sibling::element[2][(./data[contains(text(),'NOM')])])) or ((./data[contains(text(),'NOM')]) and (following-sibling::element[1][(./data[contains(text(),'PRP')])]) and (following-sibling::element[2][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'tre')])]))"> <font color="red"><xsl:value-of select="./data[3]"/></font><xsl:text> </xsl:text> </xsl:when> <xsl:when test="((./data[contains(text(),'PRP')]) and (preceding-sibling::element[1][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'tre')])]) and (following-sibling::element[1][(./data[contains(text(),'NOM')])])) or ((./data[contains(text(),'PRP')]) and (preceding-sibling::element[1][(./data[contains(text(),'NOM')])]) and (following-sibling::element[1][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'tre')])]))"> <font color="green"><xsl:value-of select="./data[3]"/></font><xsl:text> </xsl:text> </xsl:when> <xsl:when test="(((./data[contains(text(),'tre')]) and (./data[contains(text(),'NOM')])) and (preceding-sibling::element[1][(./data[contains(text(),'PRP')])]) and (preceding-sibling::element[2][(./data[contains(text(),'NOM')])])) or ((./data[contains(text(),'NOM')]) and (preceding-sibling::element[1][(./data[contains(text(),'PRP')])]) and (preceding-sibling::element[2][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'tre')])]))"> <font color="blue"><xsl:value-of select="./data[3]"/></font><br/> </xsl:when>
<xsl:when test="((./data[contains(text(),'chef')]) and (./data[contains(text(),'NOM')]) and (following-sibling::element[1][(./data[contains(text(),'PRP')])]) and (following-sibling::element[2][(./data[contains(text(),'NOM')])])) or ((./data[contains(text(),'NOM')]) and (following-sibling::element[1][(./data[contains(text(),'PRP')])]) and (following-sibling::element[2][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'chef')])]))"> <font color="red"><xsl:value-of select="./data[3]"/></font><xsl:text> </xsl:text> </xsl:when> <xsl:when test="((./data[contains(text(),'PRP')]) and (preceding-sibling::element[1][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'chef')])]) and (following-sibling::element[1][(./data[contains(text(),'NOM')])])) or ((./data[contains(text(),'PRP')]) and (preceding-sibling::element[1][(./data[contains(text(),'NOM')])]) and (following-sibling::element[1][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'chef')])]))"> <font color="green"><xsl:value-of select="./data[3]"/></font><xsl:text> </xsl:text> </xsl:when> <xsl:when test="(((./data[contains(text(),'chef')]) and (./data[contains(text(),'NOM')])) and (preceding-sibling::element[1][(./data[contains(text(),'PRP')])]) and (preceding-sibling::element[2][(./data[contains(text(),'NOM')])])) or ((./data[contains(text(),'NOM')]) and (preceding-sibling::element[1][(./data[contains(text(),'PRP')])]) and (preceding-sibling::element[2][(./data[contains(text(),'NOM')]) and (./data[contains(text(),'chef')])]))"> <font color="blue"><xsl:value-of select="./data[3]"/></font><br/> </xsl:when>
</xsl:choose> </xsl:template> </xsl:stylesheet>