Subject: RE: SubString Issue! From: Linda van den Brink <lvdbrink@xxxxxxx> Date: Fri, 23 Jun 2000 12:52:43 +0200 |
This works (with xt): <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="Highlight"> <B><xsl:apply-templates/></B> </xsl:template> <!--To apply mask:--> <xsl:template match="text()[ancestor::CreditCard]"><!-- or match="CreditCard/Highlight/text()" if credit card numbers are always inside a Highlight element --> <xsl:variable name="mask"><xsl:text>XXXX</xsl:text></xsl:variable> <Text> <xsl:value-of select="substring(., 1, 15)"/><!-- substring is used on the current node --> <xsl:value-of select="$mask"/> </Text> </xsl:template> </xsl:stylesheet> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: SubString Issue!, Mabry, F. DR | Thread | ANN: XSL FO to HTML Stylesheet, Nikolai Grigoriev |
Re: XLS files scrambling, Matt Sergeant | Date | RE: xsl keywords, Linda van den Brink |
Month |