[Home] [By Thread] [By Date] [Recent Entries]
Hi there, I'm having a problem with merging a couple of XML files. I've found a few examples of merging on-line but none that really help. Basically I have an XML file which is written out by my Java program that looks something like this: <alldata>
<data val="xx">
<data val="yy">
<data val="ss"></data>
</data>
<data val="gg"></data>
</alldata>The number of children and siblings can change by the way. Therefore in the XSLT document I'm displaying the data recursively, i.e. <tr><td><xsl:value-of select="@val"/></td></tr> <xsl:for-each select="*"> <xsl:call-template name="itself"></xsl:call-template> </xsl:for-each>
<tr><td><xsl:value-of select="@val"/></td>
<td><xsl:value-of select="<2nd documents @val>"/></td>
</tr>
<xsl:for-each select="*">
<xsl:call-template name="itself"></xsl:call-template>
</xsl:for-each>Output: xx xy yy yy ss ss gg hh Does anybody have any suggestions or help on how to achieve this? Cheers Dan
|

Cart



