4Suite API Documentation

Module Ft.Server.Common.DocumentReference

An intelligent reference to a document within or external to the repo
Copyright 2005 Fourthought, Inc. (USA).
Detailed license and copyright information: http://4suite.org/COPYRIGHT
Project home, documentation, distributions: http://4suite.org/
Classes:

Classes

class DocumentReference
Abstract base class for the various types of Document References

Methods

__init__(self, rType)
toDom(self, baseObject)
Overidden by subclasses for implementation to convert the reference to a DOM node
toSchematron(self, baseObject)
Overidden by subclasses for implementation to convert the reference to a schematron instance
toStylesheet(self, baseObject)
Overidden by subclasses for implementation to convert the reference to a stylesheet
class DocumentReferenceType

Members

EXTERNAL = 2
INTERNAL = 1
STRING = 3
class ExternalDocumentReference(DocumentReference)
Reference to an external (non-repo) resource.

Methods

__init__(self, uri)
Overrides: __init__ from class DocumentReference
toDom(self, baseObject)
Attempts to parse the external resource as XML, returning a Domlette document node. Parsing is done with the standard (repo-unaware) non-validating reader.
Overrides: toDom from class DocumentReference
toSchematron(self, baseObject)
Attempts to parse the external resource as XML, returning a stylesheet document node. Parsing is done with the standard (repo-unaware) stylesheet reader. The stylesheet represents the result of applying Rick Jelliffe's Schematron preprocessor to the source document, resulting in a new stylesheet that can be used for validation.
Overrides: toSchematron from class DocumentReference
toStylesheet(self, baseObject)
Attempts to parse the external resource as XML, returning a stylesheet document node. Parsing is done with the standard (repo-unaware) stylesheet reader. Assumes the resource really is XSLT.
Overrides: toStylesheet from class DocumentReference
class InternalDocumentReference(DocumentReference)
Reference to an internal resource

Methods

__init__(self, uri)
Overrides: __init__ from class DocumentReference
toDom(self, baseObject)
Overrides: toDom from class DocumentReference
toSchematron(self, baseObject)
Overrides: toSchematron from class DocumentReference
toStylesheet(self, baseObject)
Overrides: toStylesheet from class DocumentReference
class StringDocumentReference(DocumentReference)
Reference to a string array

Methods

__init__(self, data, baseUri)
Overrides: __init__ from class DocumentReference
toDom(self, baseObject)
Overrides: toDom from class DocumentReference
toSchematron(self, baseObject)
Overrides: toSchematron from class DocumentReference
toStylesheet(self, baseObject)
Overrides: toStylesheet from class DocumentReference