Created
September 5, 2013 08:33
-
-
Save yamanyar/6447486 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 | |
--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
URL Extractor I Use in Datapower