2016-08-19 2 views
1

私の論文ではAPAの引用を使用しています。しかし、タイ語で書かれた研究文書では、インライン引用は、APA(姓、年)ではなく、(名字姓、年)の形式でなければなりません。これは、C:\ Program Files(x86)\ Microsoft Office \ Office14 \ Bibliography \ StyleのAPA.XSLファイルへの調整が必要なカスタムMicrosoft Word 2013参考文献スタイルで行う必要があります。 :Word 2013 Bibliographyスタイルを調整して、ソースロケールに基づいて(firstname lastname、year)のAPA引用を表示します。

<xsl:choose> 
    <xsl:when test="b:LCID='1054'"> 
     (Firstname Lastname, year) 
    </xsl:when> 
    <xsl:otherwise> 
     (Lastname, year) 
    </xsl:otherwise> 
</xsl:choose> 

私は追加のロジックは、このセクションで追加する必要があることを信じて、それはXSLに調整を伴わなければならない:テンプレートformatNameCoreを。

<xsl:variable name="author0"> 
</xsl:variable> 

しかし、私の心はそれを超えて空白を描いています。誰かが私に正しい方向を向けることができるのだろうかと思う。ヘルプは非常に感謝しています。

Here's the current xsl file

答えて

0

これは、これらのテンプレートとは何かを持っている:

<xsl:template name="templ_prop_APA_CitationShort_FML" > 
    <xsl:param name="LCID" /> 
    <xsl:variable name="_LCID"> 
    <xsl:call-template name="localLCID"> 
     <xsl:with-param name="LCID" select="$LCID"/> 
    </xsl:call-template> 
    </xsl:variable> 
    <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:CitationShort/b:FML"/> 
</xsl:template> 
<!-- ... --> 
<xsl:template name="templ_prop_APA_CitationShort_FL" > 
    <xsl:param name="LCID" /> 
    <xsl:variable name="_LCID"> 
    <xsl:call-template name="localLCID"> 
     <xsl:with-param name="LCID" select="$LCID"/> 
    </xsl:call-template> 
    </xsl:variable> 
    <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:CitationShort/b:FL"/> 
</xsl:template> 

試してみてください。

<xsl:template name="templ_prop_APA_CitationShort_FML" > 
    <xsl:param name="LCID" /> 
    <xsl:variable name="_LCID"> 
    <xsl:call-template name="localLCID"> 
     <xsl:with-param name="LCID" select="$LCID"/> 
    </xsl:call-template> 
    </xsl:variable> 
    <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:CitationShort/b:FM"/> 
    <xsl:text> </xsl:text> 
    <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:CitationShort/b:FML"/> 
</xsl:template> 
<!-- ... --> 
<xsl:template name="templ_prop_APA_CitationShort_FL" > 
    <xsl:param name="LCID" /> 
    <xsl:variable name="_LCID"> 
    <xsl:call-template name="localLCID"> 
     <xsl:with-param name="LCID" select="$LCID"/> 
    </xsl:call-template> 
    </xsl:variable> 
    <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:CitationShort/b:FM"/> 
    <xsl:text> </xsl:text> 
    <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:CitationShort/b:FL"/> 
</xsl:template> 

私は、これらの値が読み込まなっている場所を把握することはできませんので、これは私ができる最善であります今のところ。

<xsl:variable name="author0">...</xsl:variable>のループではなく、ここから変更しても問題ありません。この変更はあなたの参考文献には影響しません。

他のtemp1_prop_APA_*_*テンプレートも同様に変更する必要があります。いくつかは、より多くの検索(および読み取り)した後

+0

ありがとう、クリス。仰るとおりです。 temp1_prop_APA _ * _ *テンプレートであなたの提案どおりに調整します。ちょうど私がそれらのb:FML、b:FM、b:FLなどの定義が何であるかを知ることができれば幸いです。不思議なことに、C:/での検索でもそこに関連するものはないようです。 –

1

、私は以下含まれるすべてのtemp1_prop_APA_ は_が指定されているthis postつまずいています

templ_prop_APA_MainAuthors_FML = %L, %f %m 
templ_prop_APA_MainAuthors_FM = %f %m 
templ_prop_APA_MainAuthors_ML = %L, %m 
templ_prop_APA_MainAuthors_FL = %L, %f 

は失うものは何も持っていません。したがって、私は試しました。これらの%L、%F、%Mとその小文字の対応がどれほど正確になったのか分かりませんが、表現はうまくいきます。次に、調整されたコードのセクションが以下に含まれています。これまでのところ、それは目的のために働くようです。

<xsl:template name="templ_prop_APA_CitationLong_FML" > 
    <xsl:param name="LCID" /> 
     <xsl:variable name="_LCID"> 
      <xsl:call-template name="localLCID"> 
       <xsl:with-param name="LCID" select="$LCID"/> 
      </xsl:call-template> 
     </xsl:variable> 
    <xsl:choose> 
     <xsl:when test="$_LCID='1054'"> 
      <xsl:value-of select="'%F %M %L'"/> 
     </xsl:when> 
     <xsl:otherwise> 
      <xsl:value-of select="'%L, %F %M'"/> 
     </xsl:otherwise> 
    </xsl:choose> 
</xsl:template> 

<xsl:template name="templ_prop_APA_CitationLong_FM" > 
    <xsl:param name="LCID" /> 
    <xsl:variable name="_LCID"> 
     <xsl:call-template name="localLCID"> 
      <xsl:with-param name="LCID" select="$LCID"/> 
     </xsl:call-template> 
    </xsl:variable> 
    <xsl:choose> 
     <xsl:when test="$_LCID='1054'"> 
      <xsl:value-of select="'%F %M'"/> 
     </xsl:when> 
     <xsl:otherwise> 
      <xsl:value-of select="'%F %M'"/> 
     </xsl:otherwise> 
    </xsl:choose> 
</xsl:template> 

<xsl:template name="templ_prop_APA_CitationLong_ML" > 
    <xsl:param name="LCID" /> 
    <xsl:variable name="_LCID"> 
     <xsl:call-template name="localLCID"> 
      <xsl:with-param name="LCID" select="$LCID"/> 
     </xsl:call-template> 
    </xsl:variable> 
    <xsl:choose> 
     <xsl:when test="$_LCID='1054'"> 
      <xsl:value-of select="'%M %L'"/> 
     </xsl:when> 
     <xsl:otherwise> 
      <xsl:value-of select="'%L, %M'"/> 
     </xsl:otherwise> 
    </xsl:choose> 
</xsl:template> 

<xsl:template name="templ_prop_APA_CitationLong_FL" > 
    <xsl:param name="LCID" /> 
    <xsl:variable name="_LCID"> 
     <xsl:call-template name="localLCID"> 
      <xsl:with-param name="LCID" select="$LCID"/> 
     </xsl:call-template> 
    </xsl:variable> 
    <xsl:choose> 
     <xsl:when test="$_LCID='1054'"> 
      <xsl:value-of select="'%F %L'"/> 
     </xsl:when> 
     <xsl:otherwise> 
      <xsl:value-of select="'%L, %F'"/> 
     </xsl:otherwise> 
    </xsl:choose> 
</xsl:template> 

<xsl:template name="templ_prop_APA_CitationShort_FML" > 
    <xsl:param name="LCID" /> 
    <xsl:variable name="_LCID"> 
     <xsl:call-template name="localLCID"> 
      <xsl:with-param name="LCID" select="$LCID"/> 
     </xsl:call-template> 
    </xsl:variable> 
    <xsl:choose> 
     <xsl:when test="$_LCID='1054'"> 
      <xsl:value-of select="'%F %M %L'"/> 
     </xsl:when> 
     <xsl:otherwise> 
      <xsl:value-of select="'%L'"/> 
     </xsl:otherwise> 
    </xsl:choose> 
    </xsl:template> 

<xsl:template name="templ_prop_APA_CitationShort_FM" > 
    <xsl:param name="LCID" /> 
    <xsl:variable name="_LCID"> 
     <xsl:call-template name="localLCID"> 
      <xsl:with-param name="LCID" select="$LCID"/> 
     </xsl:call-template> 
    </xsl:variable> 
    <xsl:choose> 
     <xsl:when test="$_LCID='1054'"> 
      <xsl:value-of select="'%F %M'"/> 
     </xsl:when> 
     <xsl:otherwise> 
      <xsl:value-of select="'%F'"/> 
     </xsl:otherwise> 
    </xsl:choose> 
</xsl:template> 

<xsl:template name="templ_prop_APA_CitationShort_ML" > 
    <xsl:param name="LCID" /> 
    <xsl:variable name="_LCID"> 
     <xsl:call-template name="localLCID"> 
      <xsl:with-param name="LCID" select="$LCID"/> 
     </xsl:call-template> 
    </xsl:variable> 
    <xsl:choose> 
     <xsl:when test="$_LCID='1054'"> 
      <xsl:value-of select="'%M %L'"/> 
     </xsl:when> 
     <xsl:otherwise> 
      <xsl:value-of select="'%L'"/> 
     </xsl:otherwise> 
    </xsl:choose> 
</xsl:template> 

<xsl:template name="templ_prop_APA_CitationShort_FL" > 
    <xsl:param name="LCID" /> 
    <xsl:variable name="_LCID"> 
     <xsl:call-template name="localLCID"> 
      <xsl:with-param name="LCID" select="$LCID"/> 
     </xsl:call-template> 
    </xsl:variable> 
    <xsl:choose> 
     <xsl:when test="$_LCID='1054'"> 
      <xsl:value-of select="'%F %L'"/> 
     </xsl:when> 
     <xsl:otherwise> 
      <xsl:value-of select="'%L'"/> 
     </xsl:otherwise> 
    </xsl:choose> 
</xsl:template> 

注:フルファイルはhereです。

関連する問題