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.deGeschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
Asterisk:
http://the-asterisk-book.com -
http://das-asterisk-buch.deVideos of the AMOOCON VoIP conference 2009 ->
http://www.amoocon.de--
---------------------------------------------------------------------
To unsubscribe, e-mail:
docbook-apps-unsubscribe@...
For additional commands, e-mail:
docbook-apps-help@...