Custom Bibliography Styles

Kasia Kasia 1 Reputation point
2022-01-30T22:04:43.143+00:00

Hello, could someone help me to custom my on bibliography style, I follow this link: https://learn.microsoft.com/en-us/office/vba/word/Concepts/Objects-Properties-Methods/create-custom-bibliography-styles, but it deos not apear in my Word style list. I need it my Phd disertation to custom polish verion of bibliography that does not exist in word. For books I need this version: Fox, Annette B., The Power of Small States. Diplomacy in World War II, Chicago 1959. For articles, this one: Keohane, Robert O., Lilliputians’ Dillema: Small States in International Politics, „International Organization” 1969, t. 23, nr 2, s. 291-310. were s. means pages, t is vol. and nr is isseu, I need to have full name and surname, title must be in ctrl+I, and juornal name in "". I wrote this code following up web instruction but it does appear in my word and I donot know how to add artical information and other needed. Can anyone help me with it? Thank you very much!!!!
Code:
<?xml version="1.0" ?>

<!--List of the external resources that we are referencing-->

<xsl:stylesheet version="1.0" xmlns:xsl="https://www.w3.org/1999/XSL/Transform" xmlns:b="https://schemas.openxmlformats.org/officeDocument/2006/bibliography">

<!--When the bibliography or citation is in your document, it's just HTML-->

<xsl:output method="html" encoding="us-ascii"/>

<!--Match the root element, and dispatch to its children-->

<xsl:template match="/">

<xsl:apply-templates select="*" />

</xsl:template>

<!--Set an optional version number for this style-->

<xsl:template match="b:version">

<xsl:text>2006.5.07</xsl:text>

</xsl:template>

<xsl:when test="b:StyleNameLocalized/b:Lcid='1033'">

<xsl:text>[Poland]</xsl:text>

</xsl:when>

<!--Defines the name of the style in the References dropdown list-->
<xsl:when test="b:StyleNameLocalized">
<xsl:choose>
<xsl:when test="b:StyleNameLocalized/b:Lcid='1033'">
<xsl:text>Simple Book Style</xsl:text>
</xsl:when>
</xsl:when>

<!--Specifies which fields should appear in the Create Source dialog box when in a collapsed state (The Show All Bibliography Fields check box is cleared)-->

<xsl:template match="b:GetImportantFields[b:SourceType = 'Book']">
<b:ImportantFields>
<b:ImportantField>
<xsl:text>b:Author/b:Author/b:NameList</xsl:text>
</b:ImportantField>
<b:ImportantField>
<xsl:text>b:Title</xsl:text>
</b:ImportantField>
<b:ImportantField>
<xsl:text>b:Publisher</xsl:text>
</b:ImportantField>
<b:ImportantField>
<xsl:text>b:City</xsl:text>
</b:ImportantField>
<b:ImportantField>
<xsl:text>b:Year</xsl:text>
</b:ImportantField>
</b:ImportantFields>
<xsl:text>b:Pages</xsl:text>
</b:ImportantField>
</b:ImportantFields>
<xsl:text>b:url</xsl:text>
</b:ImportantField>
</b:ImportantFields>
</xsl:template>

<!--Defines the output format for a simple Book (in the Bibliography) with important fields defined-->

<xsl:template match="b:Source[b:SourceType = 'Book']">

<!--Label the paragraph as an Office Bibliography paragraph-->

<p>
<xsl:value-of select="b:Author/b:Author/b:NameList/b:Person/b:Last"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="b:Author/b:Author/b:NameList/b:Person/b:First"/>
<xsl:text>. </xsl:text>
<xsl:value-of select="b:Title"/>
<xsl:text>. </xsl:text>
<i>
<xsl:value-of select="b:Publisher"/>
<xsl:text>. </xsl:text>
</i>
<xsl:value-of select="b:City"/>
<xsl:text> </xsl:text>
<xsl:value-of select="b:Year"/>
<xsl:text>.</xsl:text>
</p>
</xsl:template>

<!--Defines the output of the entire Bibliography-->

<xsl:template match="b:Bibliography">

<html xmlns="https://www.w3.org/TR/REC-html40">

  <body>   

     <xsl:apply-templates select ="b:Source[b:SourceType = 'Book']">   

     </xsl:apply-templates>   

  </body>   

</html>
</xsl:template>

<xsl:template match="text()" /> </xsl:stylesheet>

Developer technologies | Visual Basic for Applications
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.