English:

The Free and Open Productivity Suite
Help us Help the World

functions.xsl

CiteProc functions.
Author:
Bruce D’Arcus
Copyright:
2004

Functions Summary

xs:booleanbib:first-reference (param: node()cite-ref) - source
Determines the first time a reference is cited in the text
xs:booleanbib:ibid (param: node()citation) - source
Determines when a citation fulfills the "ibid" condition
bib:number-condense (param: begin,end) - source
Collapses a page range according to the Chicago algorithm
xs:stringbib:number-footcite (param: element()footcite) - source
Numbers citations and foot/endnotes together
xs:stringmods:csl-fallback (param: element(mods:mods)bibref) - source
Determines the CSL fallback for a MODS record
xs:stringmods:csl-reftype (param: element(mods:mods)bibref) - source
Maps a MODS reference type to a CSL XPATH expression
xs:stringmods:grouping-key (param: element(mods:mods)bibref) - source
Constructs an authors string for grouping and sorting
xs:stringmods:refclass (param: element(mods:mods)?bibref) - source
This function is central to the formatting logic of the system
xs:stringmods:reftype (param: element(mods:mods)?bibref) - source
Further classifies records into types based on the class
xs:stringmods:sort_on (param: element(mods:mods)bibref) - source
Determines what to sort on
xs:stringmods:use_csl-reftype (param: element(mods:mods)bibref) - source
Determines which CSL definition to use for any given MODS record
mods:year (param: element(mods:mods)bibref) - source
when given a bibliographic record, returns its publication year

Functions Detail

xs:booleanbib:first-reference (param: node()cite-ref) - source
Determines the first time a reference is cited in the text
Necesary for those styles that make a formatting distinction between first and subsequent references.
Parameters:
node()cite-ref -
xs:booleanbib:ibid (param: node()citation) - source
Determines when a citation fulfills the "ibid" condition
Parameters:
node()citation -
bib:number-condense (param: begin,end) - source
Collapses a page range according to the Chicago algorithm
Probably needs to be generalized.
Parameters:
begin -
end -
xs:stringbib:number-footcite (param: element()footcite) - source
Numbers citations and foot/endnotes together
Parameters:
element()footcite -
xs:stringmods:csl-fallback (param: element(mods:mods)bibref) - source
Determines the CSL fallback for a MODS record
Parameters:
element(mods:mods)bibref -
xs:stringmods:csl-reftype (param: element(mods:mods)bibref) - source
Maps a MODS reference type to a CSL XPATH expression
Parameters:
element(mods:mods)bibref -
xs:stringmods:grouping-key (param: element(mods:mods)bibref) - source
Constructs an authors string for grouping and sorting
This function concatenates all authors into a string so that multiple-authors get correctly grouped. Where no author exists it substitutes based on CSL definitions.
Parameters:
element(mods:mods)bibref -
xs:stringmods:refclass (param: element(mods:mods)?bibref) - source
This function is central to the formatting logic of the system
The fallback system classifies records into one of three structural classes: part-inMongraph, part-inSerial, and mongraph. It would be easy to add serial as a fourth, but I have not yet found the need (does one ever cite a serial as a whole?).
Parameters:
element(mods:mods)?bibref -
xs:stringmods:reftype (param: element(mods:mods)?bibref) - source
Further classifies records into types based on the class
These types then map onto the citation style langauge definitions. Article, chapter and book are the default structures and generic fallbacks. Most records will be formatted with these "types." Beyond these core types, additional types would be defined by both their genre values and their likeness to the core types. The value can be multi-level where applicable: e.g. “article-magazine.”
Parameters:
element(mods:mods)?bibref -
xs:stringmods:sort_on (param: element(mods:mods)bibref) - source
Determines what to sort on
Parameters:
element(mods:mods)bibref -
xs:stringmods:use_csl-reftype (param: element(mods:mods)bibref) - source
Determines which CSL definition to use for any given MODS record
Parameters:
element(mods:mods)bibref -
mods:year (param: element(mods:mods)bibref) - source
when given a bibliographic record, returns its publication year
Parameters:
element(mods:mods)bibref -

Logo ApacheCon Europe 2014

Apache Feather

Copyright & License | Privacy | Website Feedback | Contact Us | Donate | Thanks

Apache, the Apache feather logo, and OpenOffice are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.