public class Highlight
extends net.sf.saxon.lib.ExtensionFunctionDefinition
lux:highlight($query as item(), $node as node()) returns the given node with text matching the query surrounded by HTML B tags. The query may be a string or an element/document of the same types supported by lux:search.
TODO: enable control over the highlight tagging.
Search,
Serialized Form| Constructor and Description |
|---|
Highlight() |
| Modifier and Type | Method and Description |
|---|---|
net.sf.saxon.value.SequenceType[] |
getArgumentTypes() |
net.sf.saxon.om.StructuredQName |
getFunctionQName() |
net.sf.saxon.value.SequenceType |
getResultType(net.sf.saxon.value.SequenceType[] suppliedArgumentTypes) |
net.sf.saxon.lib.ExtensionFunctionCall |
makeCallExpression() |
public net.sf.saxon.value.SequenceType[] getArgumentTypes()
getArgumentTypes in class net.sf.saxon.lib.ExtensionFunctionDefinitionpublic net.sf.saxon.om.StructuredQName getFunctionQName()
getFunctionQName in class net.sf.saxon.lib.ExtensionFunctionDefinitionpublic net.sf.saxon.value.SequenceType getResultType(net.sf.saxon.value.SequenceType[] suppliedArgumentTypes)
getResultType in class net.sf.saxon.lib.ExtensionFunctionDefinitionpublic net.sf.saxon.lib.ExtensionFunctionCall makeCallExpression()
makeCallExpression in class net.sf.saxon.lib.ExtensionFunctionDefinitionCopyright © 2013. All Rights Reserved.