public class Templates extends MessageSender implements ContentHandler
MultiTypeNodeList
objects.
Each instance of this class is
a SAX receiver, ie. provides the parsing method for these bi-coloured trees.
Transformation
.Modifier and Type | Field and Description |
---|---|
static Attributes |
EMPTY_ATTRIBUTES |
Map<TypedSubstantial,Binding<String,String>> |
ns_contexts
Map from every xslt code node or target language element
(complete
Element or incomplete MultiTypeNodeList )
to the valid namspace prefix mapping. |
Map<eu.bandm.tools.xslt.tdom.Element,MultiTypeNodeList> |
result_subtrees
Links from xslt elements at LEAF position to their raw/MultiType contents.
|
static TPathCache |
tpathCache
Cache for all parsed tpath expressions.
|
static DTD.Dtd |
xsltDtd |
static DTM.Dtd |
xsltDtm |
Constructor and Description |
---|
Templates(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg,
Trace trace,
URI ownUri,
ResultContext resultContext) |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
dump(ContentHandler p) |
void |
endDocument() |
void |
endElement(String namespaceURI,
String localName,
String qName) |
void |
endPrefixMapping(String pref) |
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
void |
processingInstruction(String name,
String v) |
void |
setDocumentLocator(Locator locator) |
void |
skippedEntity(String name) |
void |
startDocument() |
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts) |
void |
startPrefixMapping(String pref,
String uri) |
getLocation, setMsg, setTrace
public static final DTD.Dtd xsltDtd
public static final DTM.Dtd xsltDtm
public static final Attributes EMPTY_ATTRIBUTES
public static final TPathCache tpathCache
public final Map<eu.bandm.tools.xslt.tdom.Element,MultiTypeNodeList> result_subtrees
public final Map<TypedSubstantial,Binding<String,String>> ns_contexts
Element
or incomplete MultiTypeNodeList
)
to the valid namspace prefix mapping. It simply "freezes" a point in the dynamic
state of ns_prefixMap
.
public Templates(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, Trace trace, URI ownUri, ResultContext resultContext)
trace
- set of flags for trace on/offownUri
- position of the file to parsebaseUri
- for resolving includes, of null if not different from "./.."resultContext
- wraps all info from result tdom and dtdpublic void dump(ContentHandler p)
public void startPrefixMapping(String pref, String uri)
startPrefixMapping
in interface ContentHandler
public void endPrefixMapping(String pref)
endPrefixMapping
in interface ContentHandler
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
SAXException
public void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
SAXException
public void skippedEntity(String name) throws SAXException
skippedEntity
in interface ContentHandler
SAXException
public void processingInstruction(String name, String v)
processingInstruction
in interface ContentHandler
public void startDocument()
startDocument
in interface ContentHandler
public void endDocument()
endDocument
in interface ContentHandler
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
ignorableWhitespace
in interface ContentHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
SAXException
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
see also the complete user documentation .