Tryag File Manager
Home
-
Turbo Force
Current Path :
/
home
/
cluster1
/
data
/
bu01
/
1121861
/
html
/
lex
/
Upload File :
New :
File
Dir
/home/cluster1/data/bu01/1121861/html/lex/search_result.xsl_6-6-05
<?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:variable name="accents">áéíóú</xsl:variable> <xsl:variable name="no_accents">aeiou</xsl:variable> <xsl:template match="nlao | nla | nlo | nbao | nba | nbo"> <xsl:variable name="val"><xsl:value-of select="."/></xsl:variable> <xsl:variable name="no_accents_val"><xsl:value-of select="translate($val,$accents,$no_accents)"/></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=',$no_accents_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:apply-templates select="pnagroup"/> <xsl:apply-templates select="pnogroup"/> </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:apply-templates select="pnagroup"/> <xsl:apply-templates select="pnogroup"/> </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:apply-templates select="pnagroup"/> <xsl:apply-templates select="pnogroup"/> </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:apply-templates select="pnagroup"/> <xsl:apply-templates select="pnogroup"/> </xsl:template> <xsl:template match="lxa | lxo"> <xsl:param name="dialect"/> <xsl:variable name="word"><xsl:apply-templates/></xsl:variable> <B><FONT SIZE='2' COLOR="#800040"><xsl:value-of select="translate($word,$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"/> <xsl:variable name="word"><xsl:apply-templates/></xsl:variable> <B><FONT SIZE='2' COLOR="#800040"><xsl:value-of select="translate($word,$lcletters,$ucletters)"/></FONT></B> <xsl:text> (</xsl:text><xsl:value-of select="$dialect"/>, alternate);<xsl:text> </xsl:text> </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_dir/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="der"> <xsl:variable name="val"><xsl:apply-templates/></xsl:variable> <font face="Arial" size="-1">DERIVATION OF RIGHTMOST ELEMENT</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=der&reg_exp=^',$val,'$')"/> </xsl:attribute> <xsl:variable name="trans" select="document('translations.xml')//der/tag[@name=$val]"/> <xsl:choose> <xsl:when test="boolean($trans)"><xsl:value-of select="$trans"/></xsl:when> <xsl:otherwise><xsl:value-of select="."/></xsl:otherwise> </xsl:choose> </a> ; </xsl:template> <xsl:template match="com | inc | infv | infn | infa | xrl"> <xsl:param name="phrase"/> <xsl:variable name="field"><xsl:value-of select="name()"/></xsl:variable> <xsl:variable name="val"><xsl:apply-templates/></xsl:variable> <xsl:variable name="no_accents_val"><xsl:value-of select="translate($val,$accents,$no_accents)"/></xsl:variable> <font face="Arial" size="-1"><xsl:value-of select="$phrase"/>:</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=word_search&fields=',$field,'&word=',$no_accents_val)"/> </xsl:attribute> <xsl:apply-templates/></a> <xsl:if test="not(position()=last())">, </xsl:if> <xsl:if test="position()=last()">; </xsl:if> </xsl:template> <xsl:template match="equivao | synao | cfao | colao | xvaao | capao | xv0ao | xv1ao | xv2ao | xvkao | xvnao | xvbao | xtlao | xbtlao"> <xsl:param name="phrase"/> <xsl:variable name="val"><xsl:apply-templates/></xsl:variable> <xsl:variable name="no_accents_val"><xsl:value-of select="translate($val,$accents,$no_accents)"/></xsl:variable> <font face="Arial" size="-1"><xsl:value-of select="$phrase"/>:</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=word_search&fields=lxa,lxaa,lxo,lxoa&word=',$no_accents_val)"/> </xsl:attribute> <xsl:apply-templates/></a> <xsl:if test="not(position()=last())">, </xsl:if> <xsl:if test="position()=last()">; </xsl:if> </xsl:template> <xsl:template match="equiva | syna | cfa | cola | xvaa | capa | xv0a | xv1a | xv2a | xvka | xvna | xvba | xtla | xbtla"> <xsl:param name="phrase"/> <xsl:variable name="val"><xsl:apply-templates/></xsl:variable> <xsl:variable name="no_accents_val"><xsl:value-of select="translate($val,$accents,$no_accents)"/></xsl:variable> <font face="Arial" size="-1"><xsl:value-of select="$phrase"/>:</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=word_search&fields=lxa,lxaa&word=',$no_accents_val)"/> </xsl:attribute> <xsl:apply-templates/></a> <xsl:if test="not(position()=last())">, </xsl:if> <xsl:if test="position()=last()">; </xsl:if> </xsl:template> <xsl:template match="equivo | syno | cfo | colo | xvao | capo | xv0o | xv1o | xv2o | xvko | xvno | xvbo | xtlo | xbtlo"> <xsl:param name="phrase"/> <xsl:variable name="val"><xsl:apply-templates/></xsl:variable> <xsl:variable name="no_accents_val"><xsl:value-of select="translate($val,$accents,$no_accents)"/></xsl:variable> <font face="Arial" size="-1"><xsl:value-of select="$phrase"/>:</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=word_search&fields=lxo,lxoa&word=',$no_accents_val)"/> </xsl:attribute> <xsl:apply-templates/></a> <xsl:if test="not(position()=last())">, </xsl:if> <xsl:if test="position()=last()">; </xsl:if> </xsl:template> <xsl:template match="xvcao |xvca | xvco"> <xsl:param name="phrase"/> <xsl:variable name="val"><xsl:apply-templates/></xsl:variable> <xsl:variable name="no_accents_val"><xsl:value-of select="translate($val,$accents,$no_accents)"/></xsl:variable> <xsl:variable name="fields"> <xsl:choose> <xsl:when test="name()='xvca'">lxa</xsl:when> <xsl:when test="name()='xvco'">lxo</xsl:when> <xsl:otherwise>lxa,lxo</xsl:otherwise> </xsl:choose> </xsl:variable> <font face="Arial" size="-1"><xsl:value-of select="$phrase"/>:</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=word_search&fields=',$fields,'&word=',$no_accents_val)"/> </xsl:attribute> <xsl:apply-templates/></a> <xsl:if test="not(position()=last())">, </xsl:if> <xsl:if test="position()=last()">; </xsl:if> </xsl:template> <xsl:template match="xrb | sem"> <xsl:param name="phrase"/> <xsl:variable name="field"><xsl:value-of select="name()"/></xsl:variable> <xsl:variable name="val"><xsl:apply-templates/></xsl:variable> <xsl:variable name="no_accents_val"><xsl:value-of select="translate($val,$accents,$no_accents)"/></xsl:variable> <xsl:if test="position()=1"> <b><font color="#800040" size="-1" face="Arial"><xsl:value-of select="$phrase"/></font></b> </xsl:if> <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=word_search&fields=',$field,'&word=',$no_accents_val)"/> </xsl:attribute> <xsl:apply-templates/> </a> <xsl:if test="not(position()=last())">, </xsl:if> <xsl:if test="position()=last()">; </xsl:if> </xsl:template> <xsl:template match="nse | nae | nde"> <xsl:param name="phrase"/> <b><font color="#800040"><xsl:value-of select="$phrase"/>: </font></b> <xsl:apply-templates/> <xsl:if test="not(position()=last())">, </xsl:if> <xsl:if test="position()=last()">; </xsl:if> </xsl:template> <xsl:template match="ilus"> <b>Illustration: </b> <a><xsl:attribute name="href"><xsl:apply-templates/></xsl:attribute> <img src='../../images/Iconpencil.jpg' height="25" width="25" BORDER="0"/> </a> <xsl:if test="position()=last()">; </xsl:if> </xsl:template> <xsl:template match="snd"> <b>Supplementary audio texts</b> <a><xsl:attribute name="href"><xsl:apply-templates/></xsl:attribute> <img src='../../images/Iconmp3.jpg' height="15" width="15" BORDER="0"/> </a> <a><img src='../../images/Iconwave.jpg' height="15" width="15" BORDER="0"/></a> </xsl:template> <xsl:template match="encys"> <b>Semantic discussion: </b> <a><xsl:attribute name="href"><xsl:apply-templates/></xsl:attribute> <img src='../../images/Iconbook.jpg' height="25" width="25" BORDER="0"/> </a> </xsl:template> <xsl:template match="encyc"> <b>Cultural encyclopedia: </b> <a><xsl:attribute name="href"><xsl:apply-templates/></xsl:attribute> <img src='../../images/Iconweb.jpg' height="25" width="25" BORDER="0"/> </a> </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="3"> <input type="checkbox" name="refs[]"> <input type="hidden" name="lxas[]"> <xsl:attribute name="value"><xsl:value-of select="lxa"/></xsl:attribute> </input> <input type="hidden" name="lxos[]"> <xsl:attribute name="value"><xsl:value-of select="lxo"/></xsl:attribute> </input> <xsl:attribute name="value"><xsl:value-of select="ref"/></xsl:attribute> </input> <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 width="13"> <xsl:text> </xsl:text> </td> <td> <xsl:apply-templates select="loan"><xsl:with-param name="phrase" select="'LOAN'"/></xsl:apply-templates> <xsl:apply-templates select="psm"><xsl:with-param name="lxa" select="$lxa"/><xsl:with-param name="lxo" select ="$lxo"/></xsl:apply-templates> <xsl:apply-templates select="com"><xsl:with-param name="phrase" select="'COMPOUNDING'"/></xsl:apply-templates> <xsl:apply-templates select="inc"><xsl:with-param name="phrase" select="'INCORPORATION'"/></xsl:apply-templates> <xsl:apply-templates select="der"/> <xsl:apply-templates select="aff"><xsl:with-param name="phrase" select="'AFFIXATION'"/></xsl:apply-templates> <xsl:apply-templates select="infv"><xsl:with-param name="phrase" select="'VERB INFLECTION'"/></xsl:apply-templates> <xsl:apply-templates select="infn"><xsl:with-param name="phrase" select="'NOUN INFLECTION'"/></xsl:apply-templates> <xsl:apply-templates select="infa"><xsl:with-param name="phrase" select="'ADJECTIVAL INFLECTION'"/></xsl:apply-templates> </td> </tr> <tr> <td> <xsl:text> </xsl:text> </td> <td width="5"> <xsl:text> </xsl:text> </td> <td> <xsl:apply-templates select="segroup|seagroup|seogroup|seaogroup"/> </td> </tr> <tr> <td> <xsl:text> </xsl:text> </td> <td width="5"> <xsl:text> </xsl:text> </td> <td> <xsl:apply-templates select="xrb"><xsl:with-param name="phrase" select="'ROOT(S)'"/></xsl:apply-templates> <xsl:apply-templates select="xrl"><xsl:with-param name="phrase" select="'RELATIONAL TERM(S)'"/></xsl:apply-templates> <xsl:apply-templates select="sem"><xsl:with-param name="phrase" select="'Semantic field(s)'"/></xsl:apply-templates> <xsl:apply-templates select="equivao"><xsl:with-param name="phrase" select="'EQUIVALENT (Am/Oa)'"/></xsl:apply-templates> <xsl:apply-templates select="equiva"><xsl:with-param name="phrase" select="'EQUIVALENT (Am)'"/></xsl:apply-templates> <xsl:apply-templates select="equivo"><xsl:with-param name="phrase" select="'EQUIVALENT (Oa)'"/></xsl:apply-templates> <xsl:apply-templates select="synao"><xsl:with-param name="phrase" select="'SYNONYM (Am/Oa)'"/></xsl:apply-templates> <xsl:apply-templates select="syna"><xsl:with-param name="phrase" select="'SYNONYM (Am)'"/></xsl:apply-templates> <xsl:apply-templates select="syno"><xsl:with-param name="phrase" select="'SYNONYM (Oa)'"/></xsl:apply-templates> <xsl:apply-templates select="cfao"><xsl:with-param name="phrase" select="'SEE ALSO (Am/Oa)'"/></xsl:apply-templates> <xsl:apply-templates select="cfa"><xsl:with-param name="phrase" select="'SEE ALSO (Am)'"/></xsl:apply-templates> <xsl:apply-templates select="cfo"><xsl:with-param name="phrase" select="'SEE ALSO (Oa)'"/></xsl:apply-templates> <xsl:apply-templates select="colao"><xsl:with-param name="phrase" select="'COLLOCATION (Am/Oa)'"/></xsl:apply-templates> <xsl:apply-templates select="cola"><xsl:with-param name="phrase" select="'COLLOCATION (Am)'"/></xsl:apply-templates> <xsl:apply-templates select="colo"><xsl:with-param name="phrase" select="'COLLOCATION(Oa)'"/></xsl:apply-templates> <xsl:apply-templates select="xvcao"><xsl:with-param name="phrase" select="'CAUSATIVE (Am/Oa)'"/></xsl:apply-templates> <xsl:apply-templates select="xvca"><xsl:with-param name="phrase" select="'CAUSATIVE (Am)'"/></xsl:apply-templates> <xsl:apply-templates select="xvco"><xsl:with-param name="phrase" select="'CAUSATIVE (Oa)'"/></xsl:apply-templates> <xsl:apply-templates select="xvaao"><xsl:with-param name="phrase" select="'APPLICATIVE (Am/Oa)'"/></xsl:apply-templates> <xsl:apply-templates select="xvaa"><xsl:with-param name="phrase" select="'APPLICATIVE (Am)'"/></xsl:apply-templates> <xsl:apply-templates select="xvao"><xsl:with-param name="phrase" select="'APPLICATIVE (Oa)'"/></xsl:apply-templates> <xsl:apply-templates select="capao"><xsl:with-param name="phrase" select="'APPLICATIVE OF CAUSATIVE (Am/Oa)'"/></xsl:apply-templates> <xsl:apply-templates select="capa"><xsl:with-param name="phrase" select="'APPLICATIVE OF CAUSATIVE (Am)'"/></xsl:apply-templates> <xsl:apply-templates select="capo"><xsl:with-param name="phrase" select="'APPLICATIVE OF CAUSATIVE (Oa)'"/></xsl:apply-templates> <xsl:apply-templates select="xv0ao"><xsl:with-param name="phrase" select="'IMPERSONAL NULL COMPLEMENT (Am/Oa)'"/></xsl:apply-templates> <xsl:apply-templates select="xv0a"><xsl:with-param name="phrase" select="'IMPERSONAL NULL COMPLEMENT (Am)'"/></xsl:apply-templates> <xsl:apply-templates select="xv0o"><xsl:with-param name="phrase" select="'IMPERSONAL NULL COMPLEMENT (Oa)'"/></xsl:apply-templates> <xsl:apply-templates select="xv1ao"><xsl:with-param name="phrase" select="'TRANSITIVE NULL COMPLEMENT (Am/Oa)'"/></xsl:apply-templates> <xsl:apply-templates select="xv1a"><xsl:with-param name="phrase" select="'TRANSITIVE NULL COMPLEMENT (Am)'"/></xsl:apply-templates> <xsl:apply-templates select="xv1o"><xsl:with-param name="phrase" select="'TRANSITIVE NULL COMPLEMENT (Oa)'"/></xsl:apply-templates> <xsl:apply-templates select="xv2ao"><xsl:with-param name="phrase" select="'INTRANSITIVE NULL COMPLEMENT (Am/Oa)'"/></xsl:apply-templates> <xsl:apply-templates select="xv2a"><xsl:with-param name="phrase" select="'INTRANSITIVE NULL COMPLEMENT (Am)'"/></xsl:apply-templates> <xsl:apply-templates select="xv2o"><xsl:with-param name="phrase" select="'INTRANSITIVE NULL COMPLEMENT (Oa)'"/></xsl:apply-templates> <xsl:apply-templates select="xvkao"><xsl:with-param name="phrase" select="'FREQUENTATIVE (Am/Oa)'"/></xsl:apply-templates> <xsl:apply-templates select="xvka"><xsl:with-param name="phrase" select="'FREQUENTATIVE (Am)'"/></xsl:apply-templates> <xsl:apply-templates select="xvko"><xsl:with-param name="phrase" select="'FREQUENTATIVE (Oa)'"/></xsl:apply-templates> <xsl:apply-templates select="xvnao"><xsl:with-param name="phrase" select="'VERBAL BASE FOR FREQUENTATIVE (Am/Oa)'"/></xsl:apply-templates> <xsl:apply-templates select="xvna"><xsl:with-param name="phrase" select="'VERBAL BASE FOR FREQUENTATIVE (Am)'"/></xsl:apply-templates> <xsl:apply-templates select="xvno"><xsl:with-param name="phrase" select="'VERBAL BASE FOR FREQUENTATIVE (Oa)'"/></xsl:apply-templates> <xsl:apply-templates select="xvbao"><xsl:with-param name="phrase" select="'VERBAL BASE (Am/Oa)'"/></xsl:apply-templates> <xsl:apply-templates select="xvba"><xsl:with-param name="phrase" select="'VERBAL BASE (Am)'"/></xsl:apply-templates> <xsl:apply-templates select="xvbo"><xsl:with-param name="phrase" select="'VERBAL BASE (Oa)'"/></xsl:apply-templates> <xsl:apply-templates select="xtlao"><xsl:with-param name="phrase" select="'ADJECTIVAL/STATIVE WITH INITIAL (Am/Oa)'"/></xsl:apply-templates> <xsl:apply-templates select="xtla"><xsl:with-param name="phrase" select="'ADJECTIVAL/STATIVE WITH INITIAL (Am)'"/></xsl:apply-templates> <xsl:apply-templates select="xtlo"><xsl:with-param name="phrase" select="'ADJECTIVAL/STATIVE WITH INITIAL (Oa)'"/></xsl:apply-templates> <xsl:apply-templates select="xbtlao"><xsl:with-param name="phrase" select="'BASE FOR ADJECTIVAL/STATIVE WITH INITIAL (Am/Oa)'"/></xsl:apply-templates> <xsl:apply-templates select="xbtla"><xsl:with-param name="phrase" select="'BASE FOR ADJECTIVAL/STATIVE WITH INITIAL (Am)'"/></xsl:apply-templates> <xsl:apply-templates select="xbtlo"><xsl:with-param name="phrase" select="'BASE FOR ADJECTIVAL/STATIVE WITH INITIAL (Oa)'"/></xsl:apply-templates> <xsl:apply-templates select="nse"><xsl:with-param name="phrase" select="'Semantic Notes'"/></xsl:apply-templates> <xsl:apply-templates select="nae"><xsl:with-param name="phrase" select="'Phonological and morphosyntactic notes'"/></xsl:apply-templates> <xsl:apply-templates select="nde"><xsl:with-param name="phrase" select="'Comparative dialect notes'"/></xsl:apply-templates> <xsl:apply-templates select="ilus"><xsl:with-param name="phrase" select="'Illustration'"/></xsl:apply-templates> <xsl:apply-templates select="snd"><xsl:with-param name="phrase" select="'Supplementary audio texts'"/></xsl:apply-templates> <xsl:apply-templates select="encys"><xsl:with-param name="phrase" select="'Semantic dicussion'"/></xsl:apply-templates> <xsl:apply-templates select="encyc"><xsl:with-param name="phrase" select="'Cultural encyclopedia'"/></xsl:apply-templates> </td> </tr> <tr> <td> <xsl:text> </xsl:text><br/> </td> <td width="5"> <xsl:text> </xsl:text> </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/> <form action="../php/my_dictionary_editor.php4" method="post"> <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> <input type="submit" value="Add to My Dictionary"/> </form> <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>