Skip to content

Instantly share code, notes, and snippets.

@yamanyar
Created September 5, 2013 08:33
Show Gist options
  • Save yamanyar/6447486 to your computer and use it in GitHub Desktop.
Save yamanyar/6447486 to your computer and use it in GitHub Desktop.
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"/>
<xsl:template match="/">
<xsl:text>http://</xsl:text><xsl:value-of select="//*[local-name()='ip']"/><xsl:text>:</xsl:text>
<xsl:value-of select="//*[local-name()='port']"/><xsl:text>/</xsl:text>
<xsl:value-of select="//*[local-name()='operation']"/>
<xsl:for-each select="//*[local-name()='item']">
<xsl:if test="position()=1">
<xsl:text disable-output-escaping="yes"><![CDATA[?]]></xsl:text>
</xsl:if>
<xsl:value-of select="//*[local-name()='key']"/>
<xsl:text>=</xsl:text>
<xsl:value-of select="//*[local-name()='value']"/>
<xsl:if test="position()!=last()">
<xsl:text disable-output-escaping="yes"><![CDATA[&]]></xsl:text>
</xsl:if>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
<!--
Extracts URL from ATMES Requests
5/9/2013 Kaan Yamanyar
-->
@yamanyar
Copy link
Author

yamanyar commented Sep 5, 2013

URL Extractor I Use in Datapower

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment