xsl-list
[Top] [All Lists]

[xsl] writing out of the current boundary of an element

2006-11-19 02:15:30
Hi,

I need to write an element outside the boundary of the "current()"
element which is being written to the output file.

for example having the output below written by my XSLT and considering
that I am filling the values inside the inner, I need to write another
element, as a child of <test:Base>, but based on the values I obtain
while I am writing the inner element:

<test:Base>
<test:Rule>
<test:Inner>
 ####
</test:Inner>
</test:Rule>
</test:Base>

so I need the output to be like this:

<test:Base>
<!--------------The new part-------------------->
<test:newlyAdded>
    *********
</test:newlyAdded>

<test:Rule>
<test:Inner>
 ####
</test:Inner>
</test:Rule>
</test:Base>

not to mention that the output is an XML file. any help with this
regard is highly appreciated.

sorry if this is a redundant question, but I couldn't search the list
as I didn't exactly know what to search for.

thanks,
-Nima

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--