<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: XML/XPath Help needed to combine 2 simple statements</title><link>https://www.infopathdev.com:443/forums/thread/27800.aspx</link><pubDate>Tue, 08 Apr 2008 20:18:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27800</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27800.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=27800</wfw:commentRss><description>&lt;p&gt;It could be done using a web based data source too.&lt;/p&gt;
&lt;p&gt;Send me an email and we can set up a demonstration.&lt;/p&gt;</description></item><item><title>Re: XML/XPath Help needed to combine 2 simple statements</title><link>https://www.infopathdev.com:443/forums/thread/27797.aspx</link><pubDate>Tue, 08 Apr 2008 18:44:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27797</guid><dc:creator>Catharine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27797.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=27797</wfw:commentRss><description>&lt;p&gt;Thank you&amp;nbsp; I would like to see&amp;nbsp; how you have done this.- I don&amp;#39;t have an xml secondary data source - I have one from SharePoint.&amp;nbsp; I have a button which selects the language and then all of the text gets pulled in - and it works fine.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;My difficulty is that in the same Field the value of the text is EITHER dependant on just one other field OR dependent on 2 other fields.&amp;nbsp; and I have no knowledge of which other than a value being missing from the secondary data.&lt;/p&gt;
&lt;p&gt;Catharine&lt;/p&gt;</description></item><item><title>Re: XML/XPath Help needed to combine 2 simple statements</title><link>https://www.infopathdev.com:443/forums/thread/27785.aspx</link><pubDate>Tue, 08 Apr 2008 18:04:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27785</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27785.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=27785</wfw:commentRss><description>&lt;p&gt;Hi Catharine.&lt;/p&gt;
&lt;p&gt;We do many localized or multilanguage forms.&lt;/p&gt;
&lt;p&gt;Essentially we use an XML secondary source and then map all of the labels and buttons to pull their text from this source.&amp;nbsp; We have a dropdown that is used to specify which language source file to use.&lt;/p&gt;
&lt;p&gt;So all labels are done in Expression boxes.&lt;/p&gt;
&lt;p&gt;If you want to send me an email I could show you how we do it.&lt;/p&gt;</description></item><item><title>XML/XPath Help needed to combine 2 simple statements</title><link>https://www.infopathdev.com:443/forums/thread/27780.aspx</link><pubDate>Tue, 08 Apr 2008 15:30:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27780</guid><dc:creator>Catharine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27780.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=27780</wfw:commentRss><description>&lt;p&gt;I am trying to create a 2007 form which can be utilized by several languages.&amp;nbsp; I will try and give a simplified example.&amp;nbsp; But please remember I may have many countries, and many text fields all of which have this &amp;#39;feature&amp;#39;.&lt;/p&gt;
&lt;p&gt;I have 3 fields&amp;nbsp; FormCountry, FormSite, FormTEXT&lt;br /&gt;I want to create a default&amp;nbsp;for the field&amp;nbsp;FormTEXT.&amp;nbsp;But sometimes the&amp;nbsp;value to go into FormText&amp;nbsp;is dependent on the Country and the Site, and sometimes it is just dependent on the Country&lt;br /&gt;&lt;br /&gt;I have the following data from a secondary data source&lt;br /&gt;DataCountry&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DataTEXT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataSite&lt;br /&gt;England&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hi&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;1&lt;br /&gt;England&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Greetings&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;br /&gt;England&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hello&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;br /&gt;Germany&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hello&lt;/p&gt;
&lt;p&gt;So the default value for FormTEXT is&amp;nbsp;EITHER &lt;br /&gt;@DataText[@DataCountry = FormCountry and @DataSite = FormSite]&amp;nbsp;&lt;br /&gt;OR &lt;br /&gt;@DataText[@DataCountry = FormCountry]&lt;/p&gt;
&lt;p&gt;The &amp;#39;decision&amp;#39; about which, is purely data driven.&amp;nbsp; If there is no value in&amp;nbsp;DataSite then it is the second.&amp;nbsp; My&amp;nbsp;xml/xpath is not up to combining these two simple statements without an IF clause&amp;nbsp;can anyone help ?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;</description></item></channel></rss>