Skip to content

XLST Custom Extension

Integration

The Namespace of the extensions must be made known to the node in this way:

<xsl:stylesheet version="2.0"
    ...
    xmlns:az="awisto:http-request"

http-request

The http request is an replacement of the depricated XLST extension. You can call your custom code this way to extend the data source.

Get(url)

  • url (string)

This will send an HTTP Get Request to the specified url. The specified endpoint must return an XmlDocument.

   <xsl:apply-templates select="az:Get(https://w...)"/>
The returned XML Node will be attached to the datasource XML. You can add additional XML Nodes with this.

or

      <xsl:value-of select="az:Get(https://w...)"  />
Only the inner text of the returned XML Node will be attached to the datasource XML.

PostString(url, data, value)

  • url (string)
  • data (XPathNavigator)
  • value (XPathNavigator)

This will send an HTTP Post Request to the specified url. The specified endpoint must return an string. The payload can be an data node and an additional value node

   <xsl:apply-templates select="az:PostString(https://w..., data, ownerid)"/>
The returned XML Node will be attached to the datasource XML. You can add additional XML Nodes with this.

or

      <xsl:value-of select="az:PostString(https://w..., data, ownerid)"  />
Only the inner text of the returned XML Node will be attached to the datasource XML.

Implementation

(xmlData: data.OuterXml, value: value.OuterXml);

Post

  • url (string)
  • data (XPathNavigator)
  • value (XPathNavigator) This will send an HTTP Post Request to the specified url. The specified endpoint must return an string or an XML node and is converted to an XML Node. The payload can be an data node and an additional value node.

   <xsl:apply-templates select="az:Post(https://w..., data, ownerid)"/>
The returned XML Node will be attached to the datasource XML. You can add additional XML Nodes with this.

or

      <xsl:value-of select="az:Post(https://w..., data, ownerid)"  />
Only the inner text of the returned XML Node will be attached to the datasource XML.

Implementation

(xmlData: data.OuterXml, value: value.OuterXml);