4Suite API Documentation

Module Ft.Server.Server.Xslt.Http

XSLT and XPath extensions for use to access the 4SS API
Copyright 2004 Fourthought, Inc. (USA).
Detailed license and copyright information: http://4suite.org/COPYRIGHT
Project home, documentation, distributions: http://4suite.org/
Classes:
Functions:
Globals:

Classes

class RequestHeadersElement(Ft.Xml.Xslt.cStylesheetTree.XsltElement)

Methods

instantiate(self, context, processor)
Overrides: instantiate from class XsltElement

Methods inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltElement

__getstate__, __init__, __iter__, __new__, __repr__, __setstate__, appendChild, insertChild, processChildren, removeChild, replaceChild, setAttribute

Methods inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltNode

__reduce__, idle, isLastChild, pprint, prime, setup

Methods inherited from class object

__delattr__, __getattribute__, __hash__, __reduce_ex__, __setattr__, __str__

Members

__dict__ = <attribute '__dict__' of 'RequestHeadersElement' objects>
__weakref__ = <attribute '__weakref__' of 'RequestHeadersElement' objects>
content = <ContentModel object>
legalAttrs = {}

Members inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltElement

attributes, baseUri, children, columnNumber, expandedName, importIndex, lineNumber, namespaces, nodeName, prefix

Members inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltNode

doesIdle, doesPrime, doesSetup, isPseudoNode, parent, root

Members inherited from class object

__class__
class ResponseUriElement(Ft.Xml.Xslt.cStylesheetTree.XsltElement)

Methods

instantiate(self, context, processor)
Overrides: instantiate from class XsltElement

Methods inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltElement

__getstate__, __init__, __iter__, __new__, __repr__, __setstate__, appendChild, insertChild, processChildren, removeChild, replaceChild, setAttribute

Methods inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltNode

__reduce__, idle, isLastChild, pprint, prime, setup

Methods inherited from class object

__delattr__, __getattribute__, __hash__, __reduce_ex__, __setattr__, __str__

Members

__dict__ = <attribute '__dict__' of 'ResponseUriElement' objects>
__weakref__ = <attribute '__weakref__' of 'ResponseUriElement' objects>
content = <ContentModel object>
legalAttrs = {'uri': <Ft.Xml.Xslt.AttributeInfo.UriReferenceAvt instance>}

Members inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltElement

attributes, baseUri, children, columnNumber, expandedName, importIndex, lineNumber, namespaces, nodeName, prefix

Members inherited from class Ft.Xml.Xslt.cStylesheetTree.XsltNode

doesIdle, doesPrime, doesSetup, isPseudoNode, parent, root

Members inherited from class object

__class__

Functions

GetQueryArguments(context)
fhttp:get-query-args() returns a node-set consisting of one 'requestParameters' element, containing one child element for each item in the HTTP request parameters, a.k.a. the query arguments (typically HTML form data).
The HTTP server will have already decoded the parameters
and made them available to the XSLT processor; this
function merely provides access to that data as a
node-set. The parameter name becomes the element name,
and the value is the element's content. If there are
multiple parameters with the same name, they'll manifest
as separate elements.
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.
LocalPath(context, path)
Given a repo path, returns a repo path that is relative to the HTTP handler's document root, if possible. Otherwise, returns the given path unchanged.
LocalUri(context, uri)
Given an ftss URI, returns a URI reference. The reference will be relative to the HTTP handler's document root.

Globals

ExtElements = {('http://xmlns.4suite.org/4ss/http', 'request-headers'): <class 'Ft.Server.Server.Xslt.Http.RequestHeadersElement'>, ('http://xmlns.4suite.org/4ss/http', 'response-uri'): <class 'Ft.Server.Server.Xslt.Http.ResponseUriElement'>}
ExtFunctions = {('http://xmlns.4suite.org/4ss/http', 'get-query-args'): <function GetQueryArguments>, ('http://xmlns.4suite.org/4ss/http', 'local-path'): <function LocalPath>, ('http://xmlns.4suite.org/4ss/http', 'local-uri'): <function LocalUri>}
HTTP_NS = 'http://xmlns.4suite.org/4ss/http'
RESERVED_NAMESPACE = 'http://xmlns.4suite.org/reserved'