Anonymous - 2011-02-01

Its not pretty, but it works.

<xsl:for-each select="PTR" xml:space="preserve">
<xsl:value-of select="substring-after(substring-after(substring-after(iphostname,'.'),'.'),'.')"/>.<xsl:value-of select="substring-before(substring-after(substring-after(iphostname,'.'),'.'),'.')"/>.<xsl:value-of select="substring-before(substring-after(iphostname,'.'),'.')"/>.<xsl:value-of select="substring-before(iphostname,'.')"/>.in-addr.arpa. IN PTR <xsl:value-of select="preference"/> <xsl:value-of select="host"/>.</xsl:for-each>