Tuesday 4 June 2013

LoadRunner::Applies Extensible StylesheetLanguage (XSL) Transformation to XML data

The lr_xml_transform function transforms the XML input string XML using the Extensible Stylesheet Language (XSL) specifications in Stylesheet and saves the resulting formatted data in ResultParam, using the source document encoding.
Return Value :: All XML functions return the number of matches successfully found or zero on failure.

The following example transforms an XML string, xml_input, using the XSL specification, stylesheet, and saves the transformation into the parameter, Result

Both xml_input and stylesheet are char strings and are converted to parameter format using lr_save_string. After lr_xml_transform is invoked, the output parameter which contains the formatted data, Result, is evaluated using lr_eval_string.
Tags: transformation, XML, XSL

No comments: