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:
Fields:

Classes

class AnyAvt(Avt, AttributeInfo)

Methods inherited from class Avt

Methods inherited from class AttributeInfo

Fields

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)

Fields

display = 'unknown'

class Avt

Methods

__str__(self)
prepare(self, element, value)

class BooleanExpression(Expression)

Methods inherited from class Expression

Methods inherited from class AttributeInfo

Fields

display = 'boolean-expression'

class Char(AttributeInfo)
A string value with a length of one

Methods

prepare(self, element, value)
reprocess = prepare(self, element, value)

Methods inherited from class AttributeInfo

Fields

display = 'char'

class CharAvt(Avt, Char)

Methods inherited from class Avt

Methods inherited from class Char

Methods inherited from class AttributeInfo

Fields


class Choice(AttributeInfo)

Methods

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

Methods inherited from class AttributeInfo

Fields


class ChoiceAvt(Avt, Choice)

Methods

__str__(self)

Methods inherited from class Avt

Methods inherited from class Choice

Methods inherited from class AttributeInfo

Fields


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

Methods

prepare(self, element, value)

Methods inherited from class AttributeInfo

Fields

display = 'expression'

class ExpressionWrapper

Methods

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

class Id(AttributeInfo)

Methods

prepare(self, element, value)
reprocess = prepare(self, element, value)

Methods inherited from class AttributeInfo

Fields

display = 'id'

class IdAvt(Avt, Id)

Methods inherited from class Avt

Methods inherited from class Id

Methods inherited from class AttributeInfo

Fields


class NCName(AttributeInfo)

Methods

prepare(self, element, value)
reprocess = prepare(self, element, value)

Methods inherited from class AttributeInfo

Fields

display = 'ncname'

class NCNameAvt(Avt, NCName)

Methods inherited from class Avt

Methods inherited from class NCName

Methods inherited from class AttributeInfo

Fields


class NMToken(AttributeInfo)

Methods

prepare(self, element, value)
reprocess = prepare(self, element, value)

Methods inherited from class AttributeInfo

Fields

display = 'nmtoken'

class NMTokenAvt(Avt, NMToken)

Methods inherited from class Avt

Methods inherited from class NMToken

Methods inherited from class AttributeInfo

Fields


class NodeSetExpression(Expression)

Methods inherited from class Expression

Methods inherited from class AttributeInfo

Fields

display = 'node-set-expression'

class Number(AttributeInfo)

Methods

prepare(self, element, value)
reprocess = prepare(self, element, value)

Methods inherited from class AttributeInfo

Fields

display = 'number'

class NumberAvt(Avt, Number)

Methods

reprocess = prepare(self, element, value)

Methods inherited from class Avt

Methods inherited from class AttributeInfo

Fields


class NumberExpression(Expression)

Methods inherited from class Expression

Methods inherited from class AttributeInfo

Fields

display = 'number-expression'

class Pattern(AttributeInfo)
An attribute whose value is used as an XPattern expression

Methods

prepare(self, element, value)

Methods inherited from class AttributeInfo

Fields

display = 'pattern'

class Prefix(AttributeInfo)

Methods

prepare(self, element, value)
reprocess = prepare(self, element, value)

Methods inherited from class AttributeInfo

Fields

display = 'prefix'

class PrefixAvt(Avt, Prefix)

Methods inherited from class Avt

Methods inherited from class Prefix

Methods inherited from class AttributeInfo

Fields


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

Methods

prepare(self, element, value)
reprocess = prepare(self, element, value)

Methods inherited from class AttributeInfo

Fields

display = 'prefixes'

class PrefixesAvt(Avt, Prefixes)

Methods inherited from class Avt

Methods inherited from class Prefixes

Methods inherited from class AttributeInfo

Fields


class QName(AttributeInfo)

Methods

prepare(self, element, value)
reprocess = prepare(self, element, value)

Methods inherited from class AttributeInfo

Fields

display = 'qname'

class QNameAvt(Avt, QName)

Methods inherited from class Avt

Methods inherited from class QName

Methods inherited from class AttributeInfo

Fields


class QNameButNotNCName(AttributeInfo)

Methods

prepare(self, element, value)
reprocess = prepare(self, element, value)

Methods inherited from class AttributeInfo

Fields

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)
reprocess = prepare(self, element, value)

Methods inherited from class AttributeInfo

Fields

display = 'qnames'

class QNamesAvt(Avt, QNames)

Methods inherited from class Avt

Methods inherited from class QNames

Methods inherited from class AttributeInfo

Fields


class RawQName(QName)

Methods

prepare(self, element, value)
reprocess = prepare(self, element, value)

Methods inherited from class AttributeInfo

Fields


class RawQNameAvt(Avt, RawQName)

Methods inherited from class Avt

Methods inherited from class RawQName

Methods inherited from class AttributeInfo

Fields


class String(AttributeInfo)

Methods inherited from class AttributeInfo

Fields

display = 'string'

class StringAvt(Avt, String)

Methods inherited from class Avt

Methods inherited from class AttributeInfo

Fields


class StringExpression(Expression)

Methods inherited from class Expression

Methods inherited from class AttributeInfo

Fields

display = 'string-expression'

class Token(AttributeInfo)
An attribute whose value is used as an XPath NameTest

Methods

prepare(self, element, value)
reprocess = prepare(self, element, value)

Methods inherited from class AttributeInfo

Fields

display = 'token'

class TokenAvt(Avt, Token)

Methods inherited from class Avt

Methods inherited from class Token

Methods inherited from class AttributeInfo

Fields


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

Methods

prepare(self, element, value)
reprocess = prepare(self, element, value)

Methods inherited from class AttributeInfo

Fields

display = 'tokens'

class TokensAvt(Avt, Tokens)

Methods inherited from class Avt

Methods inherited from class Tokens

Methods inherited from class AttributeInfo

Fields


class UriReference(AttributeInfo)

Methods

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

Methods inherited from class AttributeInfo

Fields

display = 'uri-reference'

class UriReferenceAvt(Avt, UriReference)

Methods inherited from class Avt

Methods inherited from class UriReference

Methods inherited from class AttributeInfo

Fields


class YesNo(AttributeInfo)

Methods

prepare(self, element, value)
reprocess = prepare(self, element, value)

Methods inherited from class AttributeInfo

Fields

display = '"yes" | "no"'

class YesNoAvt(Avt, YesNo)

Methods inherited from class Avt

Methods inherited from class YesNo

Methods inherited from class AttributeInfo

Fields

Functions

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.

Fields

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