XSLTransform.TransformFromNode

Syntax:

TransformFromNode(<Node>, <XMLRecord>)

Parameters:

<Node> (required)

Type: DOMAttribute, DOMDocument, DOMElement, DOMDocumentType, DOMNotation, DOMEntity, DOMDocumentFragment, DOMText, DOMComment, DOMCDATASection, DOMProcessingInstruction, DOMEntityReference, XPathNamespace.
DOM node representing an initial tree for XSL conversion.

<XMLRecord> (optional)

Type: DOMNodeWriter, FastInfosetWriter, XMLWriter.
XML writing object for writing the conversion result. This parameter is worth specifying if the data are converted to an XML document. If this parameter is specified, conversion results will be written to the object XMLWriter, in this case there will be no returned value.

Returned value:

Type: String.
Conversion results.

Description:

Converts the XML document located in the string. Uses the conversion description and parameter values that have been previously specified in this object.

Availability:

Thin client, server, thick client, external connection.

Example:

Transform = New XSLTransform;
Transform.LoadFromFile("c:/transforms/transform.xsl");
Transform.AddParameter("low_sales", 30000);
Result = Transform.TransformFromString(StrXML);


    

1C:Enterprise Developer's Community