As a very simple test, the following works for me using with
expath-http-client-saxon-0.11.0 and Saxon EE
9.6.0.7:
exclude-result-prefixes="xs"
version="3.0">
<xsl:param name="base-uri" required="yes" as="xs:string"/>
<xsl:template match="/">
<xsl:variable as="element(http:request)" name="request">
<http:request href="{$base-uri}" method="get">
<http:header name="Accept"
value="application/xml;charset=utf-8"/>
</http:request>
</xsl:variable>
<xsl:variable name="response" select="http:send-request($request)"/>
<xsl:if test="$response[1]/xs:integer(@status) ne 200">
<xsl:sequence select="error((), 'Status is not 200.')"/>
</xsl:if>
<xsl:copy>
<xsl:copy-of select="$response[2]"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
On 15 May 2016 at 07:10, 'Stephan Lehmke' via EXPath
> --
> You received this message because you are subscribed to the Google Groups
> "EXPath" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
expath+un...@googlegroups.com.
> To post to this group, send email to
exp...@googlegroups.com.
> Visit this group at
https://groups.google.com/group/expath.
> For more options, visit
https://groups.google.com/d/optout.
--
Adam Retter
skype: adam.retter
tweet: adamretter
http://www.adamretter.org.uk