4Suite API Documentation

Module Ft.Xml.Xslt.DomWriter

DOM DocumentFragment writer for XSLT output
Much inspired by RtfWriter.

Copyright (c) 2000-2001 Alexandre Fayolle (France).

Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation.

THIS PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
Classes:
Functions:
Globals:

Classes

class DomWriter(Ft.Xml.Xslt.NullWriter.NullWriter)

Methods

__init__(self, ownerDoc=None, outputParams=None)
Note: if no ownerDoc, there is no way to set the document's base URI.
Overrides: __init__ from class NullWriter
attribute(self, name, value, namespace=None)
Overrides: attribute from class NullWriter
comment(self, text)
Overrides: comment from class NullWriter
endElement(self, name, namespace=None)
Overrides: endElement from class NullWriter
getResult(self)
Overrides: getResult from class NullWriter
processingInstruction(self, target, data)
Overrides: processingInstruction from class NullWriter
startElement(self, name, namespace=None, extraNss=None)
Overrides: startElement from class NullWriter
text(self, text, escapeOutput=True)
The escapeOutput parameter is ignored
Overrides: text from class NullWriter

Methods inherited from class Ft.Xml.Xslt.NullWriter.NullWriter

Functions

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/'