<?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: Template Part schema changes when inserted into a form?</title><link>https://www.infopathdev.com:443/forums/thread/30264.aspx</link><pubDate>Thu, 10 Jul 2008 03:40:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30264</guid><dc:creator>smaus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30264.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=30264</wfw:commentRss><description>&lt;p&gt;No, was never able to resolve this issue.&amp;nbsp; It must have something to do with the preceding-sibling function.&amp;nbsp; Since Template Parts are embedded as section, and therefore, nodes, InfoPath must be trying to level the formulas and expressions when a Template Part is added to a form.&lt;/p&gt;
&lt;p&gt;-Ann&lt;/p&gt;</description></item><item><title>Re: Template Part schema changes when inserted into a form?</title><link>https://www.infopathdev.com:443/forums/thread/29594.aspx</link><pubDate>Sun, 22 Jun 2008 14:27:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29594</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29594.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=29594</wfw:commentRss><description>&lt;p&gt;Hello:&lt;/p&gt;
&lt;p&gt;Were you ever able to resolve this? I replicated this and had the same results. I then updated Office 2007 to SP 1, just in case there was a fix in there, but still had the same results. I looked at the source files for the template part, and saw that the&amp;nbsp;.ict file had the following line in it:&lt;br /&gt;&amp;lt;xsl:when test=&amp;quot;relXpath:UG_ServerName = relXpath:UG_ServerName&amp;quot;&amp;gt;DISPLAY: none&amp;lt;/xsl:when&amp;gt;&lt;/p&gt;
&lt;p&gt;And the actual XSL had this:&lt;br /&gt;&amp;lt;xsl:when test=&amp;quot;my:UG_ServerName = preceding-sibling::my:UserGroup/my:UG_ServerName&amp;quot;&amp;gt;DISPLAY: none&amp;lt;/xsl:when&amp;gt;&lt;/p&gt;
&lt;p&gt;So, obviously, the .ict isn&amp;#39;t reflecting the XSL....&lt;/p&gt;</description></item><item><title>Template Part schema changes when inserted into a form?</title><link>https://www.infopathdev.com:443/forums/thread/29144.aspx</link><pubDate>Wed, 04 Jun 2008 02:45:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29144</guid><dc:creator>smaus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29144.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=29144</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m struggling with my template parts.&lt;/p&gt;
&lt;p&gt;It seems that every time I add my template part into a new form, it loses the schema context.&amp;nbsp; Let me explain.&lt;/p&gt;
&lt;p&gt;In my template part I have the following Schema:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;UserGroup (repeating group)&lt;/div&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;UG_ServerName&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;UG_ApplicationName&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;
&lt;p&gt;In the conditional&amp;nbsp;formatting of UG_Server, I have the following expression set to hide the text-box control:&lt;/p&gt;
&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;my:UG_ServerName = preceding-sibling::my:UserGroup/my:UG_ServerName&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This hides the text-box if the value is the same as the same text-box in the preceding record which results in a sort of outline-style table.&lt;/p&gt;
&lt;p&gt;This works great in the template part.&amp;nbsp; And it works great if I use the same expression in a form template.&amp;nbsp; The problem is when I try to insert the template part into a new form template, the expression changes to:&lt;/p&gt;
&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;my:UG_ServerName = my:UG_ServerName&lt;/em&gt;&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;
&lt;p&gt;This clearly, is always going to return as true.&amp;nbsp; I&amp;#39;ve tried putting it into its own group.&amp;nbsp; I&amp;#39;ve tried using sections.&amp;nbsp; I can&amp;#39;t figure for the life of me how to fix it.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>