[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: writing out of the current boundary of an element
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...
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|