diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-dns/dnssec-root/files/anchors2ds.xsl |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-dns/dnssec-root/files/anchors2ds.xsl')
-rw-r--r-- | net-dns/dnssec-root/files/anchors2ds.xsl | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/net-dns/dnssec-root/files/anchors2ds.xsl b/net-dns/dnssec-root/files/anchors2ds.xsl new file mode 100644 index 000000000000..3df47e20759d --- /dev/null +++ b/net-dns/dnssec-root/files/anchors2ds.xsl @@ -0,0 +1,32 @@ +<?xml version="1.0"?> + +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> + <xsl:output method="text"/> + + <xsl:template match="/"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="/TrustAnchor"> + <xsl:apply-templates select="Zone"/> + <xsl:apply-templates select="KeyDigest"/> + <xsl:text> +</xsl:text> + </xsl:template> + + <xsl:template match="KeyDigest"> + <xsl:apply-templates select="KeyTag"/> + <xsl:apply-templates select="Algorithm"/> + <xsl:apply-templates select="DigestType"/> + <xsl:apply-templates select="Digest"/> + </xsl:template> + + <xsl:template match="Zone"> + <xsl:value-of select="text()"/><xsl:text> IN DS </xsl:text> + </xsl:template> + + <xsl:template match="*"> + <xsl:value-of select="text()"/><xsl:text> </xsl:text> + </xsl:template> + +</xsl:stylesheet>
\ No newline at end of file |