Module processors.xml.reference

Reference processor

Classes

class ReferenceProcessor (reader, writer, doc_id)

A class to extract bibliographic references from a standard.

Ancestors

Class variables

var fieldnames

Column names.

Name Description Element Attribute
doc_id Document id
content_type Type of content <ref> content-type
std_type Type of standard, e.g. dated or undated <std> type
std_id Identifier of cited standard <std> std-id
std_ref_type Type of reference, e.g. dated or undated <std-ref>
std_ref Standard reference <std-ref>
count Number of occurrences in the document NA

Methods

def converter(self, data)

Parse XML and extract references.

Args

data : str
XML document

Returns

list
A list with dictionaries.

Inherited members