diff options
Diffstat (limited to 'epub/bin/xslt/obfuscate.xsl')
-rw-r--r-- | epub/bin/xslt/obfuscate.xsl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/epub/bin/xslt/obfuscate.xsl b/epub/bin/xslt/obfuscate.xsl new file mode 100644 index 0000000..4ea4cd5 --- /dev/null +++ b/epub/bin/xslt/obfuscate.xsl @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> + <xsl:output method="xml" omit-xml-declaration="no" doctype-public="-//OASIS//DTD DocBook XML V4.4//EN" doctype-system="http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" indent="no"/> + <xsl:template match="@*|*|comment()|processing-instruction()"> + <xsl:copy> + <xsl:apply-templates select="@*|node()"/> + </xsl:copy> + </xsl:template> + <xsl:template match="text()"> + <xsl:value-of select="replace(replace(., '[a-z]', 'x'), '[0-9]', 'd')"/> + </xsl:template> +</xsl:stylesheet> |