XLST Custom Extension
Integration
The Namespace of the extensions must be made known to the
<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...)"/>
or
<xsl:value-of select="az:Get(https://w...)" />
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)"/>
or
<xsl:value-of select="az:PostString(https://w..., data, ownerid)" />
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)"/>
or
<xsl:value-of select="az:Post(https://w..., data, ownerid)" />
Implementation
(xmlData: data.OuterXml, value: value.OuterXml);