Get XML for a CSL style

csl_style_xml(input, raw = FALSE, ...)

Arguments

input

(character) URL or local file path. Required.

raw

(logical) If FALSE (default) return parsed XML to class xml_document. If TRUE, get character string of XML.

...

Curl options passed on to crul::HttpClient

Value

an object of class xml_document, see xml2 to parse the object

Details

This function fetches the style XML document. If you want parsed data, see csl_style_load().

Examples

ajps <- 'http://zotero.org/styles/american-journal-of-political-science' if (crul::ok(ajps)) { csl_style_xml(ajps) }
#> {xml_document} #> <style class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-US" xmlns="http://purl.org/net/xbiblio/csl"> #> [1] <info>\n <title>American Journal of Political Science</title>\n <title ... #> [2] <macro name="editor">\n <names variable="editor" delimiter=", ">\n < ... #> [3] <macro name="author">\n <names variable="author">\n <name name-as-so ... #> [4] <macro name="author-short">\n <names variable="author">\n <name form ... #> [5] <macro name="access">\n <choose>\n <if type="legal_case" match="none ... #> [6] <macro name="title">\n <choose>\n <if type="bill book graphic legal_ ... #> [7] <macro name="legal_case">\n <group prefix=" " delimiter=" ">\n <text ... #> [8] <macro name="publisher">\n <choose>\n <if type="thesis" match="none" ... #> [9] <macro name="year-date">\n <choose>\n <if variable="issued">\n ... #> [10] <macro name="edition">\n <choose>\n <if is-numeric="edition">\n ... #> [11] <macro name="locator">\n <choose>\n <if locator="page">\n <text ... #> [12] <citation et-al-min="4" et-al-use-first="1" et-al-subsequent-min="6" et- ... #> [13] <bibliography hanging-indent="true" et-al-min="4" et-al-use-first="1" en ...