<?xml version="1.0" encoding="ISO-8859-1"?><!-- THIS XSL-STYLESHEET WAS WRITTEN BY ERIK THAU-KNUDSEN, 2009IT TRANSFORMS ENDNOTE XML TO A BIBLIOGRAPHIC STYLE (with certain alterations) USED BY NORDIC PSYCHOLOGISTS.Erik Thau-Knudsen, 2009.www.thau-knudsen.dkPLEASE KEEP THE ABOVE TEXT IF YOU COPY THIS FILE ONTO YOUR OWN SITE --><!-- DWXMLSource="../../dokumenter/forskning/bibliografier/lingvistisk_bibliotek.xml" --><!DOCTYPE xsl:stylesheet  [	<!ENTITY nbsp   "&#160;">	<!ENTITY copy   "&#169;">	<!ENTITY reg    "&#174;">	<!ENTITY trade  "&#8482;">	<!ENTITY mdash  "&#8212;">	<!ENTITY ldquo  "&#8220;">	<!ENTITY rdquo  "&#8221;"> 	<!ENTITY pound  "&#163;">	<!ENTITY yen    "&#165;">	<!ENTITY euro   "&#8364;">    <!ENTITY aelig  "&#xE6;">    <!ENTITY oslash "&#xF8;">    <!ENTITY aring  "&#xE5;">]><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="html" encoding="iso-8859-1"/><xsl:template match="/"><style type="text/css">.en_bibliography {}.en_year {	padding-left: 0.3em;}.en_pub-location {padding-left: 0.3em;}.en_publisher {padding-left: 0.3em;}</style><!-- PUT THE BELOW CSS STYLESHEET RULES INTO YOUR HTML DOCUMENT. KEEPING THEM HERE IS CONSIDERED BAD CODING, ALBEIT IT DOES THE JOB, NEVERTHELESS. -->        <ol class="en_bibliography">        <xsl:apply-templates select="xml/records/record">        <!--  -->        </xsl:apply-templates>        </ol><!--         <p><strong>Anvendt bibliografisk stil</strong>: Psykologi (self-invented name of the style used in many psychological textbooks and research papers in Denmark of the first decade of the 21st century.)</p> --></xsl:template><xsl:template match="record"><li><xsl:for-each select="contributors/authors/author"><!-- Generates comma-separated list.Inspired from http://msdn.microsoft.com/en-us/library/ms912463.aspx -->   <xsl:value-of select="."/> <xsl:if test="position()!=last()">, </xsl:if>      </xsl:for-each>     &nbsp;<span class="en_year">(<xsl:value-of select="dates/year" />)</span>: <cite><xsl:value-of select="titles/title" /></cite> <xsl:if test="string-length(titles/secondary-title) > 0">, i: <xsl:if test="string-length(contributors/secondary-authors) > 0"><xsl:for-each select="contributors/secondary-authors/author"><!-- Generates comma-separated list.Inspired from http://msdn.microsoft.com/en-us/library/ms912463.aspx -->   <xsl:value-of select="."/> <xsl:if test="position()!=last()">, </xsl:if>      </xsl:for-each> (<abbr>red.</abbr>): </xsl:if> <cite><xsl:value-of select="titles/secondary-title"/></cite></xsl:if>.&nbsp;<xsl:if test="string-length(pub-location) > 0"> <span class="en_pub-location"><xsl:value-of select="pub-location" /></span></xsl:if>: <xsl:if test="string-length(publisher) &gt; 0">&nbsp;<span class="en_publisher"><xsl:value-of select="publisher/style" /></span></xsl:if><xsl:if test="contains (ref-type[@name],'Book Section')">succes!</xsl:if><xsl:if test="string-length(pages) &gt; 0 and string-length(titles/secondary-title) &gt; 0">, s. <xsl:value-of select="pages" /></xsl:if>.</li></xsl:template><xsl:template match="style"><!-- MAKES SURE THAT UNNECESSARY FONT DESIGNATIONS ARE LEFT OUT --><xsl:if test="@font != 'Topaz FEF'"><xsl:if test="@font != 'Lucida Grande'"><xsl:if test="@font !='default'">font-family: <xsl:value-of select="@font" />;</xsl:if></xsl:if></xsl:if></xsl:template><!-- <xsl:template match="contributors"><xsl:apply-templates select="authors" /></xsl:template><xsl:template match="authors"><xsl:value-of select="author"/><xsl:if test="position()!=last()">, </xsl:if></xsl:template>--></xsl:stylesheet>
