Tryag File Manager
Home
-
Turbo Force
Current Path :
/
proc
/
self
/
root
/
home
/
cluster1
/
data
/
bu01
/
1121861
/
html
/
lex
/
Upload File :
New :
File
Dir
//proc/self/root/home/cluster1/data/bu01/1121861/html/lex/senses.xsl
<?xml version="1.0" encoding="iso-8859-1"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" > <xsl:variable name="lcletters">abcdefghijklmnopqrstuvwxyzáéíóú</xsl:variable> <xsl:variable name="ucletters">ABCDEFGHIJKLMNOPQRSTUVWXYZÁÉÍÓÚ</xsl:variable> <xsl:template match="nlao | nla | nlo | nbao | nba | nbo"> <xsl:variable name="val"><xsl:value-of select="."/></xsl:variable> <xsl:text> </xsl:text> <a> <xsl:attribute name="href"> <xsl:value-of select="concat('../php/query_result.php4?database=ActiveNahuatl_2005&function=word_search&stylesheet=../lex/search_result.xsl&word=',$val,'&fields=lxa,lxo')"/> </xsl:attribute> <xsl:value-of select="."/></a> <xsl:text> </xsl:text> </xsl:template> <xsl:template match="nao | na | no | n | nr | nt | e | spn"> <xsl:text> </xsl:text> <i><xsl:value-of select="."/></i> <xsl:text> </xsl:text> </xsl:template> <xsl:template match="se"> <xsl:apply-templates/> </xsl:template> <xsl:template match="sea"> <b><xsl-number value="position()"/> (Am) :</b> <xsl:apply-templates/> </xsl:template> <xsl:template match="seo"> <b><xsl-number value="position()"/> (Oa):</b> <xsl:apply-templates/> </xsl:template> <xsl:template match="seao"> <b><xsl-number value="position()"/> (Am/Oa) :</b> <xsl:apply-templates/> </xsl:template> <xsl:template match="pna"> <b><i>-- <xsl:apply-templates/></i></b> (Am) </xsl:template> <xsl:template match="pno"> <b><i>-- <xsl:apply-templates/></i></b> (Oa) </xsl:template> <xsl:template match="pea | peo"> | <xsl:apply-templates/> </xsl:template> <xsl:template match="pnagroup"> <xsl:apply-templates select="pna"/> <xsl:apply-templates select="pea"/> </xsl:template> <xsl:template match="pnogroup"> <xsl:apply-templates select="pno"/> <xsl:apply-templates select="peo"/> </xsl:template> <xsl:template match="segroup"> <xsl:text> </xsl:text><b><xsl:number value="position()"/> :</b><xsl:text> </xsl:text> <xsl:apply-templates select="se"/> </xsl:template> <xsl:template match="seagroup"> <xsl:text> </xsl:text><b><xsl:number value="position()"/> :</b><xsl:text> </xsl:text> <xsl:apply-templates select="sea"/> </xsl:template> <xsl:template match="seogroup"> <xsl:text> </xsl:text><b><xsl:number value="position()"/> :</b><xsl:text> </xsl:text> <xsl:apply-templates select="seo"/> </xsl:template> <xsl:template match="seaogroup"> <xsl:text> </xsl:text><b><xsl:number value="position()"/> :</b><xsl:text> </xsl:text> <xsl:apply-templates select="seao"/> </xsl:template> <xsl:template match="lxa | lxo"> <xsl:param name="dialect"/> <xsl:variable name="lxa"><xsl:apply-templates/></xsl:variable> <B><FONT SIZE='2' COLOR="#800040"><xsl:value-of select="translate($lxa,$lcletters,$ucletters)"/></FONT></B> <xsl:text> </xsl:text><xsl:value-of select="$dialect"/><xsl:text> </xsl:text> </xsl:template> <xsl:template match="lxaa | lxoa"> <xsl:param name="dialect"/> <FONT SIZE='2' style='arial'><B><xsl:apply-templates/></B> (<xsl:value-of select="$dialect"/>, alternate);</FONT> </xsl:template> <xsl:template match="lxac"> <xsl:param name="ref"/> <xsl:text> </xsl:text> <i><b><xsl:value-of select="."/></b></i><xsl:text> </xsl:text> <a><xsl:attribute name="href"><xsl:value-of select="concat('http://nahuatl.ldc.upenn.edu/sounds/lex/tokens/am/mp3/',$ref,'_am.mp3')"/></xsl:attribute> <img src='../../images/Iconmp3.jpg' height="15" width="15" BORDER="0"/></a> <xsl:text> </xsl:text> <a><xsl:attribute name="href"><xsl:value-of select="concat('http://nahuatl.ldc.upenn.edu/sounds/lex/tokens/am/wav/',$ref,'_am.wav')"/></xsl:attribute> <img src='../../images/Iconwave.jpg' height="15" width="15" BORDER="0"/></a>; </xsl:template> <xsl:template match="lxoc"> <xsl:param name="ref"/> <xsl:text> </xsl:text> <i><b><xsl:value-of select="."/></b></i> <xsl:text> </xsl:text> <a><xsl:attribute name="href"><xsl:value-of select="concat('http://nahuatl.ldc.upenn.edu/sounds/lex/tokens/oa/mp3/',$ref,'_oa.mp3')"/></xsl:attribute> <img src='../../images/Iconmp3.jpg' height="15" width="15" BORDER="0"/></a> <xsl:text> </xsl:text> <a><xsl:attribute name="href"><xsl:value-of select="concat('http://nahuatl.ldc.upenn.edu/sounds/lex/tokens/oa/wav/',$ref,'_oa.wav')"/></xsl:attribute> <img src='../../images/Iconwave.jpg' height="15" width="15" BORDER="0"/></a>; </xsl:template> <xsl:template match="loan | aff"> <xsl:param name="phrase"/> <font face="Arial" size="-1"><xsl:value-of select="$phrase"/>: <xsl:apply-templates/></font> </xsl:template> <xsl:template match="psm"> <xsl:param name="lxa"/> <xsl:param name="lxo"/> <xsl:variable name="val"><xsl:apply-templates/></xsl:variable> <font face="Arial" size="-1">PART OF SPEECH:</font> <xsl:text> </xsl:text> <a> <xsl:attribute name="href"> <xsl:value-of select="concat('../php/query_result.php4?database=ActiveNahuatl_2005&stylesheet=../lex/search_result.xsl&function=reg_exp&fields=psm&reg_exp=',$val)"/> </xsl:attribute> <xsl:value-of select="document('translations.xml')//psm/tag[@name=$val]"/> </a> ; <xsl:if test="contains($val,'V1') or contains($val,'V2') or contains($val,'V3') or contains($val,'V4') "> (Generate forms: Am | <a> <xsl:attribute name="href">xfst/verb_forms.php4?form=intrans&words=<xsl:value-of select="$lxa"/>_<xsl:value-of select="$lxo"/></xsl:attribute> <xsl:attribute name="target">parser</xsl:attribute> Oa</a>) </xsl:if> </xsl:template> <xsl:template match="refgroup"> <xsl:variable name="ref"><xsl:value-of select="ref"/></xsl:variable> <xsl:variable name="lxa"><xsl:value-of select="lxa"/></xsl:variable> <xsl:variable name="lxo"><xsl:value-of select="lxo"/></xsl:variable> <tr> <td colspan="2"> <xsl:apply-templates select="lxa"><xsl:with-param name="dialect" select="'(Am)'"/></xsl:apply-templates> <xsl:apply-templates select="lxaa"><xsl:with-param name="dialect" select="'Am'"/></xsl:apply-templates> <xsl:apply-templates select="lxac"><xsl:with-param name="ref" select="$ref"/></xsl:apply-templates> <xsl:apply-templates select="lxo"><xsl:with-param name="dialect" select="'(Oa)'"/></xsl:apply-templates> <xsl:apply-templates select="lxoa"><xsl:with-param name="dialect" select="'Oa'"/></xsl:apply-templates> <xsl:apply-templates select="lxoc"><xsl:with-param name="ref" select="$ref"/></xsl:apply-templates> </td> </tr> <tr> <td> <xsl:text> </xsl:text> </td> <td> <xsl:apply-templates select="segroup|seagroup|seogroup|seaogroup"/> </td> </tr> <tr><td><xsl:text> </xsl:text><br/></td><td/></tr> </xsl:template> <xsl:template name="make_page_bar"> <xsl:param name="page"/> <xsl:if test="$page*50 < //@num_results + 50"> <td> <a> <xsl:variable name="link" select="concat('../php/query_result.php4?database=ActiveNahuatl_2005&stylesheet=../lex/search_result.xsl&page=',$page)"/> <xsl:attribute name="href"><xsl:value-of select="$link"/></xsl:attribute> <xsl:value-of select="$page"/> </a> </td> <xsl:call-template name="make_page_bar"> <xsl:with-param name="page" select="$page+1"/> </xsl:call-template> </xsl:if> </xsl:template> <xsl:template match="/"> <html> <head> <title>The Nahuatl to English Dictionary of Ameyaltepec and San Agustín Oapan Nahuatl</title> </head> <body bgcolor="white" onLoad="window.focus()"> <img src="../../images/lexsearchresults.jpg" width="779" height="116" usemap="#Map" border="0"/> <map name="Map"> <area shape="rect" coords="1,2,57,29" href="../index.html" target="_top"/> <area shape="rect" coords="150,2,200,29" href="../tutorial/tutorial.htm" target="_top"/> <area shape="rect" coords="576,2,636,28" href="../lex/lexhome.htm" target="_top"/> <area shape="rect" coords="638,2,694,30" href="../gram/gramhome.htm" target="_top"/> <area shape="rect" coords="695,2,781,29" href="../ency/encyhome.htm" target="_top"/> </map> <hr align="left" width="780" size="2" color="#800000"/> <br/> <xsl:variable name="num_results" select="//RESULTSET/@num_results"/> <b>The query returned <xsl:value-of select="$num_results"/> hits. </b><br/> <xsl:variable name="page" select="//RESULTSET/@page"/> <xsl:variable name="first" select="$page*50-49"/> <xsl:variable name="last" select="$first + 49"/> <b>Displaying Hits: <xsl:value-of select="$first"/><xsl:text> - </xsl:text> <xsl:choose> <xsl:when test="$num_results < $last"><xsl:value-of select="$num_results"/></xsl:when> <xsl:otherwise><xsl:value-of select="$last"/></xsl:otherwise> </xsl:choose> </b><br/> <table align="left"> <tr> <td nowrap="1"><b>Total pages:</b></td> <xsl:call-template name="make_page_bar"> <xsl:with-param name="page" select="1"/> </xsl:call-template> </tr> </table> <br/> <br/> <table cellspacing='0' cellpadding='0' width='800'> <xsl:apply-templates select="//refgroup"/> </table> <hr align="left" width="780" size="2" color="#800000"/> <center> <table> <tr> <xsl:call-template name="make_page_bar"> <xsl:with-param name="page" select="1"/> </xsl:call-template> </tr> </table> </center> <br/><br/> <center> <table width="780" border="0"> <tr> <td> <div align="center"> <p><a href="../lex/query.xml"><img src="../../images/Back2.gif" width="60" height="60" border="0"/></a></p> <center> <b><font size="3" face="Arial" color="#D46702">Click to return to search page!</font></b> </center> </div> </td> </tr> </table> </center> </body> </html> </xsl:template> </xsl:stylesheet>