My thesis uses an APA citation. However, with research documents that is written in Thai, an inline citation must be of the form (firstname lastname, year) rather than the APA (lastname, year). This should be possible with a custom Microsoft Word 2013 bibliography style which would require an adjustment to the APA.XSL file in C:\Program Files (x86)\Microsoft Office\Office14\Bibliography\Style to include an additional logic similar to the follow:

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

```

I believe that the additional logic should be added in this section, and that it must involve an adjustment to xsl:template formatNameCore. 

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

```

However, my mind is drawing a blank beyond that. I wonder if anyone could point me to a correct direction. Help is much appreciated.

[Here's the current xsl file](http://pastebin.com/F9G0e6yv).