Performs XSL transformation of the item's DOM and returns the result of the transformation.
IMPORTANT: Be very carefull when using slylesheets from untrusted urls, there's a possibility to use scripts in the stylesheets with the code that can cause damage.
Make sure that the stylesheet doesn't contain intrader's script code before using.
Namespace:
Aras.IOM
Assembly:
IOM (in IOM.dll) Version: 11.0.0.6296
Syntax
C# |
---|
public string applyStylesheet(
string xslStylesheet,
string type
) |
Visual Basic (Declaration) |
---|
Public Function applyStylesheet ( _
xslStylesheet As String, _
type As String _
) As String |
J# |
---|
public String applyStylesheet(
String xslStylesheet,
String type
) |
JScript |
---|
public function applyStylesheet(
xslStylesheet : String,
type : String
) : String |
Parameters
- xslStylesheet
- Type: System..::.String
If type='text' then it's XML text for the stylesheet; if type='url' then it's URL
of a stylesheet file.
- type
- Type: System..::.String
The type argument is either 'text' or a 'url' (case insensitive).
Return Value
String that represents XML of the item's DOM after XSL transformation.
Remarks
Exceptions
Exception | Condition |
---|
System.Xml..::.XmlException | Failed to load the xsl. |
System.Xml.Xsl..::.XsltCompileException | Specified xsl does not conform to a valid stylesheet. |
See Also