<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: translate function</title><link>https://www.infopathdev.com:443/forums/thread/63688.aspx</link><pubDate>Fri, 28 Jan 2011 13:43:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63688</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63688.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=63688</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m afraid translate() doesn&amp;#39;t work like that.&amp;nbsp; Translate replaces single characters with other single characters, or it can remove single characters:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;a href="http://www.w3.org/TR/xpath/#function-translate"&gt;http://www.w3.org/TR/xpath/#function-translate&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;You can probably rig up something with rules and tricky XPath functions, but you risk causing an infinite loop error&amp;nbsp;if there are a lot of double semicolons.&amp;nbsp; The other alternative is to use code which, can remove them pretty easily.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Can I ask why your values have these double semicolons in them to begin with?&lt;/p&gt;</description></item><item><title>Re: translate function</title><link>https://www.infopathdev.com:443/forums/thread/63685.aspx</link><pubDate>Fri, 28 Jan 2011 12:38:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63685</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63685.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=63685</wfw:commentRss><description>&lt;p&gt;Interesting. translate() won&amp;#39;t work for me either.&lt;/p&gt;&lt;p&gt;I did manage to get something similar working:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;b&gt;&lt;i&gt;concat(substring-before(field1, &amp;quot;;;&amp;quot;), &amp;quot;;&amp;quot;, substring-after(field1, &amp;quot;;;&amp;quot;)) &lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>translate function</title><link>https://www.infopathdev.com:443/forums/thread/63581.aspx</link><pubDate>Wed, 26 Jan 2011 18:40:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63581</guid><dc:creator>Marzipan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63581.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=63581</wfw:commentRss><description>&lt;p&gt;field2=translate(field2, &amp;quot;&amp;#39;;;&amp;quot;, &amp;quot;;&amp;quot;)&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to replace double semi-colons with a single semi-colon&amp;nbsp; &lt;/p&gt;
&lt;p&gt;the result is both ;; are striped.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>