Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.novell.xsl.process
Class CopyOfTemplate

    java.lang.Object
      com.novell.xsl.process.CopyOfTemplate

All Implemented Interfaces:
  Template

    public class CopyOfTemplate

extends Object
implements Template

Implementation of xsl:copy-of

Constructor Summary
`CopyOfTemplate(Expression select, Node nsContext)` Constructs a copy-of template with the specified expression.

Method Summary
`void` | `dump(PrintWriter out, int indent)` Dumps this object to the specified output stream.
`Node` | `getNamespaceContext()` Return the node that is the namespace context for this template
`Expression` | `getSelect()` Returns this template's select expression.
`void` | `instantiate(ProcessingEnv env, Node currentNode, ResultHandler result)` Instantiates this template for the specified current node and sends the result to the specified result handler.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### CopyOfTemplate

    public CopyOfTemplate(Expression select,
                          Node nsContext)

  Constructs a copy-of template with the specified expression.

  Parameters:
    `select` - the copy-of template's expression
    `nsContext` - The node in the style sheet from which this template comes

Method Detail

### getSelect

    public Expression getSelect()

  Returns this template's select expression.

  Returns:
    this template's select expression

### instantiate

    public void instantiate(ProcessingEnv env,
                            Node currentNode,
                            ResultHandler result)
                     throws XSLException

  Instantiates this template for the specified current node and sends the result to the specified result handler.

  For a `CopyOfTemplate`, this method evaluates its select expression and copies the result to the result tree. Result-tree-fragments and node-sets are copied as nodes, other types are converted to strings and copied

  Specified by:
    `instantiate` in interface `Template`
  Parameters:
    `env` - the current processing environment
    `currentNode` - the current source node
    `result` - the handler to which results are sent
  Throws:
    `XSLException` - if a fatal error occurs during instantiation

### getNamespaceContext

    public Node getNamespaceContext()

  Return the node that is the namespace context for this template

  Specified by:
    `getNamespaceContext` in interface `Template`
  Returns:
    The namespace context node.

### dump

    public void dump(PrintWriter out,
                     int indent)

  Dumps this object to the specified output stream.

  Specified by:
    `dump` in interface `Template`
  Parameters:
    `out` - the output stream to write to
    `indent` - number of tabs to indent

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD