Actually, the styles are in XSL, a transformation language on top of XML.
I'm guessing your intention is to edit APA.xsl (not .xml). Before starting
to play around with APA.xsl, I suggest you do the following:
1)create a copy of APA.xsl and call it MyAPA.xsl or something.
2)go into MyAPA.xsl and give the style a different name to show up in Word
(see
http://bibword.codeplex.com/Wiki/View.aspx?title=FAQ#Q8)
3)save the file
4)(re)start Word to see if your new style is in there
Now you can change whatever you want in MyAPA.xsl without damaging the
original APA style.
In MyAPA.xsl, the entire bibliography formatting routine is located between
<xsl:when test="b:Bibliography">
and the matching
</xsl:when>
The routine consists of 2 parts. First a huge number of (common) variables
is defined. Then, the different bibliography items are formatted. The second
part starts around line 5658 and looks like this:
<xsl:choose>
<xsl:when test="b:SourceType='Book'">
<!-- A lot of code -->
</xsl:when>
<xsl:when test="b:SourceType='BookSection'">
<!-- A lot of code -->
</xsl:when>
<xsl:when test="b:SourceType='JournalArticle'">
<!-- A lot of code -->
</xsl:when>
<!-- Followed by all other types. -->
</xsl:choose>
What you are interested in, is the the piece of code between
<xsl:when test="b:SourceType='JournalArticle'">
<!-- A lot of code -->
</xsl:when>
The code inside again consists of 2 parts: one on how to display the
information if an author is available, and one on how to display the
information if there is no author available. If all you wanted to do was
display the URL at the end of a bibliography entry, you don't even have to
care about those 2 versions and can just put your code before the closing of
the xsl:when element. So you would get something along the following lines:
<xsl:when test="b:SourceType='JournalArticle'">
<!-- A lot of code -->
<!-- Your code -->
<xsl:if test="string-length(b:URL) > 0">
<!-- Display a leading space. -->
<xsl:text> </xsl:text>
<!-- Display the URL. -->
<xsl:value-of select="b:URL"/>
</xsl:if>
</xsl:when>
I did not have time to test the above code, so it might need some tweaking
or contain spelling errors. But it should get you on your way on where to
change what.
I'm interested in hearing how you "successfully edited the bibliography XML
file to include the URL field for that particular entry type". I'm assuming
you mean you edited bibform.xml to include URLs for journal articles. Or did
you do it differently?
Yves