public class PIGrabber extends ProxyReceiver
nextReceiver
pipelineConfiguration, previousAtomic, systemId
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
Modifier and Type | Method and Description |
---|---|
Source[] |
getAssociatedStylesheets()
Return list of stylesheets that matched, as an array of Source objects
|
boolean |
isTerminated()
Determine whether the parse terminated because the first start element tag was found
|
void |
processingInstruction(String target,
CharSequence data,
Location locationId,
int properties)
Handle xml-stylesheet PI
|
void |
setBaseURI(String uri)
Set the base URI
|
void |
setCriteria(String media,
String title)
Define the matching criteria
|
void |
setFactory(Configuration config) |
void |
setURIResolver(URIResolver resolver)
Set the URI resolver to be used for the href attribute
|
void |
startElement(NodeName namecode,
SchemaType typecode,
Location location,
int properties)
Abort the parse when the first start element tag is found
|
append, attribute, characters, close, comment, endDocument, endElement, getNamePool, getUnderlyingReceiver, namespace, open, setPipelineConfiguration, setSystemId, setUnderlyingReceiver, setUnparsedEntity, startContent, startDocument, usesTypeAnnotations
append, getConfiguration, getPipelineConfiguration, getSystemId, isTrueSequenceReceiver
public PIGrabber(Receiver next)
public void setFactory(Configuration config)
public void setCriteria(String media, String title)
media
- the required media. Note that Saxon does not implement the complex CSS3-based syntax for
media queries. By default, the media value is simply ignored. An algorithm for
comparing the requested media with the declared media can be defined using
the method Configuration.setMediaQueryEvaluator(Comparator)
.title
- the required titlepublic void setBaseURI(String uri)
uri
- the base URIpublic void setURIResolver(URIResolver resolver)
resolver
- the URI resolverpublic void startElement(NodeName namecode, SchemaType typecode, Location location, int properties) throws XPathException
startElement
in interface Receiver
startElement
in class ProxyReceiver
namecode
- integer code identifying the name of the element within the name pool.typecode
- integer code identifying the element's type within the name pool.location
- an object providing information about the module, line, and column where the node originatedproperties
- properties of the element nodeXPathException
- if an error occurspublic boolean isTerminated()
public void processingInstruction(String target, CharSequence data, Location locationId, int properties) throws XPathException
processingInstruction
in interface Receiver
processingInstruction
in class ProxyReceiver
target
- The PI name. This must be a legal name (it will not be checked).data
- The data portion of the processing instructionlocationId
- provides information such as line number and system ID.properties
- Additional information about the PI.XPathException
- if an error occurspublic Source[] getAssociatedStylesheets() throws TransformerException
XPathException
- if a URI cannot be resolvedTransformerException
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.