Tryag File Manager
Home
-
Turbo Force
Current Path :
/
home
/
cluster1
/
data
/
bu01
/
1121861
/
html
/
jlex
/
jeremias
/
Upload File :
New :
File
Dir
//home/cluster1/data/bu01/1121861/html/jlex/jeremias/search_result.xsl
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" > <xsl:import href="url-encode.xsl"/> <xsl:variable name="php_version"><xsl:value-of select="document('../jlex_defaults.xml')//jlex_defaults/php_version"/></xsl:variable> <xsl:variable name="jlex_path"><xsl:value-of select="concat('../',$php_version)"/></xsl:variable> <xsl:variable name="page_template"><xsl:value-of select="//resultset/template_type"/></xsl:variable> <xsl:variable name="template_type"> <xsl:choose> <xsl:when test="//resultset/template_type='mydictionary_view'">mydictionary_search_result</xsl:when> <xsl:otherwise> <xsl:value-of select="//resultset/template_type"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <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">aeiouaeiou</xsl:variable> <xsl:template match="link"> <b> Link: </b><a><xsl:attribute name="href"><xsl:value-of select="."/></xsl:attribute><xsl:value-of select="."/></a> </xsl:template> <xsl:template match="klam | kloa | klamoa |kbam | kboa | kbamoa"> <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($jlex_path,'/query_result.',$php_version,'?project=nahuatl&template_type=',$template_type,'&db_cols_0=lxam lxoa&reg_exp_0=equals&string_0=',$no_accents_val)"/> </xsl:attribute> <xsl:value-of select="."/> </a> <xsl:text> </xsl:text> </xsl:template> <xsl:template match="kam | koa | kamoa | kn | ktet | tit | l | spn"> <xsl:text> </xsl:text> <i><xsl:value-of select="."/></i> <xsl:text> </xsl:text> </xsl:template> <!-- reusable replace-string function --> <xsl:template name="replace-string-red"> <xsl:param name="text"/> <xsl:param name="from"/> <xsl:param name="to"/> <xsl:choose> <xsl:when test="contains($text, $from)"> <xsl:variable name="before" select="substring-before($text, $from)"/> <xsl:variable name="after" select="substring-after($text, $from)"/> <xsl:variable name="prefix" select="concat($before, $to)"/> <xsl:value-of select="$before"/> <span class="red"><xsl:value-of select="$to"/></span> <xsl:call-template name="replace-string-red"> <xsl:with-param name="text" select="$after"/> <xsl:with-param name="from" select="$from"/> <xsl:with-param name="to" select="$to"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:copy-of select="$text"/> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="replace_strings"> <xsl:param name="text" /> <xsl:param name="search">1</xsl:param> <xsl:variable name="num_iterations"> <xsl:choose> <xsl:when test="count(//resultset/search_string)<'4'"> <xsl:value-of select="count(//resultset/search_string)"/> </xsl:when> <xsl:otherwise>3</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="replaced_text"> <xsl:call-template name="replace-string-red"> <xsl:with-param name="text" select="$text"></xsl:with-param> <xsl:with-param name="from"><xsl:value-of select="//resultset/search_string[$search]"/></xsl:with-param> <xsl:with-param name="to" select="//resultset/search_string[$search]"></xsl:with-param> </xsl:call-template> </xsl:variable> <xsl:choose> <xsl:when test="$search < $num_iterations"> <xsl:call-template name="replace_strings"> <xsl:with-param name="text" select="$replaced_text" /> <xsl:with-param name="search" select="$search + 1" /> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:copy-of select="$replaced_text" /> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="sense_e"> <xsl:variable name="sense"><xsl:apply-templates/></xsl:variable> <xsl:variable name="num_search_strings"> <xsl:value-of select="count(//resultset/search_string)"/> </xsl:variable> <xsl:choose> <xsl:when test="$num_search_strings!='0'"> <xsl:variable name="foo"> <xsl:call-template name="replace_strings"> <xsl:with-param name="text" select="$sense"/> </xsl:call-template> </xsl:variable> <xsl:copy-of select="$foo"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$sense"/> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="sense_s"> <xsl:apply-templates/> </xsl:template> <xsl:template match="phrase_ngroup"> <i><b><span class="red"> 〜 </span></b></i> (<xsl:apply-templates select="phrase_d"/>) <i><xsl:apply-templates select="phrase_n"/> </i> <xsl:apply-templates select="snd_am"/> <xsl:apply-templates select="snd_oa"/> / <xsl:apply-templates select="phrase_e"/> </xsl:template> <xsl:template match="sense_egroup"> <xsl:variable name="dialect"><xsl:value-of select="sense_d"/></xsl:variable> <li><b><xsl:number value="position()"/></b><xsl:if test="$dialect!='Pending'"> (<xsl:value-of select="$dialect"/>)</xsl:if> <b>:</b>  <xsl:apply-templates select="sense_e"/> <xsl:apply-templates select="phrase_ngroup"/> </li> </xsl:template> <xsl:template match="snd_am"> <a><xsl:attribute name="href"><xsl:value-of select="concat('http://nahuatl.ldc.upenn.edu/sounds/lex/phrases/am/mp3/',.,'.mp3')"/></xsl:attribute> <xsl:text> </xsl:text> <span class="soundicon">mp3</span></a><xsl:text> </xsl:text> <a><xsl:attribute name="href"><xsl:value-of select="concat('http://nahuatl.ldc.upenn.edu/sounds/lex/phrases/am/wav/',.,'.wav')"/></xsl:attribute> <xsl:text> </xsl:text> <span class="soundicon">wav</span></a> <xsl:text> </xsl:text> </xsl:template> <xsl:template match="snd_oa"> <a><xsl:attribute name="href"><xsl:value-of select="concat('http://nahuatl.ldc.upenn.edu/sounds/lex/phrases/oa/mp3/',.,'.mp3')"/></xsl:attribute> <xsl:text> </xsl:text> <span class="soundicon">mp3</span></a> <a><xsl:attribute name="href"><xsl:value-of select="concat('http://nahuatl.ldc.upenn.edu/sounds/lex/phrases/oa/wav/',.,'.wav')"/></xsl:attribute> <xsl:text> </xsl:text> <span class="soundicon">wav</span></a> <xsl:text> </xsl:text> </xsl:template> <xsl:template match="lxam | lxoa"> <xsl:param name="dialect"/> <xsl:variable name="word"><xsl:apply-templates/></xsl:variable> <span class="headword"><xsl:value-of select="translate($word,$lcletters,$ucletters)"/></span> <xsl:text> </xsl:text><xsl:value-of select="$dialect"/> </xsl:template> <xsl:template match="lxam_alt | lxoa_alt"> <xsl:param name="dialect"/> <xsl:variable name="word"><xsl:apply-templates/></xsl:variable> <xsl:if test="position()='1'"> ; (Alt. form:<xsl:text> </xsl:text> </xsl:if> <span class="altform"><xsl:value-of select="."/></span>) <xsl:if test="position()!=last()">, </xsl:if> </xsl:template> <xsl:template match="lxoa_pr"> <xsl:param name="dialect"/> <xsl:variable name="word"><xsl:apply-templates/></xsl:variable> <xsl:if test="position()='1'"> ; / </xsl:if> <xsl:value-of select="."/>/ </xsl:template> <xsl:template match="lxam_c"> <xsl:param name="ref"/> ; Citation form: <span class="citationform"><xsl:value-of select="."/></span><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> <span class="soundicon">mp3</span></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> <span class="soundicon">wav</span></a> </xsl:template> <xsl:template match="lxoa_c"> <xsl:param name="ref"/> <xsl:text> </xsl:text> ; Citation form: <span class="citationform"><xsl:value-of select="."/></span> <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> <span class="soundicon">mp3</span></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> <span class="soundicon">wav</span></a> </xsl:template> <xsl:template match="loan"> <xsl:param name="loan_type"/> <xsl:value-of select="$loan_type" /> loan: <i><xsl:apply-templates/></i> <xsl:if test="not(position()=last())">, </xsl:if> <xsl:if test="position()=last()">; </xsl:if> </xsl:template> <xsl:template match="lx_te"> <xsl:if test="text() != 'No'"> Intensified form: <i><xsl:value-of select="." /></i></xsl:if> </xsl:template> <xsl:template match="lx_te_d"> [<xsl:apply-templates/>] </xsl:template> <xsl:template match="lexical"> <xsl:param name="lexicalization_dialect"/> Lexicalized <xsl:apply-templates /> [<xsl:value-of select="$lexicalization_dialect" />] </xsl:template> <xsl:template match="lxgen"> ; Other dialects: <span class="altform"><xsl:apply-templates/></span> </xsl:template> <xsl:template match="lxvar"> (<xsl:apply-templates/>) </xsl:template> <xsl:template match="lxoa_f"> [<xsl:apply-templates/>] </xsl:template> <xsl:template match="psm"> <xsl:param name="lxam"/> <xsl:param name="lxoa"/> <xsl:param name="lxoa_pr"/> <xsl:variable name="url_words"><xsl:call-template name="url-encode"><xsl:with-param name="str" select="$lxam"/></xsl:call-template>_<xsl:if test="$lxoa_pr != ''"><xsl:call-template name="url-encode"><xsl:with-param name="str" select="$lxoa_pr"/></xsl:call-template></xsl:if><xsl:if test="$lxoa_pr = ''"><xsl:call-template name="url-encode"><xsl:with-param name="str" select="$lxoa"/></xsl:call-template></xsl:if></xsl:variable> <xsl:variable name="val"><xsl:apply-templates/></xsl:variable> <span class="divider"> ||</span> Part of speech: <xsl:text> </xsl:text> <a> <xsl:attribute name="href"> <xsl:value-of select="concat($jlex_path,'/query_result.',$php_version,'?project=nahuatl&template_type=',$template_type,'&db_cols_0=psm&reg_exp_0=equals&string_0=',$val)"/> </xsl:attribute> <xsl:value-of select="document('translations.xml')//psm/tag[@name=$val]"/> </a> <xsl:if test="contains($val,'V0') or contains($val,'V1') or contains($val,'V2') or contains($val,'V3') or contains($val,'V4') "> <xsl:if test="$lxam != ''"> (Generate forms: Am | </xsl:if> <xsl:if test="$lxoa != ''"> <a> <xsl:attribute name="href">http://nahuatl.ldc.upenn.edu/xfst_dir/conjugate2.php?form=<xsl:if test="contains($val,'V0') or contains($val,'V1')">intrans</xsl:if><xsl:if test="contains($val,'V2') or contains($val,'V3')">trans</xsl:if>&words=<xsl:value-of select="$url_words"/></xsl:attribute> <xsl:attribute name="target">parser</xsl:attribute> <xsl:attribute name="onclick">var settings = 'width=400,height=700,top=0,left='+(screen.width-400)+',scrollbars,resizable';window.open(this.href, 'parser', settings); return false;</xsl:attribute> Oa </a>) </xsl:if> </xsl:if> </xsl:template> <xsl:template match="der"> <xsl:variable name="val"><xsl:apply-templates/></xsl:variable> Derivation of rightmost element: <xsl:text> </xsl:text> <a> <xsl:attribute name="href"> <xsl:value-of select="concat($jlex_path,'/query_result.',$php_version,'?project=nahuatl&template_type=',$template_type,'&db_cols_0=der&reg_exp_0=equals&string_0=',$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="compound | incorp | infv | infn | infa | irregv | rdp | trans | intense"> <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:value-of select="$phrase"/>: <xsl:text> </xsl:text> <a> <xsl:attribute name="href"> <xsl:value-of select="concat($jlex_path,'/query_result.',$php_version,'?project=nahuatl&template_type=',$template_type,'&db_cols_0=',$field,'&reg_exp_0=equals&string_0=',$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="irregv | trans | intense"> <xsl:param name="phrase"/> <xsl:value-of select="$phrase"/>: <xsl:text> </xsl:text> <xsl:apply-templates/> <xsl:if test="not(position()=last())">, </xsl:if> <xsl:if test="position()=last()">; </xsl:if> </xsl:template> <xsl:template match="semrefgroup"> <xsl:variable name="type"><xsl:value-of select="semref_t"/></xsl:variable> <xsl:variable name="phrase"><xsl:value-of select="document('translations.xml')//semref_t/tag[@name=$type]"/></xsl:variable> <xsl:variable name="val"><xsl:value-of select="semref"/></xsl:variable> <xsl:variable name="no_accents_val"><xsl:value-of select="translate($val,$accents,$no_accents)"/></xsl:variable> <xsl:if test="position()='1'"> <xsl:value-of select="$phrase"/> </xsl:if> <a> <xsl:attribute name="href"> <xsl:value-of select="concat($jlex_path,'/query_result.',$php_version,'?project=nahuatl&template_type=',$template_type,'&db_cols_0=lxam lxam_alt lxoa lxoa_alt&reg_exp_0=equals&string_0=',$no_accents_val)"/> </xsl:attribute> <xsl:value-of select="$val"/> </a> (<xsl:value-of select="semref_d"/>) <xsl:if test="not(position()=last())">, </xsl:if> <xsl:if test="position()=last()">; </xsl:if> </xsl:template> <xsl:template match="xref_tgroup"> <xsl:variable name="type"><xsl:value-of select="xref_t"/></xsl:variable> <xsl:variable name="phrase"><xsl:value-of select="document('translations.xml')//xref_t/tag[@name=$type]"/></xsl:variable> <xsl:variable name="val"><xsl:value-of select="xref"/></xsl:variable> <xsl:variable name="no_accents_val"><xsl:value-of select="translate($val,$accents,$no_accents)"/></xsl:variable> <xsl:value-of select="$phrase" />: <xsl:for-each select="xrefgroup"> <a> <xsl:attribute name="href"> <xsl:value-of select="concat($jlex_path,'/query_result.',$php_version,'?project=nahuatl&template_type=',$template_type,'&db_cols_0=lxam lxam_alt lxoa lxoa_alt&reg_exp_0=equals&string_0=',$no_accents_val)"/> </xsl:attribute> <xsl:value-of select="xref"/> </a> (<xsl:value-of select="xref_d" />)<xsl:if test="not(position()=last())">, </xsl:if><xsl:if test="position()=last()">; </xsl:if> </xsl:for-each> </xsl:template> <xsl:template match="root | semfld"> <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:variable name="fields"><xsl:value-of select="$field"/><xsl:text> </xsl:text><xsl:value-of select="$field"/>_s</xsl:variable> <xsl:if test="position()=1"> <b><xsl:value-of select="$phrase"/></b> </xsl:if> <xsl:text> </xsl:text> <a> <xsl:attribute name="href"> <xsl:value-of select="concat($jlex_path,'/query_result.',$php_version,'?project=nahuatl&template_type=',$template_type,'&db_cols_0=',$fields,'&reg_exp_0=equals&string_0=',$no_accents_val)"/> </xsl:attribute> <xsl:apply-templates/> </a> <xsl:if test="not(position()=last())">; </xsl:if> </xsl:template> <xsl:template match="nse | nae | nde"> <xsl:param name="phrase"/> <b><xsl:value-of select="$phrase"/>: </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='../../nahuatl/images/Iconpencil.jpg' height="25" width="25" BORDER="0"/> </a> <xsl:if test="position()=last()">; </xsl:if> </xsl:template> <xsl:template match="ency_ref"> <b>Cultural encyclopedia: </b> <a><xsl:attribute name="href">http://nahuatl.ldc.upenn.edu/ency/<xsl:value-of select="."/></xsl:attribute> <img src='../nahuatl/images/Iconency.jpg' height="8" 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="lxam"><xsl:value-of select="lxam"/></xsl:variable> <xsl:variable name="lxoa"><xsl:value-of select="lxoa"/></xsl:variable> <xsl:variable name="lxoa_pr"><xsl:value-of select="lxoa_pr"/></xsl:variable> <li> <div class="definition"> <p class="ref"> <xsl:if test="$page_template='mydictionary_search_result'"> <input type="checkbox" name="refs[]"> <xsl:attribute name="value"><xsl:value-of select="ref"/></xsl:attribute> </input> </xsl:if> <xsl:if test="$page_template='mydictionary_view'"> <input type="checkbox" name="refs[]"> <xsl:attribute name="value"><xsl:value-of select="ref"/></xsl:attribute> </input> </xsl:if> <xsl:apply-templates select="lxam"> <xsl:with-param name="dialect" select="'(Am)'"/> </xsl:apply-templates> <xsl:apply-templates select="lxam_alt"> <xsl:with-param name="dialect" select="'Am'"/> </xsl:apply-templates> <xsl:apply-templates select="lxam_c"> <xsl:with-param name="ref" select="$ref"/> </xsl:apply-templates> <xsl:if test="count(lxam)"> <xsl:if test="count(lxoa)"> <xsl:text>; </xsl:text> </xsl:if> </xsl:if> <xsl:apply-templates select="lxoa"> <xsl:with-param name="dialect" select="'(Oa)'"/> </xsl:apply-templates> <xsl:apply-templates select="lxoa_alt"> <xsl:with-param name="dialect" select="'Oa'"/> </xsl:apply-templates> <xsl:apply-templates select="lxoa_f"/> <xsl:apply-templates select="lxoa_pr"> <xsl:with-param name="dialect" select="'Oa'"/> </xsl:apply-templates> <xsl:apply-templates select="lxoa_c"> <xsl:with-param name="ref" select="$ref"/> </xsl:apply-templates> <xsl:if test="loan|lx_te|lexical"> (</xsl:if> <xsl:apply-templates select="loan"> <xsl:with-param name="loan_type" select="loan_t"/> </xsl:apply-templates> <xsl:apply-templates select="lx_te"/> <xsl:apply-templates select="lx_te_d"/> <xsl:apply-templates select="lexical"> <xsl:with-param name="lexicalization_dialect" select="lexical_d"/> </xsl:apply-templates> <xsl:if test="loan|lx_te|lexical">)</xsl:if> <xsl:apply-templates select="lxgen"/> <xsl:apply-templates select="lxvar"/> </p> <p class="pos"> <xsl:apply-templates select="psm"> <xsl:with-param name="lxam" select="$lxam"/> <xsl:with-param name="lxoa" select ="$lxoa"/> <xsl:with-param name="lxoa_pr" select="$lxoa_pr"/> </xsl:apply-templates> <xsl:apply-templates select="infv"> <xsl:with-param name="phrase" select="'Verbal inflection'"/> </xsl:apply-templates> <xsl:apply-templates select="compound"> <xsl:with-param name="phrase" select="'Compound Pattern:'"/> </xsl:apply-templates> <xsl:apply-templates select="incorp"> <xsl:with-param name="phrase" select="'Incorporation Pattern:'"/> </xsl:apply-templates> <xsl:apply-templates select="der"/> <xsl:apply-templates select="impers"><xsl:with-param name="phrase" select="'Impersonal form (of intransitive):'"/></xsl:apply-templates> <xsl:apply-templates select="impers_d"/> <xsl:apply-templates select="infn"><xsl:with-param name="phrase" select="'Nominal inflection'"/></xsl:apply-templates> <xsl:apply-templates select="infa"><xsl:with-param name="phrase" select="'Adjectival inflection'"/></xsl:apply-templates> <xsl:apply-templates select="irregular"><xsl:with-param name="phrase" select="'Irregularity'"/></xsl:apply-templates> <xsl:apply-templates select="rdp"><xsl:with-param name="phrase" select="'Reduplication pattern'"/></xsl:apply-templates> <xsl:apply-templates select="trans"><xsl:with-param name="phrase" select="'Transitivity alternation'"/></xsl:apply-templates> <xsl:apply-templates select="intense"><xsl:with-param name="phrase" select="'Intensifier use'"/></xsl:apply-templates> <xsl:apply-templates select="allomorph"><xsl:with-param name="phrase" select="'Allomorphy:'"/></xsl:apply-templates> <xsl:apply-templates select="allomorph_e"/> </p><span class="divider"> || </span> <ol class="senses"> <xsl:apply-templates select="sense_egroup"/> </ol> <p class="root"> <xsl:if test="count(xrefgroup | semrefgroup) != 0"> <span class="divider">|| </span> <b>Derivational and semantic cross-references: </b> </xsl:if> <xsl:apply-templates select="xref_tgroup[xref_t='plus_tla']"/> <xsl:apply-templates select="xref_tgroup[xref_t='stative']"/> <xsl:apply-templates select="xref_tgroup[xref_t='frequent']"/> <xsl:apply-templates select="xref_tgroup[xref_t='ni_base']"/> <xsl:apply-templates select="xref_tgroup[xref_t='val_reduce0']"/> <xsl:apply-templates select="xref_tgroup[xref_t='val_reduce1']"/> <xsl:apply-templates select="xref_tgroup[xref_t='val_reduce']"/> <xsl:apply-templates select="xref_tgroup[xref_t='val_add_caus']"/> <xsl:apply-templates select="xref_tgroup[xref_t='val_add_applic']"/> <xsl:apply-templates select="xref_tgroup[xref_t='val_add_applic.caus']"/> <xsl:apply-templates select="xref_tgroup[xref_t='minus_tla']"/> <xsl:apply-templates select="xref_tgroup[xref_t='verb_base']"/> <xsl:apply-templates select="semrefgroup[semref_t='natural']"/> <xsl:apply-templates select="semrefgroup[semref_t='equivalent']"/> <xsl:apply-templates select="semrefgroup[semref_t='synonym']"/> <xsl:apply-templates select="semrefgroup[semref_t='confer' and semref_d='Am']"/> <xsl:if test="count(root)"> <b>Root<xsl:if test="count(root) > 1">s</xsl:if>: </b><xsl:apply-templates select="root"/></xsl:if> </p> <p class="semantics"> <xsl:apply-templates select="nae"><xsl:with-param name="phrase" select="'Phonology and morphology'"/></xsl:apply-templates> <xsl:apply-templates select="nse"><xsl:with-param name="phrase" select="'Semantics'"/></xsl:apply-templates> <xsl:apply-templates select="nde"><xsl:with-param name="phrase" select="'Comparative dialectology'"/></xsl:apply-templates> <xsl:apply-templates select="ency_ref"><xsl:with-param name="phrase" select="'Cultural encyclopedia'"/></xsl:apply-templates> </p> </div> </li> </xsl:template> <xsl:template name="make_page_bar"> <xsl:param name="page"/> <xsl:if test="$page*50 < //@num_results + 50"> <li> <a> <xsl:variable name="link" select="concat($jlex_path,'/query_result.',$php_version,'?project=nahuatl&template_type=',$page_template,'&page=',$page)"/> <xsl:attribute name="href"><xsl:value-of select="$link"/></xsl:attribute> <xsl:value-of select="$page"/> </a> </li> <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> <script language="javascript" type="text/javascript"> var checkflag = "false"; function check(field_name) { var field = document.forms[0].elements[field_name]; if(checkflag == "false") { for(i=0;i<field.length;i++) { field[i].checked = true; } checkflag="true"; } else { for(i=0;i<field.length;i++) { field[i].checked = false; } checkflag="false"; } } function share() { document.forms["search_results"].elements["function"].value = "share_refs"; document.forms["search_results"].submit(); } </script> <style type="text/css" media="all"> /* undohtml.css */ /* (CC) 2004-2005 Tantek Celik. Some Rights Reserved. */ /* http://creativecommons.org/licenses/by/2.0 */ /* This style sheet is licensed under a Creative Commons License. */ /* Purpose: undo some of the default styling of common (X)HTML browsers */ /* link underlines tend to make hypertext less readable, because underlines obscure the shapes of the lower halves of words */ :link,:visited { text-decoration:none } /* no list-markers by default, since lists are used more often for semantics */ ul,ol { list-style:none } /* avoid browser default inconsistent heading font-sizes */ /* and pre/code/kbd too */ h1,h2,h3,h4,h5,h6,pre,code,kbd { font-size:1em; } /* remove the inconsistent (among browsers) default ul,ol padding or margin */ /* the default spacing on headings does not match nor align with normal interline spacing at all, so let's get rid of it. */ /* zero out the spacing around pre, form, body, html, p, blockquote as well */ /* form elements are oddly inconsistent, and not quite CSS emulatable. */ /* nonetheless strip their margin and padding as well */ dl,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,body,html,p,blockquote,fieldset,input { margin:0; padding:0 } /* whoever thought blue linked image borders were a good idea? */ a img,:link img,:visited img { border:none } /* de-italicize address,abbr */ address,abbr { font-style:normal } /* end undo defaults */ body { width: 780px; padding: 5px; font-family: verdana, lucida, arial, sans-serif; font-size: 76%; line-height: 1.3; } a { color: #0033ff; } a:hover { text-decoration: underline; } a:visited {color:#3399ff;} p { margin-bottom: 0.5em; font-size: 1.1em; } hr { border:1px solid #800000; } div.metadata { margin-bottom: 1.2em; } div.metadata p { margin-bottom: 0.1em; } div.bodywrapper { width: 780; } ul.flat, ul.flat li { margin: 0; padding: 0; display: inline; } ol#entries li { margin-bottom: 2em; font-size: 1.15em; } ol#entries li div.definition { margin-left: 25px; text-indent: -25px; } ol#entries li div.definition * { display: inline; } p.ref { } p.pos, ol.senses, p.root { margin: ; } ol#entries li div.definition p.semantics { display: block; text-indent: 0; } /* listed SPM: If using this, we also need to alter the sense_egroup to not print numbers. Just remove the xsl:number-position() bits. ol#entries ol.senses { margin-bottom: 0.75em; margin-left: 2.5em; list-style: decimal outside; font-size: 1.10em; font-weight: bold; } ol#entries ol.senses li { margin-bottom: 0em; font-size: 1.0em; font-weight: normal; } */ /* flat */ ol#entries ol.senses { list-style: none; font-weight: bold; } ol#entries ol.senses li { display: inline; margin-right: 0.4em; font-weight: normal; } .headword { color: #960; font-weight: bold; } .altform, .citationform { color: #960; font-style: italic; font-weight: bold; } .soundicon { color: #006400; font-size: 0.85em; vertical-align: baseline; text-transform: uppercase; font-weight: bold } .red { color: red; } </style> <style type="text/css" media="print"> body { font-family: times, "times new roman", serif; } </style> </head> <body bgcolor="white" onLoad="window.focus()"> <div class="bodywrapper"> <img src="../nahuatl/images/lexsearch_fulltemp.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="../nahuatl/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 /> <div class="metadata"> <xsl:if test="contains($template_type,'mydictionary')"> <p><b><xsl:value-of select="//resultset/username"/> logged in.</b></p> </xsl:if> <br/> <xsl:variable name="num_results" select="//resultset/@num_results"/> <p><b>The query returned <xsl:value-of select="$num_results"/> hits. </b></p> <xsl:variable name="page" select="//resultset/@page"/> <xsl:variable name="first" select="$page*50-49"/> <xsl:variable name="last" select="$first + 49"/> <xsl:if test="$page!='0'"> <p><b>Displaying Hits: </b> <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> </p> </xsl:if> <div> <b>Pages:</b> <ul class="flat"> <xsl:call-template name="make_page_bar"> <xsl:with-param name="page" select="1"/> </xsl:call-template> </ul> </div> </div> <form name="search_results" method="post"> <xsl:attribute name="action"><xsl:value-of select="concat($jlex_path,'/mydictionary.',$php_version)"/></xsl:attribute> <xsl:if test="$page_template='mydictionary_search_result'"> <input type="hidden" name="function" value="add_refs"/> </xsl:if> <xsl:if test="$page_template='mydictionary_view'"> <input type="hidden" name="function" value="delete_refs"/> </xsl:if> <ol id="entries"> <xsl:apply-templates select="//refgroup"/> </ol> <hr /> <div> <b>Pages:</b> <ul class="flat"> <xsl:call-template name="make_page_bar"> <xsl:with-param name="page" select="1" /> </xsl:call-template> </ul> </div> <xsl:if test="$page_template='mydictionary_search_result'"> <input type="button" onClick="check('refs[]')" value="Select All"/><BR/> <input type="submit" value="Add to My Dictionary"/> <BR/> <xsl:variable name="admin"><xsl:value-of select="//resultset/admin"/></xsl:variable> <xsl:if test="$admin!=''"> <input type="button" value="Share With Users" onclick="share()"/> <br/> </xsl:if> <a> <xsl:attribute name="href"> <xsl:value-of select="concat($jlex_path,'/mydictionary.',$php_version,'?function=view_refset')"/> </xsl:attribute> View My Dictionary</a> <BR/><BR/> <a> <xsl:attribute name="href"> <xsl:value-of select="concat($jlex_path,'/login.',$php_version,'?function=logout')"/> </xsl:attribute> Log out of My Dictionary</a> <br/><br/> </xsl:if> <xsl:if test="$page_template='mydictionary_view'"> <input type="button" onClick="check('refs[]')" value="Select All"/><BR/> <input type="submit" value="Delete from My Dictionary"/><BR/> <xsl:variable name="admin"><xsl:value-of select="//resultset/admin"/></xsl:variable> <xsl:if test="$admin!=''"> <input type="button" value="Share With Users" onclick="share()"/> </xsl:if> <br/><br/> <a> <xsl:attribute name="href"> <xsl:value-of select="concat($jlex_path,'/login.',$php_version,'?function=logout')"/> </xsl:attribute> Log out of My Dictionary</a> </xsl:if> </form> <xsl:apply-templates select="//resultset/link"/> <center> <table width="780" border="0"> <tr> <td> <div align="center"> <xsl:choose> <xsl:when test="contains($template_type,'mydictionary')"> <p><a> <xsl:attribute name="href"> <xsl:value-of select="concat('../nahuatl/html_',$php_version,'/mydictionary_search.html')"/> </xsl:attribute> <img src="../nahuatl/images/Back2.gif" width="60" height="60" border="0"/></a></p> </xsl:when> <xsl:otherwise> <p><a> <xsl:attribute name="href"> <xsl:value-of select="concat('../nahuatl/html_',$php_version,'/nahuatl_search.html')"/> </xsl:attribute> <img src="../nahuatl/images/Back2.gif" width="60" height="60" border="0"/></a></p> </xsl:otherwise> </xsl:choose> <center> <b><font size="3" color="#D46702">Click to return to search page!</font></b> </center> </div> </td> </tr> </table> </center> </div> <!-- bodywrapper --> </body> </html> </xsl:template> </xsl:stylesheet>