<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: trying to use normalize-space in code</title><link>https://www.infopathdev.com:443/forums/thread/24614.aspx</link><pubDate>Wed, 21 Nov 2007 16:12:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24614</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24614.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=24614</wfw:commentRss><description>&lt;p&gt;Hi Ed,&lt;/p&gt;
&lt;p&gt;You&amp;#39;re trying to use an XSL function within JScript, and that&amp;#39;s not going to work.&amp;nbsp; You need to perform the operation with valid JScript functions.&amp;nbsp; Here is a link on how this guy did it: &lt;a href="http://www.aspdev.org/articles/javascript-trim/"&gt;http://www.aspdev.org/articles/javascript-trim/&lt;/a&gt;&lt;/p&gt;</description></item><item><title>trying to use normalize-space in code</title><link>https://www.infopathdev.com:443/forums/thread/24562.aspx</link><pubDate>Tue, 20 Nov 2007 01:28:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24562</guid><dc:creator>Ed Rodman</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24562.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=24562</wfw:commentRss><description>&lt;p&gt;I am trying to&amp;nbsp;get the normalize-space function to work on a text box. I&amp;#39;ve enclose my code,&amp;nbsp;any ideas?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;function trimIt() &lt;/p&gt;
&lt;p&gt;{ &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var txt_RelmNumberField = XDocument.DOM.selectSingleNode(&amp;quot;//my:txt_RelmNumber&amp;quot;); &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; txt_RelmNumberField.text = text.normalize-space(txt_RelmNumberField.text);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;}&amp;nbsp; &lt;/p&gt;</description></item></channel></rss>