net.sf.xslthl
Class ConnectorXalan

java.lang.Object
  extended by net.sf.xslthl.ConnectorXalan

public class ConnectorXalan
extends java.lang.Object

XalanConnector for XsltHL. Usage: Add the namespace xmlns:xhl="xalan://net.sf.xslthl.XalanConnector" then you can use the function: xhl:highlight($language, exsl:node-set($content)) or xhl:highlight($language, exsl:node-set($content), 'myConfigFile')

Author:
Michiel Hendriks

Constructor Summary
ConnectorXalan()
           
 
Method Summary
protected static org.w3c.dom.NodeList highlight(org.apache.xalan.extensions.ExpressionContext c, java.lang.String source, MainHighlighter hl, Config config)
           
static org.w3c.dom.NodeList highlight(org.apache.xalan.extensions.ExpressionContext context, java.lang.String hlCode, org.w3c.dom.NodeList nodes)
          highlight the given nodes using the standard configuration
static org.w3c.dom.NodeList highlight(org.apache.xalan.extensions.ExpressionContext context, java.lang.String hlCode, org.w3c.dom.NodeList nodes, java.lang.String configFilename)
          highlight the given nodes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectorXalan

public ConnectorXalan()
Method Detail

highlight

protected static org.w3c.dom.NodeList highlight(org.apache.xalan.extensions.ExpressionContext c,
                                                java.lang.String source,
                                                MainHighlighter hl,
                                                Config config)
                                         throws java.lang.Exception
Throws:
java.lang.Exception

highlight

public static final org.w3c.dom.NodeList highlight(org.apache.xalan.extensions.ExpressionContext context,
                                                   java.lang.String hlCode,
                                                   org.w3c.dom.NodeList nodes)
highlight the given nodes using the standard configuration

Parameters:
context -
hlCode -
nodes -
Returns:

highlight

public static final org.w3c.dom.NodeList highlight(org.apache.xalan.extensions.ExpressionContext context,
                                                   java.lang.String hlCode,
                                                   org.w3c.dom.NodeList nodes,
                                                   java.lang.String configFilename)
highlight the given nodes

Parameters:
context -
hlCode -
nodes -
configFilename -
Returns: