|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opencms.util.CmsXsltUtil
public class CmsXsltUtil
| 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. |
| Constructor Summary | |
|---|---|
CmsXsltUtil()
|
|
| Method Summary | |
|---|---|
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 char TEXT_DELIMITER
public static final String TAG_START_DELIMITER
public static final String TAG_END_DELIMITER
| Constructor Detail |
|---|
public CmsXsltUtil()
| Method Detail |
|---|
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
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||