[Home] [By Thread] [By Date] [Recent Entries]
Mark Wilson wrote:
What I really want to do is reorganize strings that contain, for example Does the following do what you want? <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template><xsl:template match="Person"> <xsl:copy> <xsl:value-of select="replace(., '(\w+)(\s+\(\w+\))?(,\s+\w+)', '$1$3$2')"/> </xsl:copy> </xsl:template> </xsl:stylesheet> -- Martin Honnen http://msmvps.com/blogs/martin_honnen/
|

Cart



