[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] OK, still can't get a working redaction
David Cramer schrieb: > Use translate() on all text() nodes that are children of *[@redact = 'yes'] to replace the text with Xs: > > <xsl:template match="text()[ancestor::*[@redact='yes']]"> > <xsl:value-of select="translate(.,'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890-_=+!@#$%^&*();':"<>,./?', 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')"/><!-- Add other chars, e.g. accented chars and other languages, as needed --> > </xsl:template> Wouldn't that break syllabification/hyphenation? But I guess it's a good solution anyway. > Then do the black-on-black trick in your customization layer/css to make it have the appearance you want. Philipp Kempgen -- AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998 Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de Videos of the AMOOCON VoIP conference 2009 -> http://www.amoocon.de --
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]