<xsl:stylesheet xmlns="http://purl.org/NET/xbiblio/citeproc" xmlns:bib="http://purl.org/NET/xbiblio/citeproc" xmlns:cs="http://purl.org/NET/xbiblio/csl" xmlns:db="http://docbook.org/ns/docbook" xmlns:mods="http://www.loc.gov/mods/v3" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:存在する="http://存在する.sourceforge.逮捕する/NS/存在する" xmlns:xdoc="http://www.pnp-ソフトウェア.com/XSLTdoc" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:course="http://purl.org/NET/xbiblio/course" 見解/翻訳/版="2.0" 除外する-result-prefixes="db xdoc xhtml mods xs cs 存在する bib course">
??<!--?===?licensed?under?CC-GNU?GPL;?see?http://creativecommons.org/licenses/GPL/2.0?===?-->
??
??<!--?punctuation?variables?-->
??<xsl:variable 指名する="bibref-before">
????<xsl:text />
??</xsl:variable>
??<xsl:variable 指名する="bibref-after">
????<xsl:text>.</xsl:text>
??</xsl:variable>
??<xsl:template match="bib:noname-代用品,人">
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<(期間が)わたる class="creator">
??????<xsl:value-of select="$prefix" />
??????<xsl:value-of select="." />
??????<xsl:value-of select="$suffix" />
????</(期間が)わたる>
??</xsl:template>
??
??<xsl:template match="mods:指名する" 方式="十分な">
????<xsl:param 指名する="sort-order" />
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<xsl:param 指名する="multi-authors" as="element(cs:多重の-authors)?" tunnel="yes" />
????<xsl:variable 指名する="multi-author-min" select="if ($multi-authors/@min-authors) then ($multi-authors/@min-authors) else xs:integer('999')" as="xs:integer" />
????<xsl:variable 指名する="use-multi-author-扱うing" select="xs:integer(count(../mods:指名する[mods:役割/mods:roleTerm=$primary-contributors])) ge $multi-author-min" as="xs:boolean" />
????<xsl:value-of select="$prefix" />
????<xsl:choose>
??????<xsl:when 実験(する)="$use-multi-author-扱うing">
????????<xsl:choose>
??????????<xsl:when 実験(する)="position() le xs:integer($multi-authors/@use-first)">
????????????<xsl:choose>
??????????????<xsl:when 実験(する)="$sort-order='first-author' and parent::mods:mods">
????????????????<xsl:適用する-templates select="mods:namePart[@type='family'] | mods:namePart[not(@type)]" />
????????????????<xsl:if 実験(する)="mods:namePart[@type='given']">
??????????????????<xsl:text>,?</xsl:text>
??????????????????<xsl:適用する-templates select="mods:namePart[@type='given']" />
????????????????</xsl:if>
??????????????</xsl:when>
??????????????
??????????????<xsl:when 実験(する)="$sort-order='first-author' and position() = 1 and parent::mods:mods">
????????????????<xsl:適用する-templates select="mods:namePart[@type='family'] | mods:namePart[not(@type)]" />
????????????????<xsl:if 実験(する)="mods:namePart[@type='given']">
??????????????????<xsl:text>,?</xsl:text>
??????????????????<xsl:適用する-templates select="mods:namePart[@type='given']" />
????????????????</xsl:if>
??????????????</xsl:when>
??????????????<xsl:when 実験(する)="$sort-order='all'">
????????????????<xsl:適用する-templates select="mods:namePart[@type='family'] | mods:namePart[not(@type)]" />
????????????????<xsl:if 実験(する)="mods:namePart[@type='given']">
??????????????????<xsl:text>,?</xsl:text>
??????????????????<xsl:適用する-templates select="mods:namePart[@type='given']" />
????????????????</xsl:if>
????????????????<xsl:choose>
??????????????????<xsl:when 実験(する)="position() = last()" />
??????????????????<xsl:さもなければ>,?</xsl:さもなければ>
????????????????</xsl:choose>
??????????????</xsl:when>
??????????????
??????????????<xsl:さもなければ>
????????????????<xsl:適用する-templates select="mods:namePart[@type='given']" />
????????????????<xsl:適用する-templates select="mods:namePart[@type='family' or not(@type)]" />
??????????????</xsl:さもなければ>
????????????</xsl:choose>
??????????</xsl:when>
??????????<xsl:さもなければ>
????????????<xsl:if 実験(する)="position() = last()">
??????????????<xsl:text>?</xsl:text>
??????????????<xsl:value-of select="$multi-authors" />
????????????</xsl:if>
??????????</xsl:さもなければ>
????????</xsl:choose>
??????</xsl:when>
??????<xsl:さもなければ>
????????<xsl:choose>
??????????<xsl:when 実験(する)="$sort-order='first-author' and position() = 1 and parent::mods:mods">
????????????<xsl:適用する-templates select="mods:namePart[@type='family'] | mods:namePart[not(@type)]" />
????????????<xsl:if 実験(する)="mods:namePart[@type='given']">
??????????????<xsl:text>,?</xsl:text>
??????????????<xsl:適用する-templates select="mods:namePart[@type='given']" />
????????????</xsl:if>
??????????</xsl:when>
??????????<xsl:when 実験(する)="$sort-order='all'">
????????????<xsl:適用する-templates select="mods:namePart[@type='family'] | mods:namePart[not(@type)]" />
????????????<xsl:if 実験(する)="mods:namePart[@type='given']">
??????????????<xsl:text>,?</xsl:text>
??????????????<xsl:適用する-templates select="mods:namePart[@type='given']" />
????????????</xsl:if>
??????????</xsl:when>
??????????<xsl:さもなければ>
????????????<xsl:適用する-templates select="mods:namePart[@type='given']" />
????????????<xsl:適用する-templates select="mods:namePart[@type='family' or not(@type)]" />
??????????</xsl:さもなければ>
????????</xsl:choose>
????????<xsl:choose>
??????????<xsl:when 実験(する)="position() = last()" />
??????????<xsl:when 実験(する)="position() = last() - 1">?and?</xsl:when>
??????????<xsl:さもなければ>,?</xsl:さもなければ>
????????</xsl:choose>
??????</xsl:さもなければ>
????</xsl:choose>
????<xsl:value-of select="$suffix" />
??</xsl:template>
??
??<xsl:template match="mods:指名する[position() gt 1]/mods:役割" />
??<xsl:template match="mods:指名する[position()=1]/mods:役割">
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<(期間が)わたる class="役割">
??????<xsl:choose>
????????<xsl:when 実験(する)="mods:roleTerm='editor'">
??????????<xsl:value-of select="$prefix" />
??????????<xsl:choose>
????????????<xsl:when 実験(する)="count(../../mods:指名する) > 1">
??????????????<xsl:value-of select="$style-条件/cs:役割s/cs:役割[@称する,呼ぶ/期間/用語='editor']/cs:renderas/cs:多重の" />
????????????</xsl:when>
????????????<xsl:さもなければ>
??????????????<xsl:value-of select="$style-条件/cs:役割s/cs:役割[@称する,呼ぶ/期間/用語='editor']/cs:renderas/cs:選び出す/独身" />
????????????</xsl:さもなければ>
??????????</xsl:choose>
??????????<xsl:value-of select="$suffix" />
????????</xsl:when>
????????<xsl:when 実験(する)="mods:roleTerm='翻訳家'">
??????????<xsl:value-of select="$prefix" />
??????????<xsl:choose>
????????????<xsl:when 実験(する)="count > 1">
??????????????<xsl:value-of select="$style-条件/cs:役割s/cs:役割[@称する,呼ぶ/期間/用語='翻訳家']/cs:renderas/cs:多重の" />
????????????</xsl:when>
????????????<xsl:さもなければ>
??????????????<xsl:value-of select="$style-条件/cs:役割s/cs:役割[@称する,呼ぶ/期間/用語='翻訳家']/cs:renderas/cs:選び出す/独身" />
????????????</xsl:さもなければ>
??????????</xsl:choose>
??????????<xsl:value-of select="$suffix" />
????????</xsl:when>
??????</xsl:choose>
????</(期間が)わたる>
??</xsl:template>
??
??
??<xsl:template match="mods:指名する" 方式="short">
????<xsl:param 指名する="multi-authors" as="element(cs:多重の-authors)" tunnel="yes" />
????<xsl:variable 指名する="multi-author-use-first" select="$multi-authors/@use-first" as="xs:integer?" />
????<xsl:variable 指名する="multi-author-min" select="if ($multi-authors/@min-authors) then ($multi-authors/@min-authors) else xs:integer('999')" as="xs:integer" />
????<xsl:variable 指名する="use-multi-author-扱うing" select="xs:integer(count(../mods:指名する[mods:役割/mods:roleTerm=$primary-contributors])) ge $multi-author-min" as="xs:boolean" />
????<xsl:choose>
??????<xsl:when 実験(する)="$use-multi-author-扱うing">
????????<xsl:choose>
??????????<xsl:when 実験(する)="position() le xs:integer($multi-authors/@use-first)">
????????????<xsl:適用する-templates select="mods:namePart[not(@type='given')]" />
????????????<xsl:choose>
??????????????<xsl:when 実験(する)="position() = last()">?</xsl:when>
??????????????<xsl:さもなければ>,?</xsl:さもなければ>
????????????</xsl:choose>?
??????????</xsl:when>
??????????<xsl:さもなければ>
????????????<xsl:if 実験(する)="position() = last()">
??????????????<xsl:text>?</xsl:text>
??????????????<xsl:value-of select="$multi-authors" />
????????????</xsl:if>
??????????</xsl:さもなければ>
????????</xsl:choose>
??????</xsl:when>
??????<xsl:さもなければ>
????????<xsl:適用する-templates select="mods:namePart[not(@type='given')]" />
????????<xsl:choose>
??????????<xsl:when 実験(する)="position() = last()" />
??????????<xsl:when 実験(する)="position() = last() - 1">?and?</xsl:when>
??????????<xsl:さもなければ>,?</xsl:さもなければ>
????????</xsl:choose>????????
??????</xsl:さもなければ>
????</xsl:choose>
??</xsl:template>
??
??<xsl:template match="mods:namePart[@type='given']">
????<xsl:for-each select=".">
??????<xsl:choose>
????????<xsl:when 実験(する)="$style-指名するs/@initialize-with">
??????????<xsl:value-of select="substring(.,1,1)" />
????????</xsl:when>
????????<xsl:さもなければ>
??????????<xsl:value-of select="." />
??????????<xsl:text>?</xsl:text>
????????</xsl:さもなければ>
??????</xsl:choose>
??????<!--?FIX?ME:?the?に引き続いて?現在のs?(判決などを)下すing?difficulties?in?確かな ?styles?-->
??????<xsl:value-of select="$style-指名するs/@initialize-with" />
????</xsl:for-each>
??</xsl:template>
??<xsl:template match="mods:namePart[not(@type='given')]">
????<xsl:適用する-templates />
??</xsl:template>
??<xsl:template match="bib:year">
????<xsl:param 指名する="source" />
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<(期間が)わたる class="year">
??????<xsl:value-of select="$prefix" />
??????<xsl:適用する-templates />
??????<!--?we?can?接近?newly?creatod?重要な?element?to?append?suffix?-->
??????<xsl:適用する-templates select="../bib:year-suffix" />
??????<xsl:value-of select="$suffix" />
????</(期間が)わたる>
??</xsl:template>
??<xsl:template match="bib:year-suffix">
????<xsl:適用する-templates />
??</xsl:template>
??
??<xsl:template match="mods:titleInfo[not(@type='abbreviated')]" 方式="十分な">
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<xsl:param 指名する="font-style" />
????<xsl:param 指名する="font-負わせる" />
????<xsl:choose>
??????<xsl:when 実験(する)="../../@bib:refclass='part-inSerial' and not(../../mods:指名する[mods:役割/mods:roleTerm=$primary-contributors])" />
??????<xsl:さもなければ>
????????<(期間が)わたる class="肩書を与える">
??????????<xsl:value-of select="$prefix" />
??????????<xsl:if 実験(する)="$font-負わせる">
????????????<xsl:せいにする 指名する="font-負わせる">
??????????????<xsl:value-of select="$font-負わせる" />
????????????</xsl:せいにする>
??????????</xsl:if>
??????????<xsl:if 実験(する)="$font-style">
????????????<xsl:せいにする 指名する="font-style">
??????????????<xsl:value-of select="$font-style" />
????????????</xsl:せいにする>
??????????</xsl:if>
??????????<xsl:適用する-templates select="mods:肩書を与える" />
??????????<xsl:適用する-templates select="mods:subTitle" />
??????????<xsl:value-of select="$suffix" />
????????</(期間が)わたる>
??????</xsl:さもなければ>
????</xsl:choose>
??</xsl:template>
??<xsl:template match="mods:肩書を与える">
????<xsl:適用する-templates />
??</xsl:template>
??<xsl:template match="mods:subTitle">
????<xsl:text>:?</xsl:text>
????<xsl:適用する-templates />
??</xsl:template>
??<xsl:template match="mods:originInfo">
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<xsl:if 実験(する)="mods:place">
??????<(期間が)わたる class="origin">
????????<xsl:value-of select="$prefix" />
????????<xsl:適用する-templates />
????????<xsl:value-of select="$suffix" />
??????</(期間が)わたる>
????</xsl:if>
??</xsl:template>
??<xsl:template match="mods:publisher">
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<(期間が)わたる class="publisher">
??????<xsl:value-of select="$prefix" />
??????<xsl:適用する-templates />
??????<xsl:value-of select="$suffix" />
????</(期間が)わたる>
??</xsl:template>
??<xsl:template match="mods:place">
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<(期間が)わたる class="place">
??????<xsl:value-of select="$prefix" />
??????<xsl:適用する-templates select="mods:placeTerm" />
??????<xsl:value-of select="$suffix" />
????</(期間が)わたる>
??</xsl:template>
??<!--?the?に引き続いて?templates?need?to?be?連合させるd?-->
??<xsl:template match="mods:詳細(に述べる)[@type='容積/容量']">
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<xsl:variable 指名する="type" select="@type" />
????<(期間が)わたる class="容積/容量">
??????<xsl:value-of select="$prefix" />
??????<xsl:value-of select="$locators/cs:locator[@部隊=$type]/cs:renderas/cs:選び出す/独身" />
??????<xsl:value-of select="mods:number" />
??????<xsl:value-of select="$suffix" />
????</(期間が)わたる>
??</xsl:template>
??<xsl:template match="mods:詳細(に述べる)[@type='問題/発行する']">
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<xsl:variable 指名する="type" select="@type" />
????<(期間が)わたる class="問題/発行する">
??????<xsl:value-of select="$prefix" />
??????<xsl:value-of select="$locators/cs:locator[@部隊=$type]/cs:renderas/cs:選び出す/独身" />
??????<xsl:value-of select="mods:number" />
??????<xsl:value-of select="$suffix" />
????</(期間が)わたる>
??</xsl:template>
??<xsl:template match="mods:詳細(に述べる)[@type='とじ込み/提出する']">
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<xsl:variable 指名する="type" select="@type" />
????<(期間が)わたる class="とじ込み/提出する">
??????<xsl:value-of select="$prefix" />
??????<xsl:value-of select="$locators/cs:locator[@部隊=$type]/cs:renderas/cs:選び出す/独身" />
??????<xsl:value-of select="mods:number" />
??????<xsl:value-of select="$suffix" />
????</(期間が)わたる>
??</xsl:template>
??<xsl:template match="mods:詳細(に述べる)[@type='paragraph']">
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<xsl:variable 指名する="type" select="@type" />
????<xsl:value-of select="$prefix" />
????<xsl:value-of select="$locators/cs:locator[@部隊=$type]/cs:renderas/cs:選び出す/独身" />
????<xsl:value-of select="mods:number" />
????<xsl:value-of select="$suffix" />
??</xsl:template>
??<xsl:template match="mods:extent">
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<xsl:variable 指名する="部隊" select="@部隊" />
????<(期間が)わたる class="locator">
??????<xsl:value-of select="$prefix" />
??????<xsl:value-of select="$locators/cs:locator[@部隊=$unit]/cs:renderas/cs:多重の" />
??????<xsl:value-of select="mods:start" />
??????<xsl:if 実験(する)="mods:end">
????????<xsl:text>–</xsl:text>
????????<xsl:value-of select="bib:number-condense(mods:start,mods:end)" />
??????</xsl:if>
??????<xsl:value-of select="$suffix" />
????</(期間が)わたる>
??</xsl:template>
??<xsl:template match="mods:typeOfResource | mods:発行" />
??<xsl:template match="mods:genre">
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<xsl:variable 指名する="genre" select="." />
????<(期間が)わたる class="genre">
??????<xsl:value-of select="$prefix" />
??????<xsl:value-of select="$style-条件/cs:genres/cs:genre[@称する,呼ぶ/期間/用語=$genre]/cs:renderas" />
??????<xsl:value-of select="$suffix" />
????</(期間が)わたる>
??</xsl:template>
??<xsl:template match="mods:場所">
????<xsl:param 指名する="source" />
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<xsl:value-of select="$prefix" />
????<(期間が)わたる class="availability">
??????<xsl:適用する-templates />
????</(期間が)わたる>
????<xsl:value-of select="$suffix" />
??</xsl:template>
??<xsl:template match="mods:url">
????<xsl:value-of select="." />
????<xsl:if 実験(する)="@dateLastAccessed">
??????<xsl:text>?[接近d?on?</xsl:text>
??????<xsl:適用する-templates select="./@dateLastAccessed" />
??????<xsl:text>]</xsl:text>
????</xsl:if>
??</xsl:template>
??<xsl:template match="mods:physicalLocation">
????<xsl:value-of select="." />
??</xsl:template>
??<!--?TODO:?date?扱うing?probably?needs?to?be?redone?as?a?機能(する)/行事?-->
??<xsl:template match="mods:url/@dateLastAccessed">
????<xsl:variable 指名する="現在の" select="現在の()" />
????<xsl:variable 指名する="month-part" select="$month-判型[xs:integer(substring($current,6,2))]" />
????<xsl:variable 指名する="day-part">
??????<xsl:choose>
????????<xsl:when 実験(する)="substring(.,9,1) = '0'">
??????????<xsl:value-of select="substring(.,10,1)" />
????????</xsl:when>
????????<xsl:さもなければ>
??????????<xsl:value-of select="substring(.,9,2)" />
????????</xsl:さもなければ>
??????</xsl:choose>
????</xsl:variable>
????<(期間が)わたる class="date-接近d">
??????<xsl:if 実験(する)="substring(.,6,2)">
????????<xsl:text />
????????<xsl:value-of select="$month-part" />
??????</xsl:if>
??????<xsl:if 実験(する)="substring(.,9,2)">
????????<xsl:text>?</xsl:text>
????????<xsl:value-of select="$day-part" />
??????</xsl:if>
??????<xsl:if 実験(する)="substring(.,6,2)">
????????<xsl:text />
??????</xsl:if>
??????<xsl:if 実験(する)="../@dateLastAccessed">
????????<xsl:text>,?</xsl:text>
????????<xsl:value-of select="substring(.,1,4)" />
??????</xsl:if>
????</(期間が)わたる>
??</xsl:template>
??
??<xsl:variable 指名する="month-判型" as="element()*">
????<xsl:sequence select="$styles/cs:citationstyle/cs:content/cs:dates/cs:months/cs:month" />
??</xsl:variable>
??<xsl:template match="mods:date | mods:dateIssued" 方式="month">
????<xsl:param 指名する="source" />
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<xsl:variable 指名する="現在の" select="現在の()" />
????<xsl:choose>
??????<xsl:when 実験(する)="現在の() castable as xs:gYearMonth or 現在の() castable as xs:date">
????????<xsl:variable 指名する="month-part" select="$month-判型[xs:integer(substring($current,6,2))]" />
????????<(期間が)わたる class="month">
??????????<xsl:適用する-templates select="$prefix" />
??????????<xsl:value-of select="$month-part" />
??????????<xsl:適用する-templates select="$suffix" />
????????</(期間が)わたる>
??????</xsl:when>
????</xsl:choose>
??</xsl:template>
??<xsl:template match="mods:date | mods:dateIssued" 方式="day">
????<xsl:param 指名する="source" />
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<xsl:variable 指名する="day-part">
??????<xsl:choose>
????????<xsl:when 実験(する)="substring(.,9,1) = '0'">
??????????<xsl:value-of select="substring(.,10,1)" />
????????</xsl:when>
????????<xsl:さもなければ>
??????????<xsl:value-of select="substring(.,9,2)" />
????????</xsl:さもなければ>
??????</xsl:choose>
????</xsl:variable>
????<xsl:if 実験(する)="現在の() castable as xs:date">
??????<(期間が)わたる class="day">
????????<xsl:value-of select="$prefix" />
????????<xsl:value-of select="$day-part" />
????????<xsl:value-of select="$suffix" />
??????</(期間が)わたる>
????</xsl:if>
??</xsl:template>
??<xsl:template match="mods:公式文書,認める[@type='citation']">
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<(期間が)わたる class="公式文書,認める">
??????<xsl:value-of select="$prefix" />
??????<xsl:value-of select="." />
??????<xsl:value-of select="$suffix" />
????</(期間が)わたる>
??</xsl:template>
??<xsl:template match="mods:physicalDescription | mods:公式文書,認める[not(@type='citation')]" />
</xsl:stylesheet>
??<!--?===?licensed?under?CC-GNU?GPL;?see?http://creativecommons.org/licenses/GPL/2.0?===?-->
??
??<xdoc:doc type="stylesheet">
????<xdoc:short>過程s?MODS?文書s?into?a?formatted?中間の?代表.</xdoc:short>
????<xdoc:author>Bruce?D’Arcus</xdoc:author>
????<xdoc:copyright>2004,?Bruce?D’Arcus</xdoc:copyright>
??</xdoc:doc>
????<xdoc:short>過程s?MODS?文書s?into?a?formatted?中間の?代表.</xdoc:short>
????<xdoc:author>Bruce?D’Arcus</xdoc:author>
????<xdoc:copyright>2004,?Bruce?D’Arcus</xdoc:copyright>
??</xdoc:doc>
??<!--?punctuation?variables?-->
??<xsl:variable 指名する="bibref-before">
????<xsl:text />
??</xsl:variable>
??<xsl:variable 指名する="bibref-after">
????<xsl:text>.</xsl:text>
??</xsl:variable>
??<xsl:template match="bib:noname-代用品,人">
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<(期間が)わたる class="creator">
??????<xsl:value-of select="$prefix" />
??????<xsl:value-of select="." />
??????<xsl:value-of select="$suffix" />
????</(期間が)わたる>
??</xsl:template>
??
??<xdoc:doc>The?"十分な"?方式?(判決などを)下すs?完全にする?personal?指名するs?in?bibliographies?and?footnote/endnote
????style?ctiations.</xdoc:doc>
????style?ctiations.</xdoc:doc>
??<xsl:template match="mods:指名する" 方式="十分な">
????<xsl:param 指名する="sort-order" />
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<xsl:param 指名する="multi-authors" as="element(cs:多重の-authors)?" tunnel="yes" />
????<xsl:variable 指名する="multi-author-min" select="if ($multi-authors/@min-authors) then ($multi-authors/@min-authors) else xs:integer('999')" as="xs:integer" />
????<xsl:variable 指名する="use-multi-author-扱うing" select="xs:integer(count(../mods:指名する[mods:役割/mods:roleTerm=$primary-contributors])) ge $multi-author-min" as="xs:boolean" />
????<xsl:value-of select="$prefix" />
????<xsl:choose>
??????<xsl:when 実験(する)="$use-multi-author-扱うing">
????????<xsl:choose>
??????????<xsl:when 実験(する)="position() le xs:integer($multi-authors/@use-first)">
????????????<xsl:choose>
??????????????<xsl:when 実験(する)="$sort-order='first-author' and parent::mods:mods">
????????????????<xsl:適用する-templates select="mods:namePart[@type='family'] | mods:namePart[not(@type)]" />
????????????????<xsl:if 実験(する)="mods:namePart[@type='given']">
??????????????????<xsl:text>,?</xsl:text>
??????????????????<xsl:適用する-templates select="mods:namePart[@type='given']" />
????????????????</xsl:if>
??????????????</xsl:when>
??????????????
??????????????<xsl:when 実験(する)="$sort-order='first-author' and position() = 1 and parent::mods:mods">
????????????????<xsl:適用する-templates select="mods:namePart[@type='family'] | mods:namePart[not(@type)]" />
????????????????<xsl:if 実験(する)="mods:namePart[@type='given']">
??????????????????<xsl:text>,?</xsl:text>
??????????????????<xsl:適用する-templates select="mods:namePart[@type='given']" />
????????????????</xsl:if>
??????????????</xsl:when>
??????????????<xsl:when 実験(する)="$sort-order='all'">
????????????????<xsl:適用する-templates select="mods:namePart[@type='family'] | mods:namePart[not(@type)]" />
????????????????<xsl:if 実験(する)="mods:namePart[@type='given']">
??????????????????<xsl:text>,?</xsl:text>
??????????????????<xsl:適用する-templates select="mods:namePart[@type='given']" />
????????????????</xsl:if>
????????????????<xsl:choose>
??????????????????<xsl:when 実験(する)="position() = last()" />
??????????????????<xsl:さもなければ>,?</xsl:さもなければ>
????????????????</xsl:choose>
??????????????</xsl:when>
??????????????
??????????????<xsl:さもなければ>
????????????????<xsl:適用する-templates select="mods:namePart[@type='given']" />
????????????????<xsl:適用する-templates select="mods:namePart[@type='family' or not(@type)]" />
??????????????</xsl:さもなければ>
????????????</xsl:choose>
??????????</xsl:when>
??????????<xsl:さもなければ>
????????????<xsl:if 実験(する)="position() = last()">
??????????????<xsl:text>?</xsl:text>
??????????????<xsl:value-of select="$multi-authors" />
????????????</xsl:if>
??????????</xsl:さもなければ>
????????</xsl:choose>
??????</xsl:when>
??????<xsl:さもなければ>
????????<xsl:choose>
??????????<xsl:when 実験(する)="$sort-order='first-author' and position() = 1 and parent::mods:mods">
????????????<xsl:適用する-templates select="mods:namePart[@type='family'] | mods:namePart[not(@type)]" />
????????????<xsl:if 実験(する)="mods:namePart[@type='given']">
??????????????<xsl:text>,?</xsl:text>
??????????????<xsl:適用する-templates select="mods:namePart[@type='given']" />
????????????</xsl:if>
??????????</xsl:when>
??????????<xsl:when 実験(する)="$sort-order='all'">
????????????<xsl:適用する-templates select="mods:namePart[@type='family'] | mods:namePart[not(@type)]" />
????????????<xsl:if 実験(する)="mods:namePart[@type='given']">
??????????????<xsl:text>,?</xsl:text>
??????????????<xsl:適用する-templates select="mods:namePart[@type='given']" />
????????????</xsl:if>
??????????</xsl:when>
??????????<xsl:さもなければ>
????????????<xsl:適用する-templates select="mods:namePart[@type='given']" />
????????????<xsl:適用する-templates select="mods:namePart[@type='family' or not(@type)]" />
??????????</xsl:さもなければ>
????????</xsl:choose>
????????<xsl:choose>
??????????<xsl:when 実験(する)="position() = last()" />
??????????<xsl:when 実験(する)="position() = last() - 1">?and?</xsl:when>
??????????<xsl:さもなければ>,?</xsl:さもなければ>
????????</xsl:choose>
??????</xsl:さもなければ>
????</xsl:choose>
????<xsl:value-of select="$suffix" />
??</xsl:template>
??
??<xsl:template match="mods:指名する[position() gt 1]/mods:役割" />
??<xsl:template match="mods:指名する[position()=1]/mods:役割">
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<(期間が)わたる class="役割">
??????<xsl:choose>
????????<xsl:when 実験(する)="mods:roleTerm='editor'">
??????????<xsl:value-of select="$prefix" />
??????????<xsl:choose>
????????????<xsl:when 実験(する)="count(../../mods:指名する) > 1">
??????????????<xsl:value-of select="$style-条件/cs:役割s/cs:役割[@称する,呼ぶ/期間/用語='editor']/cs:renderas/cs:多重の" />
????????????</xsl:when>
????????????<xsl:さもなければ>
??????????????<xsl:value-of select="$style-条件/cs:役割s/cs:役割[@称する,呼ぶ/期間/用語='editor']/cs:renderas/cs:選び出す/独身" />
????????????</xsl:さもなければ>
??????????</xsl:choose>
??????????<xsl:value-of select="$suffix" />
????????</xsl:when>
????????<xsl:when 実験(する)="mods:roleTerm='翻訳家'">
??????????<xsl:value-of select="$prefix" />
??????????<xsl:choose>
????????????<xsl:when 実験(する)="count > 1">
??????????????<xsl:value-of select="$style-条件/cs:役割s/cs:役割[@称する,呼ぶ/期間/用語='翻訳家']/cs:renderas/cs:多重の" />
????????????</xsl:when>
????????????<xsl:さもなければ>
??????????????<xsl:value-of select="$style-条件/cs:役割s/cs:役割[@称する,呼ぶ/期間/用語='翻訳家']/cs:renderas/cs:選び出す/独身" />
????????????</xsl:さもなければ>
??????????</xsl:choose>
??????????<xsl:value-of select="$suffix" />
????????</xsl:when>
??????</xsl:choose>
????</(期間が)わたる>
??</xsl:template>
??
??
??<xdoc:doc>The?"short"?方式?(判決などを)下すs?just?family?指名する(s)?commom?in?author-year?citations.</xdoc:doc>
??<xsl:template match="mods:指名する" 方式="short">
????<xsl:param 指名する="multi-authors" as="element(cs:多重の-authors)" tunnel="yes" />
????<xsl:variable 指名する="multi-author-use-first" select="$multi-authors/@use-first" as="xs:integer?" />
????<xsl:variable 指名する="multi-author-min" select="if ($multi-authors/@min-authors) then ($multi-authors/@min-authors) else xs:integer('999')" as="xs:integer" />
????<xsl:variable 指名する="use-multi-author-扱うing" select="xs:integer(count(../mods:指名する[mods:役割/mods:roleTerm=$primary-contributors])) ge $multi-author-min" as="xs:boolean" />
????<xsl:choose>
??????<xsl:when 実験(する)="$use-multi-author-扱うing">
????????<xsl:choose>
??????????<xsl:when 実験(する)="position() le xs:integer($multi-authors/@use-first)">
????????????<xsl:適用する-templates select="mods:namePart[not(@type='given')]" />
????????????<xsl:choose>
??????????????<xsl:when 実験(する)="position() = last()">?</xsl:when>
??????????????<xsl:さもなければ>,?</xsl:さもなければ>
????????????</xsl:choose>?
??????????</xsl:when>
??????????<xsl:さもなければ>
????????????<xsl:if 実験(する)="position() = last()">
??????????????<xsl:text>?</xsl:text>
??????????????<xsl:value-of select="$multi-authors" />
????????????</xsl:if>
??????????</xsl:さもなければ>
????????</xsl:choose>
??????</xsl:when>
??????<xsl:さもなければ>
????????<xsl:適用する-templates select="mods:namePart[not(@type='given')]" />
????????<xsl:choose>
??????????<xsl:when 実験(する)="position() = last()" />
??????????<xsl:when 実験(する)="position() = last() - 1">?and?</xsl:when>
??????????<xsl:さもなければ>,?</xsl:さもなければ>
????????</xsl:choose>????????
??????</xsl:さもなければ>
????</xsl:choose>
??</xsl:template>
??
??<xsl:template match="mods:namePart[@type='given']">
????<xsl:for-each select=".">
??????<xsl:choose>
????????<xsl:when 実験(する)="$style-指名するs/@initialize-with">
??????????<xsl:value-of select="substring(.,1,1)" />
????????</xsl:when>
????????<xsl:さもなければ>
??????????<xsl:value-of select="." />
??????????<xsl:text>?</xsl:text>
????????</xsl:さもなければ>
??????</xsl:choose>
??????<!--?FIX?ME:?the?に引き続いて?現在のs?(判決などを)下すing?difficulties?in?確かな ?styles?-->
??????<xsl:value-of select="$style-指名するs/@initialize-with" />
????</xsl:for-each>
??</xsl:template>
??<xsl:template match="mods:namePart[not(@type='given')]">
????<xsl:適用する-templates />
??</xsl:template>
??<xsl:template match="bib:year">
????<xsl:param 指名する="source" />
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<(期間が)わたる class="year">
??????<xsl:value-of select="$prefix" />
??????<xsl:適用する-templates />
??????<!--?we?can?接近?newly?creatod?重要な?element?to?append?suffix?-->
??????<xsl:適用する-templates select="../bib:year-suffix" />
??????<xsl:value-of select="$suffix" />
????</(期間が)わたる>
??</xsl:template>
??<xsl:template match="bib:year-suffix">
????<xsl:適用する-templates />
??</xsl:template>
??
??<xsl:template match="mods:titleInfo[not(@type='abbreviated')]" 方式="十分な">
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<xsl:param 指名する="font-style" />
????<xsl:param 指名する="font-負わせる" />
????<xsl:choose>
??????<xsl:when 実験(する)="../../@bib:refclass='part-inSerial' and not(../../mods:指名する[mods:役割/mods:roleTerm=$primary-contributors])" />
??????<xsl:さもなければ>
????????<(期間が)わたる class="肩書を与える">
??????????<xsl:value-of select="$prefix" />
??????????<xsl:if 実験(する)="$font-負わせる">
????????????<xsl:せいにする 指名する="font-負わせる">
??????????????<xsl:value-of select="$font-負わせる" />
????????????</xsl:せいにする>
??????????</xsl:if>
??????????<xsl:if 実験(する)="$font-style">
????????????<xsl:せいにする 指名する="font-style">
??????????????<xsl:value-of select="$font-style" />
????????????</xsl:せいにする>
??????????</xsl:if>
??????????<xsl:適用する-templates select="mods:肩書を与える" />
??????????<xsl:適用する-templates select="mods:subTitle" />
??????????<xsl:value-of select="$suffix" />
????????</(期間が)わたる>
??????</xsl:さもなければ>
????</xsl:choose>
??</xsl:template>
??<xsl:template match="mods:肩書を与える">
????<xsl:適用する-templates />
??</xsl:template>
??<xsl:template match="mods:subTitle">
????<xsl:text>:?</xsl:text>
????<xsl:適用する-templates />
??</xsl:template>
??<xsl:template match="mods:originInfo">
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<xsl:if 実験(する)="mods:place">
??????<(期間が)わたる class="origin">
????????<xsl:value-of select="$prefix" />
????????<xsl:適用する-templates />
????????<xsl:value-of select="$suffix" />
??????</(期間が)わたる>
????</xsl:if>
??</xsl:template>
??<xsl:template match="mods:publisher">
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<(期間が)わたる class="publisher">
??????<xsl:value-of select="$prefix" />
??????<xsl:適用する-templates />
??????<xsl:value-of select="$suffix" />
????</(期間が)わたる>
??</xsl:template>
??<xsl:template match="mods:place">
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<(期間が)わたる class="place">
??????<xsl:value-of select="$prefix" />
??????<xsl:適用する-templates select="mods:placeTerm" />
??????<xsl:value-of select="$suffix" />
????</(期間が)わたる>
??</xsl:template>
??<!--?the?に引き続いて?templates?need?to?be?連合させるd?-->
??<xsl:template match="mods:詳細(に述べる)[@type='容積/容量']">
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<xsl:variable 指名する="type" select="@type" />
????<(期間が)わたる class="容積/容量">
??????<xsl:value-of select="$prefix" />
??????<xsl:value-of select="$locators/cs:locator[@部隊=$type]/cs:renderas/cs:選び出す/独身" />
??????<xsl:value-of select="mods:number" />
??????<xsl:value-of select="$suffix" />
????</(期間が)わたる>
??</xsl:template>
??<xsl:template match="mods:詳細(に述べる)[@type='問題/発行する']">
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<xsl:variable 指名する="type" select="@type" />
????<(期間が)わたる class="問題/発行する">
??????<xsl:value-of select="$prefix" />
??????<xsl:value-of select="$locators/cs:locator[@部隊=$type]/cs:renderas/cs:選び出す/独身" />
??????<xsl:value-of select="mods:number" />
??????<xsl:value-of select="$suffix" />
????</(期間が)わたる>
??</xsl:template>
??<xsl:template match="mods:詳細(に述べる)[@type='とじ込み/提出する']">
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<xsl:variable 指名する="type" select="@type" />
????<(期間が)わたる class="とじ込み/提出する">
??????<xsl:value-of select="$prefix" />
??????<xsl:value-of select="$locators/cs:locator[@部隊=$type]/cs:renderas/cs:選び出す/独身" />
??????<xsl:value-of select="mods:number" />
??????<xsl:value-of select="$suffix" />
????</(期間が)わたる>
??</xsl:template>
??<xsl:template match="mods:詳細(に述べる)[@type='paragraph']">
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<xsl:variable 指名する="type" select="@type" />
????<xsl:value-of select="$prefix" />
????<xsl:value-of select="$locators/cs:locator[@部隊=$type]/cs:renderas/cs:選び出す/独身" />
????<xsl:value-of select="mods:number" />
????<xsl:value-of select="$suffix" />
??</xsl:template>
??<xsl:template match="mods:extent">
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<xsl:variable 指名する="部隊" select="@部隊" />
????<(期間が)わたる class="locator">
??????<xsl:value-of select="$prefix" />
??????<xsl:value-of select="$locators/cs:locator[@部隊=$unit]/cs:renderas/cs:多重の" />
??????<xsl:value-of select="mods:start" />
??????<xsl:if 実験(する)="mods:end">
????????<xsl:text>–</xsl:text>
????????<xsl:value-of select="bib:number-condense(mods:start,mods:end)" />
??????</xsl:if>
??????<xsl:value-of select="$suffix" />
????</(期間が)わたる>
??</xsl:template>
??<xsl:template match="mods:typeOfResource | mods:発行" />
??<xsl:template match="mods:genre">
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<xsl:variable 指名する="genre" select="." />
????<(期間が)わたる class="genre">
??????<xsl:value-of select="$prefix" />
??????<xsl:value-of select="$style-条件/cs:genres/cs:genre[@称する,呼ぶ/期間/用語=$genre]/cs:renderas" />
??????<xsl:value-of select="$suffix" />
????</(期間が)わたる>
??</xsl:template>
??<xsl:template match="mods:場所">
????<xsl:param 指名する="source" />
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<xsl:value-of select="$prefix" />
????<(期間が)わたる class="availability">
??????<xsl:適用する-templates />
????</(期間が)わたる>
????<xsl:value-of select="$suffix" />
??</xsl:template>
??<xsl:template match="mods:url">
????<xsl:value-of select="." />
????<xsl:if 実験(する)="@dateLastAccessed">
??????<xsl:text>?[接近d?on?</xsl:text>
??????<xsl:適用する-templates select="./@dateLastAccessed" />
??????<xsl:text>]</xsl:text>
????</xsl:if>
??</xsl:template>
??<xsl:template match="mods:physicalLocation">
????<xsl:value-of select="." />
??</xsl:template>
??<!--?TODO:?date?扱うing?probably?needs?to?be?redone?as?a?機能(する)/行事?-->
??<xsl:template match="mods:url/@dateLastAccessed">
????<xsl:variable 指名する="現在の" select="現在の()" />
????<xsl:variable 指名する="month-part" select="$month-判型[xs:integer(substring($current,6,2))]" />
????<xsl:variable 指名する="day-part">
??????<xsl:choose>
????????<xsl:when 実験(する)="substring(.,9,1) = '0'">
??????????<xsl:value-of select="substring(.,10,1)" />
????????</xsl:when>
????????<xsl:さもなければ>
??????????<xsl:value-of select="substring(.,9,2)" />
????????</xsl:さもなければ>
??????</xsl:choose>
????</xsl:variable>
????<(期間が)わたる class="date-接近d">
??????<xsl:if 実験(する)="substring(.,6,2)">
????????<xsl:text />
????????<xsl:value-of select="$month-part" />
??????</xsl:if>
??????<xsl:if 実験(する)="substring(.,9,2)">
????????<xsl:text>?</xsl:text>
????????<xsl:value-of select="$day-part" />
??????</xsl:if>
??????<xsl:if 実験(する)="substring(.,6,2)">
????????<xsl:text />
??????</xsl:if>
??????<xsl:if 実験(する)="../@dateLastAccessed">
????????<xsl:text>,?</xsl:text>
????????<xsl:value-of select="substring(.,1,4)" />
??????</xsl:if>
????</(期間が)わたる>
??</xsl:template>
??
??<xsl:variable 指名する="month-判型" as="element()*">
????<xsl:sequence select="$styles/cs:citationstyle/cs:content/cs:dates/cs:months/cs:month" />
??</xsl:variable>
??<xsl:template match="mods:date | mods:dateIssued" 方式="month">
????<xsl:param 指名する="source" />
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<xsl:variable 指名する="現在の" select="現在の()" />
????<xsl:choose>
??????<xsl:when 実験(する)="現在の() castable as xs:gYearMonth or 現在の() castable as xs:date">
????????<xsl:variable 指名する="month-part" select="$month-判型[xs:integer(substring($current,6,2))]" />
????????<(期間が)わたる class="month">
??????????<xsl:適用する-templates select="$prefix" />
??????????<xsl:value-of select="$month-part" />
??????????<xsl:適用する-templates select="$suffix" />
????????</(期間が)わたる>
??????</xsl:when>
????</xsl:choose>
??</xsl:template>
??<xsl:template match="mods:date | mods:dateIssued" 方式="day">
????<xsl:param 指名する="source" />
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<xsl:variable 指名する="day-part">
??????<xsl:choose>
????????<xsl:when 実験(する)="substring(.,9,1) = '0'">
??????????<xsl:value-of select="substring(.,10,1)" />
????????</xsl:when>
????????<xsl:さもなければ>
??????????<xsl:value-of select="substring(.,9,2)" />
????????</xsl:さもなければ>
??????</xsl:choose>
????</xsl:variable>
????<xsl:if 実験(する)="現在の() castable as xs:date">
??????<(期間が)わたる class="day">
????????<xsl:value-of select="$prefix" />
????????<xsl:value-of select="$day-part" />
????????<xsl:value-of select="$suffix" />
??????</(期間が)わたる>
????</xsl:if>
??</xsl:template>
??<xsl:template match="mods:公式文書,認める[@type='citation']">
????<xsl:param 指名する="prefix" />
????<xsl:param 指名する="suffix" />
????<(期間が)わたる class="公式文書,認める">
??????<xsl:value-of select="$prefix" />
??????<xsl:value-of select="." />
??????<xsl:value-of select="$suffix" />
????</(期間が)わたる>
??</xsl:template>
??<xsl:template match="mods:physicalDescription | mods:公式文書,認める[not(@type='citation')]" />
</xsl:stylesheet>
v

