net.sf.xslthl
Class ConnectorXalan

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

public class ConnectorXalan
extends 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 NodeList highlight(org.apache.xalan.extensions.ExpressionContext c, String source, MainHighlighter hl, Config config)
           
static NodeList highlight(org.apache.xalan.extensions.ExpressionContext context, String hlCode, NodeList nodes)
          highlight the given nodes using the standard configuration
static NodeList highlight(org.apache.xalan.extensions.ExpressionContext context, String hlCode, NodeList nodes, 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 NodeList highlight(org.apache.xalan.extensions.ExpressionContext c,
                                    String source,
                                    MainHighlighter hl,
                                    Config config)
                             throws Exception
Throws:
Exception

highlight

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

Parameters:
context -
hlCode -
nodes -
Returns:

highlight

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

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


Copyright © 2005-2014. All Rights Reserved.