|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.util.CmsXsltUtil
public final class CmsXsltUtil
Provides utility functions for XSLT transformations.
TODO: This class is apparently customer specific and should probably be removed from the core!
| Field Summary | |
|---|---|
static String |
TAG_END_DELIMITER
The delimiter to end a tag. |
static String |
TAG_START_DELIMITER
The delimiter to start a tag. |
static char |
TEXT_DELIMITER
The delimiter to separate the text. |
| Method Summary | |
|---|---|
static String |
getPreferredDelimiter(String csvData)
Returns the delimiter that most often occures in the CSV content and is therefore best applicable for the CSV data . |
static String |
transformCsvContent(CmsObject cms,
String xsltFile,
String csvContent,
String delimiter)
Changes content from CSV to xml/html. |
static String |
transformXmlContent(CmsObject cms,
String xsltFile,
String xmlContent)
Applies a XSLT Transformation to the content. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TAG_END_DELIMITER
public static final String TAG_START_DELIMITER
public static final char TEXT_DELIMITER
| Method Detail |
|---|
public static String getPreferredDelimiter(String csvData)
csvData - the comma separated values
public static String transformCsvContent(CmsObject cms,
String xsltFile,
String csvContent,
String delimiter)
throws CmsException,
CmsXmlException
The method does not use DOM4J, because iso-8859-1 code ist not transformed correctly.
cms - the cms objectxsltFile - the XSLT transformation filecsvContent - the csv content to transformdelimiter - delimiter used to separate csv fields
CmsXmlException - if something goes wrong
CmsException - if something goes wrong
public static String transformXmlContent(CmsObject cms,
String xsltFile,
String xmlContent)
throws CmsException,
CmsXmlException
The method does not use DOM4J, because iso-8859-1 code ist not transformed correctly.
cms - the cms objectxsltFile - the XSLT transformation filexmlContent - the XML content to transform
CmsXmlException - if something goes wrong
CmsException - if something goes wrong
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||