4Suite API Documentation

Module Ft.Xml.Xslt.AttributeInfo

Classes that support validation and evaluation of attribute values in XSLT instruction elements
Copyright 2003 Fourthought, Inc. (USA).
Detailed license and copyright information: http://4suite.org/COPYRIGHT
Project home, documentation, distributions: http://4suite.org/
Classes:
Functions:
Globals:

Classes

class AnyAvt(Avt, AttributeInfo)

Methods inherited from class Avt

Methods inherited from class AttributeInfo

Members

display = 'any avt'
class AttributeInfo

Methods

__init__(self, required=0, default=None, description='')
__str__(self)
prepare(self, element, value)
reprocess = prepare(self, element, value)
validate(self, validation)

Members

display = 'unknown'
class Avt

Methods

__str__(self)
prepare(self, element, value)
class BooleanExpression(Expression)

Methods inherited from class Expression

Methods inherited from class AttributeInfo

Members

display = 'boolean-expression'
class Char(AttributeInfo)
A string value with a length of one

Methods

prepare(self, element, value)
Overrides: prepare from class AttributeInfo
reprocess = prepare(self, element, value)
Overrides: reprocess from class AttributeInfo

Methods inherited from class AttributeInfo

Members

display = 'char'
class CharAvt(Avt, Char)

Methods inherited from class Avt

Methods inherited from class Char

Methods inherited from class AttributeInfo

Members inherited from class Char

class Choice(AttributeInfo)

Methods

__init__(self, values, required=0, default=None, description='')
Overrides: __init__ from class AttributeInfo
__str__(self)
Overrides: __str__ from class AttributeInfo
prepare(self, element, value)
Overrides: prepare from class AttributeInfo
reprocess = prepare(self, element, value)
Overrides: reprocess from class AttributeInfo

Methods inherited from class AttributeInfo

Members inherited from class AttributeInfo

class ChoiceAvt(Avt, Choice)

Methods

__str__(self)
Overrides: __str__ from class Avt

Methods inherited from class Avt

Methods inherited from class Choice

Methods inherited from class AttributeInfo

Members inherited from class AttributeInfo

class Expression(AttributeInfo)
An attribute whose value is used as an XPath expression

Methods

prepare(self, element, value)
Overrides: prepare from class AttributeInfo

Methods inherited from class AttributeInfo

Members

display = 'expression'
class ExpressionWrapper

Methods

__getattr__(self, attr)
Make this behave as if it was the expression object itself.
__getstate__(self)
# Provide the copy/pickle helpers so as to not get them from the # wrapped expression.
__init__(self, expression, element, original)
__nonzero__(self)
__setstate__(self, state)
evaluate(self, context)
class Id(AttributeInfo)

Methods

prepare(self, element, value)
Overrides: prepare from class AttributeInfo
reprocess = prepare(self, element, value)
Overrides: reprocess from class AttributeInfo

Methods inherited from class AttributeInfo

Members

display = 'id'
class IdAvt(Avt, Id)

Methods inherited from class Avt

Methods inherited from class Id

Methods inherited from class AttributeInfo

Members inherited from class Id

class NCName(AttributeInfo)

Methods

prepare(self, element, value)
Overrides: prepare from class AttributeInfo
reprocess = prepare(self, element, value)
Overrides: reprocess from class AttributeInfo

Methods inherited from class AttributeInfo

Members

display = 'ncname'
class NCNameAvt(Avt, NCName)

Methods inherited from class Avt

Methods inherited from class NCName

Methods inherited from class AttributeInfo

Members inherited from class NCName

class NMToken(AttributeInfo)

Methods

prepare(self, element, value)
Overrides: prepare from class AttributeInfo
reprocess = prepare(self, element, value)
Overrides: reprocess from class AttributeInfo

Methods inherited from class AttributeInfo

Members

display = 'nmtoken'
class NMTokenAvt(Avt, NMToken)

Methods inherited from class Avt

Methods inherited from class NMToken

Methods inherited from class AttributeInfo

Members inherited from class NMToken

class NodeSetExpression(Expression)

Methods inherited from class Expression

Methods inherited from class AttributeInfo

Members

display = 'node-set-expression'
class Number(AttributeInfo)

Methods

prepare(self, element, value)
Overrides: prepare from class AttributeInfo
reprocess = prepare(self, element, value)
Overrides: reprocess from class AttributeInfo

Methods inherited from class AttributeInfo

Members

display = 'number'
class NumberAvt(Avt, Number)

Methods

reprocess = prepare(self, element, value)
Overrides: reprocess from class Number

Methods inherited from class Avt

Methods inherited from class AttributeInfo

Members inherited from class Number

class NumberExpression(Expression)

Methods inherited from class Expression

Methods inherited from class AttributeInfo

Members

display = 'number-expression'
class Pattern(AttributeInfo)
An attribute whose value is used as an XPattern expression

Methods

prepare(self, element, value)
Overrides: prepare from class AttributeInfo

Methods inherited from class AttributeInfo

Members

display = 'pattern'
class Prefix(AttributeInfo)

Methods

prepare(self, element, value)
Overrides: prepare from class AttributeInfo
reprocess = prepare(self, element, value)
Overrides: reprocess from class AttributeInfo

Methods inherited from class AttributeInfo

Members

display = 'prefix'
class PrefixAvt(Avt, Prefix)

Methods inherited from class Avt

Methods inherited from class Prefix

Methods inherited from class AttributeInfo

Members inherited from class Prefix

class Prefixes(Prefix)
A whitespace separated list of prefixes (see Prefix for more information)

Methods

prepare(self, element, value)
Overrides: prepare from class Prefix
reprocess = prepare(self, element, value)
Overrides: reprocess from class Prefix

Methods inherited from class AttributeInfo

Members

display = 'prefixes'
class PrefixesAvt(Avt, Prefixes)

Methods inherited from class Avt

Methods inherited from class Prefixes

Methods inherited from class AttributeInfo

Members inherited from class Prefixes

class QName(AttributeInfo)

Methods

prepare(self, element, value)
Overrides: prepare from class AttributeInfo
reprocess = prepare(self, element, value)
Overrides: reprocess from class AttributeInfo

Methods inherited from class AttributeInfo

Members

display = 'qname'
class QNameAvt(Avt, QName)

Methods inherited from class Avt

Methods inherited from class QName

Methods inherited from class AttributeInfo

Members inherited from class QName

class QNameButNotNCName(AttributeInfo)

Methods

prepare(self, element, value)
Overrides: prepare from class AttributeInfo
reprocess = prepare(self, element, value)
Overrides: reprocess from class AttributeInfo

Methods inherited from class AttributeInfo

Members

display = 'qname-but-not-ncname'
class QNames(QName)
A whitespace separated list of qnames (see QName for description of a qname)

Methods

prepare(self, element, value)
Overrides: prepare from class QName
reprocess = prepare(self, element, value)
Overrides: reprocess from class QName

Methods inherited from class AttributeInfo

Members

display = 'qnames'
class QNamesAvt(Avt, QNames)

Methods inherited from class Avt

Methods inherited from class QNames

Methods inherited from class AttributeInfo

Members inherited from class QNames

class RawQName(QName)

Methods

prepare(self, element, value)
Overrides: prepare from class QName
reprocess = prepare(self, element, value)
Overrides: reprocess from class QName

Methods inherited from class AttributeInfo

Members inherited from class QName

class RawQNameAvt(Avt, RawQName)

Methods inherited from class Avt

Methods inherited from class RawQName

Methods inherited from class AttributeInfo

Members inherited from class QName

class String(AttributeInfo)

Methods inherited from class AttributeInfo

Members

display = 'string'
class StringAvt(Avt, String)

Methods inherited from class Avt

Methods inherited from class AttributeInfo

Members inherited from class String

class StringExpression(Expression)

Methods inherited from class Expression

Methods inherited from class AttributeInfo

Members

display = 'string-expression'
class Token(AttributeInfo)
An attribute whose value is used as an XPath NameTest

Methods

prepare(self, element, value)
Overrides: prepare from class AttributeInfo
reprocess = prepare(self, element, value)
Overrides: reprocess from class AttributeInfo

Methods inherited from class AttributeInfo

Members

display = 'token'
class TokenAvt(Avt, Token)

Methods inherited from class Avt

Methods inherited from class Token

Methods inherited from class AttributeInfo

Members inherited from class Token

class Tokens(Token)
A whitespace separated list of tokens (see Token for description of a token)

Methods

prepare(self, element, value)
Overrides: prepare from class Token
reprocess = prepare(self, element, value)
Overrides: reprocess from class Token

Methods inherited from class AttributeInfo

Members

display = 'tokens'
class TokensAvt(Avt, Tokens)

Methods inherited from class Avt

Methods inherited from class Tokens

Methods inherited from class AttributeInfo

Members inherited from class Tokens

class UriReference(AttributeInfo)

Methods

__init__(self, required=0, default=None, description='', isNsName=0)
Overrides: __init__ from class AttributeInfo
prepare(self, element, value)
Overrides: prepare from class AttributeInfo
reprocess = prepare(self, element, value)
Overrides: reprocess from class AttributeInfo

Methods inherited from class AttributeInfo

Members

display = 'uri-reference'
class UriReferenceAvt(Avt, UriReference)

Methods inherited from class Avt

Methods inherited from class UriReference

Methods inherited from class AttributeInfo

Members inherited from class UriReference

class YesNo(AttributeInfo)

Methods

prepare(self, element, value)
Overrides: prepare from class AttributeInfo
reprocess = prepare(self, element, value)
Overrides: reprocess from class AttributeInfo

Methods inherited from class AttributeInfo

Members

display = '"yes" | "no"'
class YesNoAvt(Avt, YesNo)

Methods inherited from class Avt

Methods inherited from class YesNo

Methods inherited from class AttributeInfo

Members inherited from class YesNo

Functions

IsQName(s)
IsQName(s) -> bool
Returns True if the given string matches the QName production as defined
by the W3C's Namespaces in XML Recommendation.
SplitQName(qualifiedName)
SplitQName(qualifiedName) -> (prefix, localName)
where 'qualifiedName' is a QName according to XML Namespaces 1.0
<http://www.w3.org/TR/REC-xml-names>.
returns the name parts according to the spec.

Globals

EMPTY_NAMESPACE = None
XMLNS_NAMESPACE = u'http://www.w3.org/2000/xmlns/'
XML_NAMESPACE = u'http://www.w3.org/XML/1998/namespace'