public class XsltTransformator extends Object
Constructor and Description |
---|
XsltTransformator() |
Modifier and Type | Method and Description |
---|---|
static Data |
dataTransformFromPathFile(Data data,
String xsltPathFile)
Transforms the content of Data using XSLT.
|
static Data |
dataTransformFromURL(Data data,
String xsltUrl)
Transforms the content of Data using XSLT.
|
static Node |
nodeTransformFromNode(Node nsource,
Node xsltNode)
Transforms the given xml Node, using XSL in a form of a Node.
|
static Node |
nodeTransformFromURL(Node node,
String xslturl)
Transforms the given node using the xslt located in the given URL.
|
static String |
stringTransformFromFilePath(String xml,
String filepath) |
static String |
stringTransformFromURL(String source,
String xsltUrl)
Transforms the given xml in the given string, using the xslt located in the given URL.
|
public static Node nodeTransformFromNode(Node nsource, Node xsltNode) throws CiliaException
nsource
- XML to transform.xsltNode
- XSLT to use to transform.CiliaException
- When there is not possible to transform XMl.public static Data dataTransformFromURL(Data data, String xsltUrl) throws CiliaException
data
- data to transform.xsltUrl
- URL where the xslt is located.CiliaException
- when there is a problem transformating the xml.public static Data dataTransformFromPathFile(Data data, String xsltPathFile) throws CiliaException
data
- data to transform.xsltPathFile
- Path File where the xslt is located.CiliaException
- when there is a problem transformating the xml.public static Node nodeTransformFromURL(Node node, String xslturl) throws CiliaException
node
- Node to transofm.xslturl
- location of xslt.CiliaException
- when there is a problem transformating the xml.public static String stringTransformFromURL(String source, String xsltUrl) throws CiliaException
source
- xml in a string object.xslturl
- location of xslt.CiliaException
- when there is a problem transformating the xml.public static String stringTransformFromFilePath(String xml, String filepath) throws CiliaException
CiliaException
Copyright © 2012-2013 Adele Team | LIG. All Rights Reserved.