]> git.stg.codes - stg.git/blob - doc/xslt/epub/bin/xslt/obfuscate.xsl
Added SERVICES::Find for resetable value.
[stg.git] / doc / xslt / epub / bin / xslt / obfuscate.xsl
1 <?xml version="1.0"?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
3   <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"/>
4   <xsl:template match="@*|*|comment()|processing-instruction()">
5     <xsl:copy>
6       <xsl:apply-templates select="@*|node()"/>
7     </xsl:copy>
8   </xsl:template>
9   <xsl:template match="text()">
10     <xsl:value-of select="replace(replace(., '[a-z]', 'x'), '[0-9]', 'd')"/>
11   </xsl:template>
12 </xsl:stylesheet>