<?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: Define a condition in a preserve code block</title><link>https://www.infopathdev.com:443/forums/thread/10034.aspx</link><pubDate>Tue, 18 Jul 2006 17:07:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10034</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10034.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10034</wfw:commentRss><description>Again, the key here is to do something similar outside of a preserve code block first and then look at the resulting XSL. It will show you exactly the kinds of structures you need in order to call from primary to secondary and back. Then you can manually work the code in the preserve code block to match.</description></item><item><title>Re: Define a condition in a preserve code block</title><link>https://www.infopathdev.com:443/forums/thread/10033.aspx</link><pubDate>Wed, 05 Jul 2006 12:55:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10033</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10033.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10033</wfw:commentRss><description>Hi Greg,&lt;br /&gt;&lt;br /&gt;Thanks for the idea I have try to make some condition and after make my code block but the problem is that my ddl is in the secondary datasource but in the view.xsl there is in a primary datasource template. So when I make a preserve template I cant call only @CHNR like it was before in my view.xsl. I am in a secondary datasource template.&lt;br /&gt;&lt;br /&gt;So my question is how to call the primary datsource from a secondary template?&lt;br /&gt; &lt;br /&gt;Thanks</description></item><item><title>Re: Define a condition in a preserve code block</title><link>https://www.infopathdev.com:443/forums/thread/10032.aspx</link><pubDate>Fri, 30 Jun 2006 17:42:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10032</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10032.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10032</wfw:commentRss><description>The easiest way to do what you want is to first create your condition on a field that is NOT in a preserve code block -- then look at the restulting XML and copy it to your field that IS in your preserve code block.</description></item><item><title>Define a condition in a preserve code block</title><link>https://www.infopathdev.com:443/forums/thread/5702.aspx</link><pubDate>Thu, 29 Jun 2006 07:56:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5702</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5702.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5702</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;What I try is to define a conditionnal formatting in a preserve code block.&lt;br /&gt;&lt;br /&gt;My problem is that the field is in a secondary data source and I want to make my condtionnal formating based on a field in the primary datasource.&lt;br /&gt;&lt;br /&gt;How can I do for go select a field value in my primary datasource!&lt;br /&gt;&lt;br /&gt;Ex:&lt;br /&gt;&lt;pre&gt;&amp;lt;xsl:when test="xdXDocument:GetDOM()/CaseList/Case/@CHNR != "" and &lt;br /&gt;xdXDocument:GetDOM("configuration")/Config/getOrt/List"&amp;gt;DISPLAY: none&amp;lt;/xsl:when&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;That don't work I have also try with "" in the getDOM but no result.&lt;br /&gt;&lt;br /&gt;Any Idea?&lt;br /&gt;&lt;br /&gt;Thanks</description></item></channel></rss>