org.apache.cocoon.components.language.markup.xsp
Class XSLTExtension

java.lang.Object
  |
  +--org.apache.cocoon.components.language.markup.xsp.XSLTExtension

public class XSLTExtension
extends java.lang.Object

This class is used as a XSLT extension class. It is used by the XSP generation stylesheet to escape XML characters to make a valid Java strings.

Version:
CVS $Id: XSLTExtension.java,v 1.1 2002/03/08 04:08:53 vgritsenko Exp $
Author:
Vadim Gritsenko

Constructor Summary
XSLTExtension()
           
 
Method Summary
 java.lang.String escape(java.lang.String string)
          Escapes '"' and '\' characters in a String (add a '\' before them) so that it can be inserted in java source.
static java.lang.String escapeString(java.lang.String string)
          Escapes '"' and '\' characters in a String (add a '\' before them) so that it can be inserted in java source.
 java.lang.String prefix(java.lang.String string)
          Counts amount of spaces in the input line from the beginning to the first new line symbol and returns a string with this amount of spaces.
 java.lang.String suffix(java.lang.String string)
          Counts amount of spaces in the input line from the end to the last new line symbol and returns a string with this amount of spaces.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSLTExtension

public XSLTExtension()
Method Detail

escapeString

public static java.lang.String escapeString(java.lang.String string)
Escapes '"' and '\' characters in a String (add a '\' before them) so that it can be inserted in java source.

escape

public java.lang.String escape(java.lang.String string)
Escapes '"' and '\' characters in a String (add a '\' before them) so that it can be inserted in java source.

prefix

public java.lang.String prefix(java.lang.String string)
Counts amount of spaces in the input line from the beginning to the first new line symbol and returns a string with this amount of spaces.

suffix

public java.lang.String suffix(java.lang.String string)
Counts amount of spaces in the input line from the end to the last new line symbol and returns a string with this amount of spaces.


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.