|
Subject: Re: [xsl] translating and commenting punctuation [XSLT1.0] From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Thu, 24 Feb 2011 13:18:39 +0100 |
Hello everybody,
I am trying to translate "," in text to new line while keeping a copy of it in comment. Some thing like below:
XML ===
<mytext>xxxx, yyyy, zzzzz, ttttt</mytext>
Output Required ==========
<mytext>xxxx<!--,--> yyyy<!--,--> zzzzz<!--,--> ttttt</mytext>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="mytext">
<xsl:copy>
<xsl:call-template name="replace">
<xsl:with-param name="text" select="."/>
</xsl:call-template>
</xsl:copy>
</xsl:template></xsl:stylesheet> --
Martin Honnen http://msmvps.com/blogs/martin_honnen/
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] translating and commentin, pankaj . c | Thread | Re: [xsl] translating and commentin, pankaj . c |
| Re: [xsl] translating and commentin, Michael Kay | Date | Re: [xsl] translating and commentin, pankaj . c |
| Month |