<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="http://xbiblio.svn.sourceforge.net/viewvc/*checkout*/xbiblio/csl/schema/trunk/csl.rnc" type="compact"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" xml:lang="pt" default-locale="pt-BR">
  <info>
    <title>Associação Brasileira de Normas Técnicas (ABNT) - UFSM</title>
    <id>http://www.zotero.org/styles/abnt-ufsm</id>
    <link href="http://www.zotero.org/styles/abnt-ufsm"/>
    <author>
      <name>Iuri Gavronski</name>
      <email>iuri at ufrgs dot br</email>
    </author>
    <contributor>
        <name>Eduardo Bettoni</name>
        <email>webtur @ ufpr dot br</email>
    </contributor>
    <contributor>
        <name>José Antonio Meira da Rocha</name>
        <email>joseantoniorocha@gmail.com</email>
        <uri>http://meiradarocha.jor.br</uri>
    </contributor>
    <category term="author-date"/>
    <category term="generic-base"/>
    <updated>2010-10-06T00:00:00+00:00</updated>
    <summary>The strict ABNT brazilian standard style as used in Universidade Federal de Santa Maria, Brazil</summary>
    <rights>This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License: http://creativecommons.org/licenses/by-sa/3.0/</rights>
  </info>

<terms><!-- 
Compatible with CSL 1.0  -->
	<locale xml:lang="pt-BR">
		<term name="month-01" form="short">jan.</term>
		<term name="month-02" form="short">fev.</term>
		<term name="month-03" form="short">mar.</term>
		<term name="month-04" form="short">abr.</term>
		<term name="month-05" form="short">maio</term>
		<term name="month-06" form="short">jun.</term>
		<term name="month-07" form="short">jul.</term>
		<term name="month-08" form="short">ago.</term>
		<term name="month-09" form="short">set.</term>
		<term name="month-10" form="short">out.</term>
		<term name="month-11" form="short">nov.</term>
		<term name="month-12" form="short">dez.</term>
	</locale>
</terms>

<macro name="container-contributors">
    <choose>
        <if type="chapter">
            <text value="In: "/>
            <names variable="editor translator" delimiter=", ">
                <name name-as-sort-order="all" sort-separator=", " text-case="uppercase"
                initialize-with=". " delimiter="; " delimiter-precedes-last="always"/>
                <label form="short" prefix=" (" suffix=".). " text-case="capitalize-first"/>
            </names>
        </if>
    </choose>
</macro>

<macro name="secondary-contributors">
    <choose>
        <if type="chapter" match="none">
            <names variable="editor translator" delimiter=", " prefix=" (" suffix=")">
                <name and="symbol" initialize-with=". " delimiter=", "/>
                <label form="short" prefix=", " text-case="capitalize-first" suffix="."/>
            </names>
        </if>
    </choose>
</macro>

<macro name="author">
    <names variable="author">
      <name name-as-sort-order="all" sort-separator=", " text-case="uppercase"
        initialize-with=". " delimiter="; " delimiter-precedes-last="always"/>
      <label form="short" prefix=" (" suffix=".)" text-case="uppercase"/>
      <substitute>
        <names variable="editor"/>
        <names variable="translator"/>
        <text macro="title"/>
      </substitute>
    </names>
</macro>

<macro name="author-short">
    <names variable="author">
      <name form="short" name-as-sort-order="all" sort-separator=", " text-case="uppercase"
        initialize-with=". " delimiter="; " delimiter-precedes-last="always"/>
      <substitute>
        <names variable="editor"/>
        <names variable="translator"/>
        <choose>
          <if type="book">
            <text variable="title" form="short" />
          </if>
          <else>
            <text variable="title" form="short" quotes="true"/>
          </else>
        </choose>
      </substitute>
    </names>
</macro>

<macro name="access">
    <text variable="URL" prefix="Disponível em: &lt;" suffix="&gt;"/>
        <date variable="accessed" prefix=". Acesso em: " >
            <date-part name="day" suffix=" "/>
            <date-part name="month" form="short" suffix=". " text-case="lowercase" />
            <date-part name="year"/>
        </date>
</macro>

<macro name="title">
    <choose>
        <if type="book thesis" match="any">
            <text variable="title" font-weight="bold"/>
        </if>
            <else-if type="chapter" match="any">
            <text variable="title"  />
        </else-if>
        <else-if type="article-newspaper article-magazine article-journal" match="any">
            <text variable="title"  />
        </else-if>
        <else>
            <text variable="title" font-weight="bold"/>
        </else>
    </choose>
</macro>

<macro name="container-title">
    <choose>
        <if type="paper-conference" match="any">
            <text variable="container-title" suffix=". "/>
            <text value="Anais" font-weight="bold"/>
            <text value="..." />
        </if><else>
            <text variable="container-title" font-weight="bold"/>
        </else>
    </choose>
</macro>

<macro name="publisher">
    <choose>
        <if match="any" variable="publisher-place publisher">
            <group delimiter=": ">
                <choose>
                    <if variable="publisher-place">
                        <text variable="publisher-place"/>
                    </if><else>
                       <text value="[S.l.]"/>
                    </else>
                </choose>
                <choose>
                    <if variable="publisher">
                        <text variable="publisher"/>
                    </if><else>
                       <text value="[s.n.]"/>
                    </else>
                </choose>
            </group>
        </if><else>
            <text value="[S.l: s.n.]"/>
        </else>
    </choose>
</macro>

<!-- ABNT NBR6023 7.5.3.1 -->  
<macro name="article-place">
    <choose>
        <if type="article-newspaper">
            <choose>
                <if match="any" variable="publisher-place">
                    <text variable="publisher-place"/>
                </if>
                <else>
                   <text value="[S.l.]"/>
                </else>
            </choose>
        </if>
        <else> <!-- There is no 'place' in Zotero article-[journa|magazine] form. Use Extra ("note") field -->
            <choose>
                <if match="any" variable="note">
                    <text variable="note"/>
                </if>
                <else>
                   <text value="[S.l.]"/>
                </else>
            </choose>
        </else>
    </choose>
</macro>
  
  <macro name="event">
    <text variable="event"/>
    <text variable="event-place" prefix=", "/>
  </macro>

<macro name="issued">
	<choose>
		<if variable="issued" match="any">
			<group text-case="lowercase">
				<choose>
					<if type="book chapter" match="none">
						<date variable="issued">
							<date-part name="day" suffix=" "/>
							<date-part name="month" form="short" suffix=" " strip-periods="true" />
						</date>
					</if>
				</choose>
				<date variable="issued">
					<date-part name="year"/>
				</date>
			</group>
        </if><else>
            <text value="[S.d.]"/>
        </else>		
	</choose>
</macro>

<macro name="issued-year">
    <choose>
        <if variable="issued" match="any">
            <date variable="issued">
                <date-part name="year"/>
            </date>
        </if><else>
            <text value="[S.d.]"/>
        </else>
    </choose>      
</macro>

  <macro name="edition">
    <choose>
      <if type="book chapter" match="any">
    <choose>
      <if is-numeric="edition">
        <group delimiter=" ">
          <number variable="edition" form="ordinal"/>
          <text term="edition" form="short" suffix="."/>
        </group>
      </if>
      <else>
        <text variable="edition" suffix=" ed."/>
      </else>
    </choose>
      </if>
    </choose>
  </macro>

<macro name="locators">
    <choose>
        <if match="any" type="article-journal article-magazine article-newspaper">
            <group delimiter=", ">
                <group delimiter=", ">
                    <text variable="volume" prefix="v. "/>
                    <text variable="issue" prefix="n. " suffix=""/>
                </group>
                <text variable="page" prefix="p. "/>
             </group>
        </if>
        <else-if match="any" type="book chapter">
            <group suffix="" delimiter=", ">
                <text macro="edition"/>
                <group>
                    <text variable="volume" prefix="v. " />
                </group>
                <group>
                    <text variable="page" prefix="p. "/>
                </group>
            </group>
        </else-if>
    </choose>
</macro>

<macro name="citation-locator">
    <group>
        <label variable="locator" include-period="true" form="short"/>
        <text variable="locator" prefix=" "/>
    </group>
</macro>

<macro name="genre">
    <text variable="genre"/>
</macro>

<macro name="abstract">
    <text variable="abstract"/>
</macro>

<macro name="place">
    <choose>
        <if match="any" variable="publisher-place">
            <text variable="publisher-place"/>
        </if>
        <else>
           <text value="[S.l.]"/>
        </else>
    </choose>
 </macro>
 
<macro name="archive">
    <group>
        <text variable="archive" prefix=" "/>
    </group>
</macro>

<macro name="ISBN">
    <group>
        <text variable="ISBN" prefix="ISBN "/>
    </group>
</macro>

<macro name="ISSN">
    <group>
        <text variable="ISSN" prefix="ISSN "/>
    </group>
</macro>

<citation>
    <option name="et-al-min" value="3"/>
    <option name="et-al-use-first" value="1"/>
    <option name="et-al-subsequent-min" value="3"/>
    <option name="et-al-subsequent-use-first" value="1"/>
    <option name="disambiguate-add-year-suffix" value="true"/>
    <option name="disambiguate-add-names" value="true"/>
    <option name="disambiguate-add-givenname" value="true"/>
    <option name="collapse" value="year"/>
    <sort>
      <key macro="author"/>
      <key variable="issued"/>
    </sort>
    <layout prefix="(" suffix=")" delimiter=" e ">
      <group>
        <text suffix = ", " macro="author-short"/>
        <text macro="issued-year"/>
        <text prefix =", " macro="citation-locator"/>
      </group>
    </layout>
</citation>

<bibliography>
    <option name="hanging-indent" value="false"/>
    <option name="et-al-min" value="6"/>
    <option name="et-al-use-first" value="3"/>
    <option name="entry-spacing" value="0"/>
    <sort>
      <key macro="author"/>
      <key variable="issued"/>
    </sort>
    <layout>
        <choose>
            <if type="book">
                <group>
                    <text macro="author" suffix=". "/>
                    <text macro="title" suffix=". "/>
                    <text macro="edition" suffix=". "/>
                    <text macro="publisher" suffix=", "/>
                    <text macro="issued-year" suffix=". "/>
                    <text macro="ISBN"  suffix=". "/>
                    <text macro="access" suffix=". "/>
                </group>
            </if>
            <else-if type="article-newspaper article-magazine article-journal" match="any">
                <group>
                    <text macro="author" suffix=". "/>
                    <text macro="title" suffix=". "/>
                    <text macro="container-title" suffix=", "/>
                    <!-- Articles place may use the Extra ("note") field -->
                    <text macro="article-place" suffix=", "/>
                    <text macro="issued" suffix=". "/>
                    <text variable="collection-title"  suffix=". " />
                    <text macro="edition" suffix=", "/>
                    <text macro="locators" suffix=". " />
                    <text macro="ISSN"  suffix=". "/>
                    <text macro="genre" suffix=". "/>
                    <text macro="access" suffix=". "/>
                </group>
            </else-if>
            <else-if type="thesis">
                <group>
                    <text macro="author" suffix=". "/>
                    <text macro="title" suffix=". "/>
                    <text macro="edition" suffix=". "/>
                    <text macro="publisher" suffix=", "/>
                    <text macro="issued-year" suffix=". "/>
                    <text macro="genre" suffix=". "/>
                    <text macro="ISBN"  suffix=". "/>
                    <text macro="access" suffix=". "/>
                </group>
            </else-if>
            <else-if type="manuscript">
            	<!-- There is no ABNT norm for manuscripts -->
                <group>
                    <text macro="author" suffix=". "/>
                    <text macro="title" suffix=". "/>
                    <text macro="edition" suffix=". "/>
                    <text macro="abstract" suffix=". "/>
                    <text macro="place" suffix=", "/>
                    <text macro="issued" suffix=". "/>
                    <text macro="access" suffix=". "/>
                    <text macro="archive" suffix=". "/>
                </group>
            </else-if>
            <else-if type="webpage">
                <group>
                    <text macro="author" suffix=". "/>
                    <text macro="title" suffix=". "/>
                    <text macro="genre" suffix=". "/>
                    <text macro="access" suffix=". "/>
                </group>
            </else-if> 
            <else-if type="medium">
                <group>
                    <text macro="title" suffix=". "/>
                    <text macro="author" suffix=". "/>
                    <text macro="genre" suffix=". "/>
                    <text macro="access" suffix=". "/>
                </group>
            </else-if> 
            <else-if type="chapter"><!-- paper in conference too -->
                <group>
                    <text macro="author" suffix=". "/>
                    <text macro="title" suffix=". "/>
                    <text macro="container-contributors"/>
                    <text macro="secondary-contributors" suffix=". "/>
                    <text macro="container-title" suffix=". "/>
                    <text variable="collection-title" suffix=". "/>
                    <group suffix=". ">
                        <text macro="publisher"/>
                        <text macro="issued" prefix=", "/>
                    </group>
                    <text macro="locators" suffix=". "/>
                    <text macro="ISBN"  suffix=". "/>
                    <text macro="access" suffix=". "/>
               </group>
            </else-if>
            <else>
                <text macro="author" suffix=". "/>
                <text macro="title" suffix=". "/>
                <text macro="container-contributors"/>
                <text macro="secondary-contributors"/>
                <text macro="container-title"/>
                <text variable="collection-title" prefix=", " suffix="."/>
                <text macro="locators"/>
                <text macro="issued" prefix=","/>
                <group delimiter=". " prefix=". " suffix=". ">
                    <text macro="publisher"/>
                    <text macro="access"/>
                </group>
            </else>
          </choose>
    </layout>
</bibliography>
</style>

