|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.cocoon.components.language.markup.xsp.XSLTExtension
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.
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 |
public XSLTExtension()
Method Detail |
public static java.lang.String escapeString(java.lang.String string)
public java.lang.String escape(java.lang.String string)
public java.lang.String prefix(java.lang.String string)
public java.lang.String suffix(java.lang.String string)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |