This filter binds namespaces if namespace processing is turned on
by setting the feature "http://xml.org/sax/features/namespaces" is
set to
true
.
This configuration recognizes the following features:
- http://xml.org/sax/features/namespaces
INSERT_NAMESPACES
protected static final String INSERT_NAMESPACES
Insert namespace binding URIs.
NAMESPACES
protected static final String NAMESPACES
Namespaces.
NAMESPACES_URI
protected static final String NAMESPACES_URI
Namespaces URI.
NAMES_ATTRS
protected static final String NAMES_ATTRS
Modify HTML attribute names: { "upper", "lower", "default" }.
NAMES_ELEMS
protected static final String NAMES_ELEMS
Modify HTML element names: { "upper", "lower", "default" }.
NAMES_LOWERCASE
protected static final short NAMES_LOWERCASE
Lowercase HTML names.
NAMES_NO_CHANGE
protected static final short NAMES_NO_CHANGE
Don't modify HTML names.
NAMES_UPPERCASE
protected static final short NAMES_UPPERCASE
Uppercase HTML names.
OVERRIDE_NAMESPACES
protected static final String OVERRIDE_NAMESPACES
Override namespace binding URI.
XHTML_1_0_URI
public static final String XHTML_1_0_URI
XHTML 1.0 namespace URI (http://www.w3.org/1999/xhtml).
XMLNS_URI
public static final String XMLNS_URI
XMLNS namespace URI (http://www.w3.org/2000/xmlns/).
XML_URI
public static final String XML_URI
XML namespace URI (http://www.w3.org/XML/1998/namespace).
fInsertNamespaces
protected boolean fInsertNamespaces
Insert namespaces.
fNamesAttrs
protected short fNamesAttrs
Modify HTML attribute names.
fNamesElems
protected short fNamesElems
Modify HTML element names.
fNamespacePrefixes
protected boolean fNamespacePrefixes
Namespace prefixes.
fNamespaces
protected boolean fNamespaces
Namespaces.
fNamespacesURI
protected String fNamespacesURI
Namespaces URI.
fOverrideNamespaces
protected boolean fOverrideNamespaces
Override namespaces.
bindNamespaces
protected void bindNamespaces(QName element,
XMLAttributes attrs)
Binds namespaces.
emptyElement
public void emptyElement(QName element,
XMLAttributes attrs,
Augmentations augs)
throws XNIException
Empty element.
- emptyElement in interface DefaultFilter
endElement
public void endElement(QName element,
Augmentations augs)
throws XNIException
End element.
- endElement in interface DefaultFilter
getNamesValue
protected static final short getNamesValue(String value)
Converts HTML names string value to constant value.
getRecognizedFeatures
public String[] getRecognizedFeatures()
Returns a list of feature identifiers that are recognized by
this component. This method may return null if no features
are recognized by this component.
- getRecognizedFeatures in interface DefaultFilter
getRecognizedProperties
public String[] getRecognizedProperties()
Returns a list of property identifiers that are recognized by
this component. This method may return null if no properties
are recognized by this component.
- getRecognizedProperties in interface DefaultFilter
modifyName
protected static final String modifyName(String name,
short mode)
Modifies the given name based on the specified mode.
reset
public void reset(XMLComponentManager manager)
throws XMLConfigurationException
Resets the component. The component can query the component manager
about any features and properties that affect the operation of the
component.
- reset in interface DefaultFilter
manager
- The component manager.
splitQName
protected static void splitQName(QName qname)
Splits a qualified name.
startDocument
public void startDocument(XMLLocator locator,
String encoding,
NamespaceContext nscontext,
Augmentations augs)
throws XNIException
Start document.
- startDocument in interface DefaultFilter
startElement
public void startElement(QName element,
XMLAttributes attrs,
Augmentations augs)
throws XNIException
Start element.
- startElement in interface DefaultFilter