[Home] [By Thread] [By Date] [Recent Entries]
On 11/19/06, Nima Kaviani <nkaviani@xxxxxx> wrote:
Hi, Add this template to a basic identity transform: <xsl:template match="test:Base">
<test:newlyAdded>
*********
</test:newlyAdded>
<xsl:apply-templates/>
</xsl:template>This will produce exactly what your example result file shows. If you need the <test:newlyAdded> element to be different depending on the contents of <test:base>, then you can use predicates, eg: <xsl:template match="test:Base[test:Rule/test:Inner = 'xyz']"> <test:newlyAdded>xyz</test:newlyAdded> <xsl:apply-templates/> </xsl:template> ...then add templates for each "rule". The problem here is your question and examples are pretty underspecified, eg you say "based on the values I obtain" but don't show the values or what output should correspond to what value...
|

Cart



