/BibWord/Styles/HarvardAnglia.XSL
# · Extensible Stylesheet Language Transformations · 3455 lines · 3126 code · 329 blank · 0 comment · 0 complexity · e6b437f9335f71369f93705a816170a5 MD5 · raw file
Large files are truncated click here to view the full file
- <?xml version="1.0" encoding="utf-8"?>
-
- <!--
- Stylesheet for Microsoft Word 2007 Bibliography formatting.
-
- Author(s): Yves Dhondt (yves.dhondt@gmail.com)
-
- Copyright: Copyright (c) 2008 Yves Dhondt
-
- Permission is hereby granted, free of charge, to any person obtaining a
- copy of this software and associated documentation files (the "Software"),
- to deal in the Software without restriction, including without limitation
- the rights to use, copy, modify, merge, publish, distribute, sublicense,
- and/or sell copies of the Software, and to permit persons to whom the
- Software is furnished to do so, subject to the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- DEALINGS IN THE SOFTWARE.
- -->
-
- <xsl:stylesheet version="1.0" xmlns:b="http://schemas.openxmlformats.org/officeDocument/2006/bibliography" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
-
- <!-- Variable containing all necessary data for a certain style of bibliography. -->
- <xsl:variable name="data">
- <general>
- <stylename>Harvard - Anglia*</stylename>
- <version>2009.05.23</version>
- <description>An implementation of the Harvard reference style based on the description by the Anglia Rushkin University.</description>
- <URL></URL>
- <auhtor>Yves Dhondt (yves.dhondt@gmail.com)</auhtor>
- <comment>
- Based on Anglia Rushkin notes (http://libweb.anglia.ac.uk/referencing/files/Harvard_referencing.pdf)
- It is unclear if a comma is required between the names of authors.
- It is unclear if a comma is required between the names and editor indication (name, ed. vs name ed.).
- </comment>
- <display_errors>yes</display_errors>
- <citation_as_link>no</citation_as_link>
- </general>
- <importantfields>
- <source type="ArticleInAPeriodical">
- <b:ImportantField>b:Author/b:Author/b:NameList</b:ImportantField>
- <b:ImportantField>b:Title</b:ImportantField>
- <b:ImportantField>b:PeriodicalTitle</b:ImportantField>
- <b:ImportantField>b:Year</b:ImportantField>
- <b:ImportantField>b:Month</b:ImportantField>
- <b:ImportantField>b:Day</b:ImportantField>
- <b:ImportantField>b:Pages</b:ImportantField>
- </source>
- <source type="Book">
- <b:ImportantField>b:Author/b:Author/b:NameList</b:ImportantField>
- <b:ImportantField>b:Author/b:Editor/b:NameList</b:ImportantField>
- <b:ImportantField>b:Title</b:ImportantField>
- <b:ImportantField>b:Edition</b:ImportantField>
- <b:ImportantField>b:Year</b:ImportantField>
- <b:ImportantField>b:City</b:ImportantField>
- <b:ImportantField>b:Publisher</b:ImportantField>
- </source>
- <source type="BookSection">
- <b:ImportantField>b:Author/b:Author/b:NameList</b:ImportantField>
- <b:ImportantField>b:Author/b:Editor/b:NameList</b:ImportantField>
- <b:ImportantField>b:Title</b:ImportantField>
- <b:ImportantField>b:BookTitle</b:ImportantField>
- <b:ImportantField>b:Edition</b:ImportantField>
- <b:ImportantField>b:Year</b:ImportantField>
- <b:ImportantField>b:City</b:ImportantField>
- <b:ImportantField>b:Publisher</b:ImportantField>
- <b:ImportantField>b:Pages</b:ImportantField>
- </source>
- <source type="ConferenceProceedings">
- <b:ImportantField>b:Author/b:Author/b:NameList</b:ImportantField>
- <b:ImportantField>b:Year</b:ImportantField>
- <b:ImportantField>b:Title</b:ImportantField>
- <b:ImportantField>b:Author/b:Editor/b:NameList</b:ImportantField>
- <b:ImportantField>b:ConferenceName</b:ImportantField>
- <b:ImportantField>b:City</b:ImportantField>
- <b:ImportantField>b:Publisher</b:ImportantField>
- <b:ImportantField>b:Pages</b:ImportantField>
- </source>
- <source type="DocumentFromInternetSite">
- <b:ImportantField>b:Author/b:Author/b:NameList</b:ImportantField>
- <b:ImportantField>b:Year</b:ImportantField>
- <b:ImportantField>b:Title</b:ImportantField>
- <b:ImportantField>b:InternetSiteTitle</b:ImportantField>
- <b:ImportantField>b:City</b:ImportantField>
- <b:ImportantField>b:Medium</b:ImportantField>
- <b:ImportantField>b:ProductionCompany</b:ImportantField>
- <b:ImportantField>b:DayAccessed</b:ImportantField>
- <b:ImportantField>b:MonthAccessed</b:ImportantField>
- <b:ImportantField>b:YearAccessed</b:ImportantField>
- <b:ImportantField>b:URL</b:ImportantField>
- <b:ImportantField>b:Version</b:ImportantField>
- </source>
- <source type="Film">
- <b:ImportantField>b:Title</b:ImportantField>
- <b:ImportantField>b:Medium</b:ImportantField>
- <b:ImportantField>b:Author/b:Director/b:NameList</b:ImportantField>
- <b:ImportantField>b:City</b:ImportantField>
- <b:ImportantField>b:CountryRegion</b:ImportantField>
- <b:ImportantField>b:ProductionCompany</b:ImportantField>
- <b:ImportantField>b:Year</b:ImportantField>
- </source>
- <source type="InternetSite">
- <b:ImportantField>b:Author/b:Author/b:NameList</b:ImportantField>
- <b:ImportantField>b:Year</b:ImportantField>
- <b:ImportantField>b:Title</b:ImportantField>
- <b:ImportantField>b:DayAccessed</b:ImportantField>
- <b:ImportantField>b:MonthAccessed</b:ImportantField>
- <b:ImportantField>b:YearAccessed</b:ImportantField>
- <b:ImportantField>b:URL</b:ImportantField>
- <b:ImportantField>b:Version</b:ImportantField>
- </source>
- <source type="JournalArticle">
- <b:ImportantField>b:Author/b:Author/b:NameList</b:ImportantField>
- <b:ImportantField>b:Year</b:ImportantField>
- <b:ImportantField>b:Title</b:ImportantField>
- <b:ImportantField>b:JournalName</b:ImportantField>
- <b:ImportantField>b:Volume</b:ImportantField>
- <b:ImportantField>b:Issue</b:ImportantField>
- <b:ImportantField>b:Pages</b:ImportantField>
- </source>
- <source type="Report">
- <b:ImportantField>b:Author/b:Author/b:NameList</b:ImportantField>
- <b:ImportantField>b:Year</b:ImportantField>
- <b:ImportantField>b:Title</b:ImportantField>
- <b:ImportantField>b:ThesisType</b:ImportantField>
- <b:ImportantField>b:City</b:ImportantField>
- <b:ImportantField>b:Publisher</b:ImportantField>
- <b:ImportantField>b:Institution</b:ImportantField>
- </source>
- </importantfields>
- <citation>
- <openbracket>(</openbracket>
- <closebracket>)</closebracket>
- <separator>; </separator>
- <noauthor>-Artist-Author-BookAuthor-Compiler-Composer-Conductor-Counsel-Director-Editor-Interviewee-Interviewer-Inventor-Performer-ProducerName-Translator-Writer-"Anon."-</noauthor>
- <notitle>-Title-AlbumTitle-BookTitle-BroadcastTitle-InternetSiteTitle-PeriodicalTitle-PublicationTitle-ShortTitle-</notitle>
- <noyear>-Year-YearAccessed-"n.d."-</noyear>
- <source type="Placeholder">
- <format>{%CitationPrefix%}[[%Tag%]]{%CitationSuffix%}</format>
- </source>
- <source type="ArticleInAPeriodical">
- <format>{%CitationPrefix%}{%Author:1|Editor:1|"Anon."%}{, %Year|"n.d."%}{%YearSuffix%}{, %CitationPages:p.:pp.:a2%}{%CitationSuffix%}</format>
- </source>
- <source type="Book">
- <format>{%CitationPrefix%}{%Author:1|Editor:1|"Anon."%}{, %Year|"n.d."%}{%YearSuffix%}{, %CitationPages:p.:pp.:a2%}{%CitationSuffix%}</format>
- </source>
- <source type="BookSection">
- <format>{%CitationPrefix%}{%Author:1|Editor:1|BookAuthor:1|"Anon."%}{, %Year|"n.d."%}{%YearSuffix%}{, %CitationPages:p.:pp.:a2%}{%CitationSuffix%}</format>
- </source>
- <source type="ConferenceProceedings">
- <format>{%CitationPrefix%}{%Author:1|Editor:1|"Anon."%}{, %Year|"n.d."%}{%YearSuffix%}{, %CitationPages:p.:pp.:a2%}{%CitationSuffix%}</format>
- </source>
- <source type="DocumentFromInternetSite">
- <format>{%CitationPrefix%}{%Author:1|InternetSiteTitle|"Anon."%}{, %Year|"n.d."%}{%YearSuffix%}{, %CitationPages:p.:pp.:a2%}{%CitationSuffix%}</format>
- </source>
- <source type="Film">
- <format>{%CitationPrefix%}{%Title|ShortTitle|"Anon."%}{, %Year|"n.d."%}{%YearSuffix%}{, %CitationPages:p.:pp.:a2%}{%CitationSuffix%}</format>
- </source>
- <source type="InternetSite">
- <format>{%CitationPrefix%}{%Author:1|"Anon."%}{, %Year|"n.d."%}{%YearSuffix%}{, %CitationPages:p.:pp.:a2%}{%CitationSuffix%}</format>
- </source>
- <source type="JournalArticle">
- <format>{%CitationPrefix%}{%Author:1|"Anon."%}{, %Year|"n.d."%}{%YearSuffix%}{, %CitationPages:p.:pp.:a2%}{%CitationSuffix%}</format>
- </source>
- <source type="Report">
- <format>{%CitationPrefix%}{%Author:1|"Anon."%}{, %Year|"n.d."%}{%YearSuffix%}{, %CitationPages:p.:pp.:a2%}{%CitationSuffix%}</format>
- </source>
- </citation>
- <bibliography>
- <columns>1</columns>
- <source type="Placeholder">
- <column id="1">
- <halign>left</halign>
- <valign>top</valign>
- <format>[%Tag%]</format>
- </column>
- <sortkey>%Tag%</sortkey>
- </source>
- <!-- Based on http://libweb.anglia.ac.uk/referencing/harvard.htm?harvard_id=33#33 and -->
- <!-- based on http://libweb.anglia.ac.uk/referencing/harvard.htm?harvard_id=58#58 (April 19, 2009) -->
- <source type="ArticleInAPeriodical">
- <column id="1">
- <halign>left</halign>
- <valign>top</valign>
- <format>{%Author:2|"Anon."%,}{ %Year|"n.d."%{%YearSuffix%}.}{ %Title|ShortTitle%.}{ <i>%PeriodicalTitle%</i>,}{ [%Medium%]}{ {%Day% }%Month:s%.}{ %Pages:p.:pp.:a2%}.{ Available at: <u>%URL:l%</u>}{ [Accessed{{ %DayAccessed%} %MonthAccessed:s%} %YearAccessed%]}.{ %Comments%.}</format>
- </column>
- <sortkey>{%Author:0|Editor:0|"Anon."%}{%Year|"n.d."%}{%Title:a|ShortTitle:a%}</sortkey>
- </source>
- <!-- Based on http://libweb.anglia.ac.uk/referencing/harvard.htm?harvard_id=24#24 and -->
- <!-- based on http://libweb.anglia.ac.uk/referencing/harvard.htm?harvard_id=26#26 and -->
- <!-- based on http://libweb.anglia.ac.uk/referencing/harvard.htm?harvard_id=27#27 and -->
- <!-- based on http://libweb.anglia.ac.uk/referencing/harvard.htm?harvard_id=28#28 and -->
- <!-- based on http://libweb.anglia.ac.uk/referencing/harvard.htm?harvard_id=31#31 (April 19, 2009) -->
- <source type="Book">
- <column id="1">
- <halign>left</halign>
- <valign>top</valign>
- <format>{%Author:2|Editor:3|"Anon."%,}{ %Year|"n.d."%{%YearSuffix%}.}{ <i>%Title|ShortTitle%</i>.{ %Edition:o% ed.}}{ Translated by %Translator:5%.}{ [%Medium%]}{ %City|StateProvince|CountryRegion%{, %StateProvince|CountryRegion%{, %CountryRegion%}}{: %Publisher%}.}{ %Publisher%.}.{ Available at: <u>%URL:l%</u>{ [accessed{{ %DayAccessed%} %MonthAccessed:s%} %YearAccessed%]}}.{ %Comments%.}</format>
- </column>
- <sortkey>{%Author:0|Editor:0|"Anon."%}{%Year|"n.d."%}{%Title:a|ShortTitle:a%}</sortkey>
- </source>
- <!-- Based on http://libweb.anglia.ac.uk/referencing/harvard.htm?harvard_id=29#29 (April 19, 2009) -->
- <source type="BookSection">
- <column id="1">
- <halign>left</halign>
- <valign>top</valign>
- <format>{%Author:2|Editor:3|"Anon."%,}{ %Year|"n.d."%{%YearSuffix%}.}{ %Title|ShortTitle%.}{ In{ %Editor:6|BookAuthor:2%} <i>%BookTitle|ShortTitle%</i>.{ %Edition:o% ed.}}{ Translated by %Translator:5%.}{ %City|StateProvince|CountryRegion%{, %StateProvince|CountryRegion%{, %CountryRegion%}}{: %Publisher%}.}{ %Publisher%.}{ Ch. %ChapterNumber%.}{ %Pages:p.:pp.:a2%.}{ %Comments%.}</format>
- </column>
- <sortkey>{%Author:0|Editor:0|"Anon."%}{%Year|"n.d."%}{%Title:a|ShortTitle:a|BookTitle:a%}</sortkey>
- </source>
- <!-- Based on http://libweb.anglia.ac.uk/referencing/harvard.htm?harvard_id=51#51 (April 19, 2009) -->
- <source type="ConferenceProceedings">
- <column id="1">
- <halign>left</halign>
- <valign>top</valign>
- <format>{%Author:2|"Anon."%,}{ %Year:r|"n.d."%{%YearSuffix%}.}{ %Title|ShortTitle%.}{ In{ %Editor:3%} <i>%ConferenceName%</i>.}{ %City|CountryRegion%{, %CountryRegion%}}{, {{%Day%} %Month:s%} %Year%.}{ %Publisher%}.{ %Comments%.}</format>
- </column>
- <sortkey>{%Author:0|Editor:0|"Anon."%}{%Year|"n.d."%}{%Title:a|ShortTitle:a%}</sortkey>
- </source>
- <!-- Based on http://libweb.anglia.ac.uk/referencing/harvard.htm?harvard_id=64#64 (April 19, 2009) -->
- <source type="DocumentFromInternetSite">
- <column id="1">
- <halign>left</halign>
- <valign>top</valign>
- <format>{%Author:2|InternetSiteTitle|"Anon."%,}{ %Year|"n.d."%{%YearSuffix%}.}{ <i>%Title%</i>.}{ [%Medium|"Online"%]}{ %City|CountryRegion|ProductionCompany|Publisher%{, %CountryRegion%}{: %ProductionCompany|Publisher%}}{ (%Version%)}{ Available at: <u>%URL:l%</u>}{ [Accessed{{ %DayAccessed%} %MonthAccessed:s%} %YearAccessed%]}.{ %Comments%.}</format>
- </column>
- <sortkey>{%Author:0|InternetSiteTitle:a|"Anon."%}{%Year|"n.d."%}{%Title:a%}</sortkey>
- </source>
- <!-- Based on http://libweb.anglia.ac.uk/referencing/harvard.htm?harvard_id=48#48 (April 19, 2009) -->
- <source type="Film">
- <column id="1">
- <halign>left</halign>
- <valign>top</valign>
- <format>{<i>%Title|ShortTitle%</i>.}{ %Year|"n.d."%{%YearSuffix%}.}{ [%Medium|"Film"%]}{ Directed by %Director:4%.}{ %City|CountryRegion%{, %CountryRegion%}}{: %Publisher|ProductionCompany%}}{ %Publisher|ProductionCompany%}.{ %Comments%.}</format>
- </column>
- <sortkey>{%Title:a|ShortTitle:a%}{%Year|"n.d."%}</sortkey>
- </source>
- <!-- Based on http://libweb.anglia.ac.uk/referencing/harvard.htm?harvard_id=63#63 (April 19, 2009) -->
- <source type="InternetSite">
- <column id="1">
- <halign>left</halign>
- <valign>top</valign>
- <format>{%Author:2|"Anon."%,}{ %Year|"n.d."%{%YearSuffix%}.}{ <i>%Title|InternetSiteTitle%</i>.}{ [%Medium|"Online"%]}{ (%Version%)}{ Available at: <u>%URL:l%</u>}{ [Accessed{{ %DayAccessed%} %MonthAccessed:s%} %YearAccessed%]}.{ %Comments%.}</format>
- </column>
- <sortkey>{%Author:0|"Anon."%}{%Year|"n.d."%}{%Title:a|InternetSiteTitle:a%}</sortkey>
- </source>
- <!-- Based on http://libweb.anglia.ac.uk/referencing/harvard.htm?harvard_id=32#32 and -->
- <!-- based on http://libweb.anglia.ac.uk/referencing/harvard.htm?harvard_id=34#34 and -->
- <!-- based on http://libweb.anglia.ac.uk/referencing/harvard.htm?harvard_id=35#35 (April 19, 2009) -->
- <source type="JournalArticle">
- <column id="1">
- <halign>left</halign>
- <valign>top</valign>
- <format>{%Author:2|"Anon."%,}{ %Year|"n.d."%{%YearSuffix%}.}{ %Title|ShortTitle%.}{ <i>%JournalName%</i>,}{ [%Medium%].{{%Day%} %Month:s%,}}{ %Volume%{(%Issue%)},}{ (%Issue%),}{ %Pages:p.:pp.:a2%.}{. %Comments%.}{ Available at: <u>%URL:l%</u>}{ [Accessed{{ %DayAccessed%} %MonthAccessed:s%} %YearAccessed%]}.{ %Comments%.}</format>
- </column>
- <sortkey>{%Author:0|"Anon."%}{%Year|"n.d."%}{%Title:a|ShortTitle:a%}</sortkey>
- </source>
- <!-- Based on http://libweb.anglia.ac.uk/referencing/harvard.htm?harvard_id=49#49 (April 19, 2009) -->
- <!-- Annual Report ('.' instead of ',' between title and city), Dissertation, Standard. -->
- <source type="Report">
- <column id="1">
- <halign>left</halign>
- <valign>top</valign>
- <format>{%Author:2|"Anon."%,}{ %Year|"n.d."%{%YearSuffix%}.}{ %StandardNumber%}{ <i>%Title|ShortTitle%</i>.}{ %ThesisType%.}{ %City|CountryRegion%{, %CountryRegion%}{: %Publisher|Institution%}}{ %Publisher|Institution%}.{ %Comments%.}</format>
- </column>
- <sortkey>{%Author:0|"Anon."%}{%Year|"n.d."%}{%Title:a|ShortTitle:a%}</sortkey>
- </source>
- </bibliography>
- <namelists>
- <list name="sort" id="0">
- <single_prefix></single_prefix>
- <multi_prefix></multi_prefix>
- <corporate>{%Corporate%}</corporate>
- <first_person>{%Last|First|Middle%}</first_person>
- <other_persons>{%Last|First|Middle%}</other_persons>
- <separator_between_if_two> </separator_between_if_two>
- <separator_between_if_more_than_two> </separator_between_if_more_than_two>
- <separator_before_last></separator_before_last>
- <max_number_of_persons_to_display>500</max_number_of_persons_to_display>
- <number_of_persons_to_display_if_more_than_max>500</number_of_persons_to_display_if_more_than_max>
- <overflow></overflow>
- <single_suffix></single_suffix>
- <multi_suffix></multi_suffix>
- </list>
- <list name="citation" id="1">
- <single_prefix></single_prefix>
- <multi_prefix></multi_prefix>
- <corporate>{%Corporate%}</corporate>
- <first_person>{%Last|First|Middle%}</first_person>
- <other_persons>{%Last|First|Middle%}</other_persons>
- <separator_between_if_two> & </separator_between_if_two>
- <separator_between_if_more_than_two></separator_between_if_more_than_two>
- <separator_before_last></separator_before_last>
- <max_number_of_persons_to_display>2</max_number_of_persons_to_display>
- <number_of_persons_to_display_if_more_than_max>1</number_of_persons_to_display_if_more_than_max>
- <overflow> et al.</overflow>
- <single_suffix></single_suffix>
- <multi_suffix></multi_suffix>
- </list>
- <list name="author" id="2">
- <single_prefix></single_prefix>
- <multi_prefix></multi_prefix>
- <corporate>{%Corporate%}</corporate>
- <first_person>{%Last|First|Middle%{, %First:adp|Middle:adp%{%Middle:adp%}}}</first_person>
- <other_persons>{%Last|First|Middle%{, %First:adp|Middle:adp%{%Middle:adp%}}}</other_persons>
- <separator_between_if_two> & </separator_between_if_two>
- <separator_between_if_more_than_two>, </separator_between_if_more_than_two>
- <separator_before_last> & </separator_before_last>
- <max_number_of_persons_to_display>4</max_number_of_persons_to_display>
- <number_of_persons_to_display_if_more_than_max>1</number_of_persons_to_display_if_more_than_max>
- <overflow> et al.</overflow>
- <single_suffix></single_suffix>
- <multi_suffix></multi_suffix>
- </list>
- <list name="editor" id="3">
- <single_prefix></single_prefix>
- <multi_prefix></multi_prefix>
- <corporate>{%Corporate%}</corporate>
- <first_person>{%Last|First|Middle%{, %First:adp|Middle:adp%{%Middle:adp%}}}</first_person>
- <other_persons>{%Last|First|Middle%{, %First:adp|Middle:adp%{%Middle:adp%}}}</other_persons>
- <separator_between_if_two> & </separator_between_if_two>
- <separator_between_if_more_than_two>, </separator_between_if_more_than_two>
- <separator_before_last> & </separator_before_last>
- <max_number_of_persons_to_display>4</max_number_of_persons_to_display>
- <number_of_persons_to_display_if_more_than_max>1</number_of_persons_to_display_if_more_than_max>
- <overflow> et al.</overflow>
- <single_suffix>, ed.</single_suffix>
- <multi_suffix>, eds.</multi_suffix>
- </list>
- <list name="director" id="4">
- <single_prefix></single_prefix>
- <multi_prefix></multi_prefix>
- <corporate>{%Corporate%}</corporate>
- <first_person>{{%First|Middle% {%Middle% }}%Last|First|Middle%}</first_person>
- <other_persons>{{%First|Middle% {%Middle% }}%Last|First|Middle%}</other_persons>
- <separator_between_if_two> & </separator_between_if_two>
- <separator_between_if_more_than_two>, </separator_between_if_more_than_two>
- <separator_before_last> & </separator_before_last>
- <max_number_of_persons_to_display>4</max_number_of_persons_to_display>
- <number_of_persons_to_display_if_more_than_max>1</number_of_persons_to_display_if_more_than_max>
- <overflow> et al.</overflow>
- <single_suffix></single_suffix>
- <multi_suffix></multi_suffix>
- </list>
- <list name="translator" id="5">
- <single_prefix></single_prefix>
- <multi_prefix></multi_prefix>
- <corporate>{%Corporate%}</corporate>
- <first_person>{{%First:adp|Middle:adp%{%Middle:adp%} }%Last|First|Middle%}</first_person>
- <other_persons>{{%First:adp|Middle:adp%{%Middle:adp%} }%Last|First|Middle%}</other_persons>
- <separator_between_if_two> & </separator_between_if_two>
- <separator_between_if_more_than_two>, </separator_between_if_more_than_two>
- <separator_before_last> & </separator_before_last>
- <max_number_of_persons_to_display>4</max_number_of_persons_to_display>
- <number_of_persons_to_display_if_more_than_max>1</number_of_persons_to_display_if_more_than_max>
- <overflow> et al.</overflow>
- <single_suffix></single_suffix>
- <multi_suffix></multi_suffix>
- </list>
- <list name="editorNotAuthor" id="6">
- <single_prefix></single_prefix>
- <multi_prefix></multi_prefix>
- <corporate>{%Corporate%}</corporate>
- <first_person>{{%First:adp|Middle:adp%{%Middle:adp%} }%Last|First|Middle%}</first_person>
- <other_persons>{{%First:adp|Middle:adp%{%Middle:adp%} }%Last|First|Middle%}</other_persons>
- <separator_between_if_two> & </separator_between_if_two>
- <separator_between_if_more_than_two>, </separator_between_if_more_than_two>
- <separator_before_last> & </separator_before_last>
- <max_number_of_persons_to_display>4</max_number_of_persons_to_display>
- <number_of_persons_to_display_if_more_than_max>1</number_of_persons_to_display_if_more_than_max>
- <overflow> et al.</overflow>
- <single_suffix>, ed.</single_suffix>
- <multi_suffix>, eds.</multi_suffix>
- </list>
- </namelists>
- <strings>
- <months>
- <month number="1">January</month>
- <month number="2">February</month>
- <month number="3">March</month>
- <month number="4">April</month>
- <month number="5">May</month>
- <month number="6">June</month>
- <month number="7">July</month>
- <month number="8">Augustus</month>
- <month number="9">September</month>
- <month number="10">October</month>
- <month number="11">November</month>
- <month number="12">December</month>
- </months>
- </strings>
- <extensions>
- <source type="Book">
- <yearsuffix>{%Author:1|Editor:1|"Anon."%}{, %Year%}</yearsuffix>
- </source>
- <source type="BookSection">
- <yearsuffix>{%Author:1|Editor:1|BookAuthor:1|"Anon."%}{, %Year%}</yearsuffix>
- </source>
- <source type="ConferenceProceedings">
- <yearsuffix>{%Author:1|Editor:1|"Anon."%}{, %Year%}</yearsuffix>
- </source>
- <source type="DocumentFromInternetSite">
- <yearsuffix>{%Author:1|InternetSiteTitle|"Anon."%}{, %Year%}</yearsuffix>
- </source>
- <source type="Film">
- <yearsuffix>{%ProductionCompany|"Anon."%}{, %Year%}</yearsuffix>
- </source>
- <source type="InternetSite">
- <yearsuffix>{%Author:1|"Anon."%}{, %Year%}</yearsuffix>
- </source>
- <source type="JournalArticle">
- <yearsuffix>{%Author:1|"Anon."%}{, %Year%}</yearsuffix>
- </source>
- <source type="Report">
- <yearsuffix>{%Author:1|"Anon."%}{, %Year%}</yearsuffix>
- </source>
- </extensions>
- </xsl:variable>
-
- <!-- Indicates that all output will be in the HTML format. -->
- <xsl:output method="html" encoding="utf-8"/>
-
- <!-- Handle the different types of input documents. -->
- <xsl:template match="/">
-
- <xsl:choose>
- <!-- Gets the name of the style as it will be displayed in Word 2007 / 2010. -->
- <xsl:when test="b:StyleName">
- <xsl:value-of select="msxsl:node-set($data)/general/stylename"/>
- </xsl:when>
-
- <!-- Gets the version information for the style in Word 2007 / 2010. -->
- <xsl:when test="b:Version">
- <xsl:value-of select="msxsl:node-set($data)/general/version"/>
- </xsl:when>
-
- <!-- Sets a version number in Word 2013. -->
- <xsl:when test="b:XslVersion">
- <xsl:choose>
- <xsl:when test="msxsl:node-set($data)/general/version2013">
- <xsl:value-of select="msxsl:node-set($data)/general/version2013"/>
- </xsl:when>
- <xsl:otherwise>
- <!-- Fallback method : use a dummy version number of 1. -->
- <xsl:text>1</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
-
- <!-- Set the name of the style in Word 2013. -->
- <xsl:when test="b:StyleNameLocalized">
- <xsl:value-of select="msxsl:node-set($data)/general/stylename"/>
- </xsl:when>
-
- <!-- Gets a description of the style. (Word 2008 or later) -->
- <xsl:when test="b:Description">
- <xsl:value-of select="msxsl:node-set($data)/general/description"/>
- </xsl:when>
-
- <!-- Gets the URL for updates. (Word 2008 or later) -->
- <xsl:when test="b:UpdateURL">
- <xsl:value-of select="msxsl:node-set($data)/general/URL"/>
- </xsl:when>
-
- <!-- Retrieve the most important fields for a certain type of citation. -->
- <xsl:when test="b:GetImportantFields">
- <xsl:variable name="type" select="b:GetImportantFields/b:SourceType"/>
- <b:ImportantFields>
- <xsl:copy-of select="msxsl:node-set($data)/importantfields/source[@type = $type]/*"/>
- </b:ImportantFields>
- </xsl:when>
-
- <!-- Formats a citation for display. -->
- <xsl:when test="b:Citation">
- <xsl:choose>
- <xsl:when test="msxsl:node-set($data)/citation">
- <xsl:call-template name="format-citation"/>
- </xsl:when>
- <xsl:otherwise>
- <!-- Fallback method. -->
- <xsl:call-template name="format-footnote-citation"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
-
- <!-- Formats a footnote citation for display (Word 2008 or later). -->
- <xsl:when test="b:FootnoteCitation">
- <xsl:choose>
- <xsl:when test="msxsl:node-set($data)/footnotecitation">
- <xsl:call-template name="format-footnote-citation"/>
- </xsl:when>
- <xsl:otherwise>
- <!-- Fallback method. -->
- <xsl:call-template name="format-citation"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
-
- <!-- Formats a bibliography for display. -->
- <xsl:when test="b:Bibliography">
- <xsl:call-template name="format-bibliography"/>
- </xsl:when>
-
- <!-- Add a b:BibOrder element to b:Source elements (not used by Word, BibWord specific!). -->
- <xsl:when test="b:BibWord">
- <xsl:call-template name="bibword-extensions"/>
- </xsl:when>
- </xsl:choose>
-
- </xsl:template>
-
- <!-- Formats the citation. -->
- <xsl:template name="format-citation">
-
- <!-- Generate an XML node-set from the formatting data. -->
- <xsl:variable name="params" select="msxsl:node-set($data)"/>
-
- <html xmlns="http://www.w3.org/TR/REC-html40">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- </head>
- <body>
- <p>
-
- <!-- Display the open bracket if this is the first citation. -->
- <xsl:if test="/b:Citation/b:FirstAuthor">
- <xsl:value-of select="$params/citation/openbracket" disable-output-escaping="yes"/>
- </xsl:if>
-
- <!-- Not handled: MinAuthors, SameAuthors, RepeatedAuthor. -->
- <xsl:variable name="citation">
- <!-- Get the format string. -->
- <xsl:variable name="format">
- <xsl:variable name="type" select="/b:Citation/b:Source/b:Type"/>
- <xsl:variable name="sourcetype" select="/b:Citation/b:Source/b:SourceType"/>
-
- <xsl:choose>
- <!-- If there is no source type, its a placeholder. -->
- <xsl:when test="string-length($sourcetype) = 0 and string-length(msxsl:node-set($data)/citation/source[@type = 'Placeholder']/format) > 0">
- <xsl:value-of select="msxsl:node-set($data)/citation/source[@type = 'Placeholder']/format"/>
- </xsl:when>
- <!-- Go for the type element if available. -->
- <xsl:when test="string-length($type) > 0 and string-length(msxsl:node-set($data)/citation/source[@type = $type]/format) > 0 ">
- <xsl:value-of select="msxsl:node-set($data)/citation/source[@type = $type]/format"/>
- </xsl:when>
- <!-- Else go for the source type element if available. -->
- <xsl:when test="string-length(msxsl:node-set($data)/citation/source[@type = $sourcetype]/format) > 0 ">
- <xsl:value-of select="msxsl:node-set($data)/citation/source[@type = $sourcetype]/format"/>
- </xsl:when>
- <!-- Else display error message. -->
- <xsl:otherwise>
- <xsl:if test="msxsl:node-set($data)/general/display_errors = 'yes'">
- <xsl:text><b>Unsupported </xsl:text>
- <xsl:if test="string-length($type) > 0">
- <xsl:text>type (</xsl:text>
- <xsl:value-of select="$type"/>
- <xsl:text>) and </xsl:text>
- </xsl:if>
- <xsl:text>source type (</xsl:text>
- <xsl:value-of select="$sourcetype"/>
- <xsl:text>) for source </xsl:text>
- <xsl:value-of select="/b:Citation/b:Source/b:Tag"/>
- <xsl:text>.</b></xsl:text>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
-
- </xsl:variable>
-
- <!-- Extend the source. -->
- <xsl:variable name="extendedSource">
- <b:Source>
- <xsl:copy-of select="/b:Citation/b:Source/*"/>
- <!-- For processing the \f parameter. -->
- <b:CitationPrefix>
- <xsl:value-of select="/b:Citation/b:PagePrefix"/>
- </b:CitationPrefix>
- <!-- For processing the \s parameter. -->
- <b:CitationSuffix>
- <xsl:value-of select="/b:Citation/b:PageSuffix"/>
- </b:CitationSuffix>
- <!-- For processing the \p parameter. -->
- <b:CitationPages>
- <xsl:value-of select="/b:Citation/b:Pages"/>
- </b:CitationPages>
- <!-- For processing the \v parameter. -->
- <b:CitationVolume>
- <xsl:value-of select="/b:Citation/b:Volume"/>
- </b:CitationVolume>
- </b:Source>
- </xsl:variable>
-
- <xsl:call-template name="format-source">
- <xsl:with-param name="format" select="$format"/>
- <xsl:with-param name="source" select="msxsl:node-set($extendedSource)/b:Source"/>
- <xsl:with-param name="disallowed">
- <!-- Do not display the authors of the work. -->
- <xsl:if test="/b:Citation/b:NoAuthor">
- <xsl:value-of select="msxsl:node-set($data)/citation/noauthor"/>
- </xsl:if>
- <!-- Do not display the title of the work. -->
- <xsl:if test="/b:Citation/b:NoTitle">
- <xsl:value-of select="msxsl:node-set($data)/citation/notitle"/>
- </xsl:if>
- <!-- Do not display the year the work was written or accessed in. -->
- <xsl:if test="/b:Citation/b:NoYear">
- <xsl:value-of select="msxsl:node-set($data)/citation/noyear"/>
- </xsl:if>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:variable>
-
- <xsl:choose>
- <xsl:when test="$params/general/citation_as_link = 'yes'">
- <a href="#{/b:Citation/b:Source/b:Tag}">
- <xsl:value-of select="$citation" disable-output-escaping="yes"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$citation" disable-output-escaping="yes"/>
- </xsl:otherwise>
- </xsl:choose>
-
- <!-- end citation -->
-
- <!-- Display the group separator if this is not the last citation. -->
- <xsl:if test="not(/b:Citation/b:LastAuthor)">
- <xsl:value-of select="$params/citation/separator" disable-output-escaping="yes"/>
- </xsl:if>
-
- <!-- Display the close bracket if this is the last citation. -->
- <xsl:if test="/b:Citation/b:LastAuthor">
- <xsl:value-of select="$params/citation/closebracket" disable-output-escaping="yes"/>
- </xsl:if>
-
- </p>
- </body>
- </html>
-
- </xsl:template>
-
- <!-- Formats the footnote citation. -->
- <xsl:template name="format-footnote-citation">
-
- <!-- Generate an XML node-set from the formatting data. -->
- <xsl:variable name="params" select="msxsl:node-set($data)"/>
-
- <html xmlns="http://www.w3.org/TR/REC-html40">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- </head>
- <body>
- <p class="MsoBibliography">
-
- <!-- Display the open bracket if this is the first citation. -->
- <xsl:if test="/b:FootnoteCitation/b:FirstAuthor">
- <xsl:value-of select="$params/footnotecitation/openbracket" disable-output-escaping="yes"/>
- </xsl:if>
-
- <!-- Not handled: MinAuthors, SameAuthors, RepeatedAuthor. -->
- <xsl:variable name="citation">
- <!-- Get the format string. -->
- <xsl:variable name="format">
- <xsl:variable name="type" select="/b:FootnoteCitation/b:Source/b:Type"/>
- <xsl:variable name="sourcetype" select="/b:FootnoteCitation/b:Source/b:SourceType"/>
-
- <xsl:choose>
- <!-- If there is no source type, its a placeholder. -->
- <xsl:when test="string-length($sourcetype) = 0 and string-length(msxsl:node-set($data)/footnotecitation/source[@type = 'Placeholder']/format) > 0">
- <xsl:value-of select="msxsl:node-set($data)/footnotecitation/source[@type = 'Placeholder']/format"/>
- </xsl:when>
- <!-- Go for the type element if available. -->
- <xsl:when test="string-length($type) > 0 and string-length(msxsl:node-set($data)/footnotecitation/source[@type = $type]/format) > 0 ">
- <xsl:value-of select="msxsl:node-set($data)/footnotecitation/source[@type = $type]/format"/>
- </xsl:when>
- <!-- Else go for the source type element if available. -->
- <xsl:when test="string-length(msxsl:node-set($data)/footnotecitation/source[@type = $sourcetype]/format) > 0 ">
- <xsl:value-of select="msxsl:node-set($data)/footnotecitation/source[@type = $sourcetype]/format"/>
- </xsl:when>
- <!-- Else display error message. -->
- <xsl:otherwise>
- <xsl:if test="msxsl:node-set($data)/general/display_errors = 'yes'">
- <xsl:text><b>Unsupported </xsl:text>
- <xsl:if test="string-length($type) > 0">
- <xsl:text>type (</xsl:text>
- <xsl:value-of select="$type"/>
- <xsl:text>) and </xsl:text>
- </xsl:if>
- <xsl:text>source type (</xsl:text>
- <xsl:value-of select="$sourcetype"/>
- <xsl:text>) for source </xsl:text>
- <xsl:value-of select="/b:FootnoteCitation/b:Source/b:Tag"/>
- <xsl:text>.</b></xsl:text>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
-
- </xsl:variable>
-
- <!-- Extend the source. -->
- <xsl:variable name="extendedSource">
- <b:Source>
- <xsl:copy-of select="/b:FootnoteCitation/b:Source/*"/>
- <!-- For processing the \f parameter. -->
- <b:FootnoteCitationPrefix>
- <xsl:value-of select="/b:FootnoteCitation/b:PagePrefix"/>
- </b:FootnoteCitationPrefix>
- <!-- For processing the \s parameter. -->
- <b:FootnoteCitationSuffix>
- <xsl:value-of select="/b:FootnoteCitation/b:PageSuffix"/>
- </b:FootnoteCitationSuffix>
- <!-- For processing the \p parameter. -->
- <b:FootnoteCitationPages>
- <xsl:value-of select="/b:FootnoteCitation/b:Pages"/>
- </b:FootnoteCitationPages>
- <!-- For processing the \v parameter. -->
- <b:FootnoteCitationVolume>
- <xsl:value-of select="/b:FootnoteCitation/b:Volume"/>
- </b:FootnoteCitationVolume>
- </b:Source>
- </xsl:variable>
-
- <xsl:call-template name="format-source">
- <xsl:with-param name="format" select="$format"/>
- <xsl:with-param name="source" select="msxsl:node-set($extendedSource)/b:Source"/>
- <xsl:with-param name="disallowed">
- <!-- Do not display the authors of the work. -->
- <xsl:if test="/b:FootnoteCitation/b:NoAuthor">
- <xsl:value-of select="msxsl:node-set($data)/citation/noauthor"/>
- </xsl:if>
- <!-- Do not display the title of the work. -->
- <xsl:if test="/b:FootnoteCitation/b:NoTitle">
- <xsl:value-of select="msxsl:node-set($data)/citation/notitle"/>
- </xsl:if>
- <!-- Do not display the year the work was written or accessed in. -->
- <xsl:if test="/b:FootnoteCitation/b:NoYear">
- <xsl:value-of select="msxsl:node-set($data)/citation/noyear"/>
- </xsl:if>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:variable>
-
- <xsl:value-of select="$citation" disable-output-escaping="yes"/>
- <!-- end citation -->
-
- <!-- Display the group separator if this is not the last citation. -->
- <xsl:if test="not(/b:FootnoteCitation/b:LastAuthor)">
- <xsl:value-of select="$params/citation/separator" disable-output-escaping="yes"/>
- </xsl:if>
-
- <!-- Display the close bracket if this is the last citation. -->
- <xsl:if test="/b:FootnoteCitation/b:LastAuthor">
- <xsl:value-of select="$params/citation/closebracket" disable-output-escaping="yes"/>
- </xsl:if>
-
- </p>
- </body>
- </html>
-
- </xsl:template>
-
- <!-- Formats the bibliography. -->
- <xsl:template name="format-bibliography">
-
- <!-- Extends the b:Source elements of the b:Bibliography element with a b:SortKey. -->
- <xsl:variable name="extendedBib">
- <!-- Create a b:Bibliography element. -->
- <b:Bibliography>
- <!-- Extend all the b:Source elements with a sortkey. -->
- <xsl:for-each select="/b:Bibliography/b:Source">
- <b:Source>
- <!-- Copy the content of the b:Source. -->
- <xsl:copy-of select="./*"/>
-
- <!-- Add a sorting key. -->
- <xsl:call-template name="create-sortkey">
- <xsl:with-param name="source" select="."/>
- </xsl:call-template>
- </b:Source>
- </xsl:for-each>
-
- <!-- With the exception of the b:Source elements, copy all elements (not really used by the stylesheets). -->
- <!--<xsl:for-each select="/b:Bibliography/*">
- <xsl:if test="local-name() != 'Source'">
- <xsl:element name="{name()}" namespace="{namespace-uri()}">
- <xsl:value-of select="."/>
- </xsl:element>
- </xsl:if>
- </xsl:for-each>-->
-
- </b:Bibliography>
- </xsl:variable>
-
- <html xmlns="http://www.w3.org/TR/REC-html40">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <style>
- p.MsoBibliography
- </style>
- </head>
- <body>
-
- <xsl:choose>
- <!-- If there is more than one column, use a table layout. -->
- <xsl:when test="msxsl:node-set($data)/bibliography/columns > 1">
- <xsl:call-template name="format-bibliography-as-table">
- <xsl:with-param name="bibNodeSet" select="msxsl:node-set($extendedBib)"/>
- </xsl:call-template>
- </xsl:when>
- <!-- Otherwise use a paragraph layout. -->
- <xsl:otherwise>
- <xsl:call-template name="format-bibliography-as-paragraphs">
- <xsl:with-param name="bibNodeSet" select="msxsl:node-set($extendedBib)"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
-
- </body>
- </html>
-
- </xsl:template>
-
- <!-- Formats a bibliography as a series of paragraphs. -->
- <xsl:template name="format-bibliography-as-paragraphs">
- <xsl:param name="bibNodeSet"/>
-
- <xsl:for-each select="$bibNodeSet/b:Bibliography/b:Source">
- <xsl:sort select="b:SortKey" data-type="text"/>
-
- <p class="MsoBibliography">
- <!-- Get the format string. -->
- <xsl:variable name="format">
- <xsl:variable name="type" select="./b:Type"/>
- <xsl:variable name="sourcetype" select="./b:SourceType"/>
-
- <xsl:choose>
- <!-- If there is no source type, its a placeholder. -->
- <xsl:when test="string-length($sourcetype) = 0 and string-length(msxsl:node-set($data)/bibliography/source[@type = 'Placeholder']/column[@id = '1']/format) > 0">
- <xsl:value-of select="msxsl:node-set($data)/bibliography/source[@type = 'Placeholder']/column[@id = '1']/format"/>
- </xsl:when>
- <!-- Go for the type element if available. -->
- <xsl:when test="string-length($type) > 0 and string-length(msxsl:node-set($data)/bibliography/source[@type = $type]/column[@id = '1']/format) > 0 ">
- <xsl:value-of select="msxsl:node-set($data)/bibliography/source[@type = $type]/column[@id = '1']/format"/>
- </xsl:when>
- <!-- Else go for the source type element if available. -->
- <xsl:when test="string-length(msxsl:node-set($data)/bibliography/source[@type = $sourcetype]/column[@id = '1']/format) > 0 ">
- <xsl:value-of select="msxsl:node-set($data)/bibliography/source[@type = $sourcetype]/column[@id = '1']/format"/>
- </xsl:when>
- <!-- Else display error message. -->
- <xsl:otherwise>
- <xsl:if test="msxsl:node-set($data)/general/display_errors = 'yes'">
- <xsl:text><b>Unsupported </xsl:text>
- <xsl:if test="string-length($type) > 0">
- <xsl:text>type (</xsl:text>
- <xsl:value-of select="$type"/>
- <xsl:text>) and </xsl:text>
- </xsl:if>
- <xsl:text>source type (</xsl:text>
- <xsl:value-of select="$sourcetype"/>
- <xsl:text>) for source </xsl:text>
- <xsl:value-of select="./b:Tag"/>
- <xsl:text>.</b></xsl:text>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
-
- </xsl:variable>
-
- <!-- Format the source. -->
- <xsl:variable name="paragraphX">
- <xsl:call-template name="format-source">
- <xsl:with-param name="format" select="$format"/>
- <xsl:with-param name="source" select="."/>
- </xsl:call-template>
- </xsl:variable>
-
- <!-- Convert the formatted source to html. -->
- <xsl:choose>
- <xsl:when test="msxsl:node-set($data)/general/citation_as_link = 'yes'">
- <a name="{./b:Tag}">
- <xsl:value-of select="$paragraphX" disable-output-escaping="yes"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$paragraphX" disable-output-escaping="yes"/>
- </xsl:otherwise>
- </xsl:choose>
- </p>
-
- </xsl:for-each>
-
- </xsl:template>
-
- <!-- Formats a bibliography as a table. -->
- <xsl:template name="format-bibliography-as-table">
- <xsl:param name="bibNodeSet"/>
-
- <!-- Empty paragraph hack for table. -->
- <p class="MsoBibliography" style="display:none;">x</p>
-
- <table width="100%">
- <xsl:for-each select="$bibNodeSet/b:Bibliography/b:Source">
- <xsl:sort select="b:SortKey" data-type="text"/>
-
- <tr>
- <xsl:call-template name="format-bibliography-table-column">
- <xsl:with-param name="columnId" select="1"/>
- <xsl:with-param name="source" select="."/>
- </xsl:call-template>
- </tr>
-
- </xsl:for-each>
- </table>
-
- <!-- Empty paragraph hack for table. -->
- <p class="MsoBibliography" style="display:none;">x</p>
-
- </xsl:template>
-
- <!-- Formats a single column in a bibliography. -->
- <xsl:template name="format-bibliography-table-column">
- <!-- Source to format. -->
- <xsl:param name="source"/>
- <!-- Id of the column to format. -->
- <xsl:param name="columnId"/>
-
- <!-- Generate an XML node-set from the formatting data. -->
- <xsl:variable name="params" select="msxsl:node-set($data)"/>
-
- <!-- Get the format string. -->
- <xsl:variable name="format">
- <xsl:variable name="type" select="./b:Type"/>
- <xsl:variable name="sourcetype" select="./b:SourceType"/>
-
- <xsl:choose>
- <!-- If there is no source type, its a placeholder. -->
- <xsl:when test="string-length($sourcetype) = 0 and string-length(msxsl:node-set($data)/bibliography/source[@type = 'Placeholder']/column[@id = $columnId]/format) > 0">
- <xsl:value-of select="msxsl:node-set($data)/bibliography/source[@type = 'Placeholder']/column[@id = $columnId]/format"/>
- </xsl:when>
- <!-- Go for the type element if available. -->
- <xsl:when test="string-length($type) > 0 and string-length(msxsl:node-set($data)/bibliography/source[@type = $type]/column[@id = $columnId]/format) > 0 ">
- <xsl:value-of select="msxsl:node-set($data)/bibliography/source[@type = $type]/column[@id = $columnId]/format"/>
- </xsl:when>
- <!-- Else go for the source type element if available. -->
- <xsl:when test="string-length(msxsl:node-set($data)/bibliography/source[@type = $sourcetype]/column[@id = $columnId]/format) > 0 ">
- <xsl:value-of select="msxsl:node-set($data)/bibliography/source[@type = $sourcetype]/column[@id = $columnId]/format"/>
- </xsl:when>
- <!-- Else display error message. -->
- <xsl:otherwise>
- <xsl:if test="msxsl:node-set($data)/general/display_errors = 'yes'">
- <xsl:text><b>Unsupported </xsl:text>
- <xsl:if test="string-length($type) > 0">
- <xsl:text>type (</xsl:text>
- <xsl:value-of select="$type"/>
- <xsl:text>) and </xsl:text>
- </xsl:if>
- <xsl:text>source type (</xsl:text>
- <xsl:value-of select="$sourcetype"/>
- <xsl:text>) for source </xsl:text>
- <xsl:value-of select="./b:Tag"/>
- <xsl:text>.</b></xsl:text>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
-
- </xsl:variable>
-
- <!-- Not really efficient at the moment, but it does the trick so errors can be displayed. -->
- <xsl:variable name="type">
- <xsl:variable name="temp" select="$source/b:Type"/>
- <xsl:variable name="temp2" select="$source/b:SourceType"/>
-
- <xsl:choose>
- <xsl:when test="s…