MarkupHandler

abstract class MarkupHandler

class that handles markup - provides callback methods to MarkupParser. the default is nonvalidating behaviour

Todo:

can we ignore more entity declarations (i.e. those with extIDs)?

expanding entity references

class Object
trait Matchable
class Any

Value members

Abstract methods

def comment(pos: Int, comment: String): NodeSeq

callback method invoked by MarkupParser after parsing comment.

callback method invoked by MarkupParser after parsing comment.

def elem(pos: Int, pre: String, label: String, attrs: MetaData, scope: NamespaceBinding, empty: Boolean, args: NodeSeq): NodeSeq

callback method invoked by MarkupParser after parsing an element, between the elemStart and elemEnd callbacks

callback method invoked by MarkupParser after parsing an element, between the elemStart and elemEnd callbacks

Value parameters:
args

the children of this element

attrs

the attributes (metadata)

empty

true if the element was previously empty; false otherwise.

label

the local name

pos

the position in the source file

pre

the prefix

def entityRef(pos: Int, n: String): NodeSeq

callback method invoked by MarkupParser after parsing entity ref.

callback method invoked by MarkupParser after parsing entity ref.

Todo:

expanding entity references

def procInstr(pos: Int, target: String, txt: String): NodeSeq

callback method invoked by MarkupParser after parsing PI.

callback method invoked by MarkupParser after parsing PI.

def reportSyntaxError(pos: Int, str: String): Unit
def text(pos: Int, txt: String): NodeSeq

callback method invoked by MarkupParser after parsing text.

callback method invoked by MarkupParser after parsing text.

Concrete methods

def attListDecl(name: String, attList: List[AttrDecl]): Unit
def elemDecl(n: String, cmstr: String): Unit
def elemEnd(pos: Int, pre: String, label: String): Unit

callback method invoked by MarkupParser after end-tag of element.

callback method invoked by MarkupParser after end-tag of element.

Value parameters:
label

the local name

pos

the position in the source file

pre

the prefix

def elemStart(pos: Int, pre: String, label: String, attrs: MetaData, scope: NamespaceBinding): Unit

callback method invoked by MarkupParser after start-tag of element.

callback method invoked by MarkupParser after start-tag of element.

Value parameters:
attrs

the attributes (metadata)

label

the local name

pos

the position in the sourcefile

pre

the prefix

def endDTD(n: String): Unit
def notationDecl(notat: String, extID: ExternalID): Unit
def peReference(name: String): Unit
def replacementText(entityName: String): Source
def unparsedEntityDecl(name: String, extID: ExternalID, notat: String): Unit

Concrete fields

returns true is this markup handler is validating

returns true is this markup handler is validating