TeaAddictedGeek
Programmer
I have two places where the same data is displayed but there are different rules for each place as to how they are displayed.
Place #1 has a template, matching on the node name, and is the main display for the data on the page.
Place #2 takes the same data, but only *part* of it and its child nodes, and leaves out the rest of the child nodes.
Let me try to illustrate this as an example.
<mainnode>
<parentnode1>
Lots of text <child_node1>with flashing colors</child_node1>!
<child_node2>really really long paragraph that goes on forever and a day</child_node2>
</parentnode1>
<parentnode2>
etc...
</parentnode2>
</mainnode>
One section will display everything in parentnode1, and another section will only display the text plus child_node1, but not child_node2. I have a template match to do the entire display (it's recursive and multiple nodes of the same name can be under child nodes) and am trying to figure out how to do the section that only displays the text plus child_node1. Is this possible?
Yes, I am doing lots of crazy things with XML and XSL. Maybe when I'm done, I should write my own XML help site.
"The computer programmer is a creator of universes for which he alone is responsible. Universes of virtually unlimited complexity can be created in the form of computer programs."
-Joseph Weizenbaum
Place #1 has a template, matching on the node name, and is the main display for the data on the page.
Place #2 takes the same data, but only *part* of it and its child nodes, and leaves out the rest of the child nodes.
Let me try to illustrate this as an example.
<mainnode>
<parentnode1>
Lots of text <child_node1>with flashing colors</child_node1>!
<child_node2>really really long paragraph that goes on forever and a day</child_node2>
</parentnode1>
<parentnode2>
etc...
</parentnode2>
</mainnode>
One section will display everything in parentnode1, and another section will only display the text plus child_node1, but not child_node2. I have a template match to do the entire display (it's recursive and multiple nodes of the same name can be under child nodes) and am trying to figure out how to do the section that only displays the text plus child_node1. Is this possible?
Yes, I am doing lots of crazy things with XML and XSL. Maybe when I'm done, I should write my own XML help site.
"The computer programmer is a creator of universes for which he alone is responsible. Universes of virtually unlimited complexity can be created in the form of computer programs."
-Joseph Weizenbaum