Hi All,
I am conditionally copying sections of an xml document, as is, to another xml document, depending on a parameter passed into the XSLT. Specifically, my source document looks like this:
<SCREEN>
<PANEL NAME="mainPanel">
<TABBEDPANE NAME="tabbedPane">
<PANEL NAME="generalPanel">
.......
</PANEL>
<PANEL NAME="userPanel">
.......
</PANEL>
<PANEL NAME="rightsPanel">
.......
</PANEL>
</TABBEDPANE>
</PANEL>
</SCREEN>
I have been able to get my conditions to work, which will copy the respective child (PANEL) elements depending on my parameter. What I haven't been able to get to work is the XSL that would ONLY copy the <PANEL NAME="mainPanel"> and the <TABBEDPANE NAME="tabbedPane"> tags. I was able to find some code which at least outputs the 2 tags, however it treats them as empty tags and places the "/>" at the end of each. So I end up with code like the following:
<PANEL NAME="mainPanel"/>
<TABBEDPANE NAME="tabbedPane"/>
<PANEL NAME="generalPanel">
......
</PANEL>
</TABBEDPANE>
</PANEL>
Instead of the desired:
<PANEL NAME="mainPanel">
<TABBEDPANE NAME="tabbedPane">
<PANEL NAME="generalPanel">
......
</PANEL>
</TABBEDPANE>
</PANEL>
Thanks for any help!
I am conditionally copying sections of an xml document, as is, to another xml document, depending on a parameter passed into the XSLT. Specifically, my source document looks like this:
<SCREEN>
<PANEL NAME="mainPanel">
<TABBEDPANE NAME="tabbedPane">
<PANEL NAME="generalPanel">
.......
</PANEL>
<PANEL NAME="userPanel">
.......
</PANEL>
<PANEL NAME="rightsPanel">
.......
</PANEL>
</TABBEDPANE>
</PANEL>
</SCREEN>
I have been able to get my conditions to work, which will copy the respective child (PANEL) elements depending on my parameter. What I haven't been able to get to work is the XSL that would ONLY copy the <PANEL NAME="mainPanel"> and the <TABBEDPANE NAME="tabbedPane"> tags. I was able to find some code which at least outputs the 2 tags, however it treats them as empty tags and places the "/>" at the end of each. So I end up with code like the following:
<PANEL NAME="mainPanel"/>
<TABBEDPANE NAME="tabbedPane"/>
<PANEL NAME="generalPanel">
......
</PANEL>
</TABBEDPANE>
</PANEL>
Instead of the desired:
<PANEL NAME="mainPanel">
<TABBEDPANE NAME="tabbedPane">
<PANEL NAME="generalPanel">
......
</PANEL>
</TABBEDPANE>
</PANEL>
Thanks for any help!