![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Creating a node outside context node >Thread Next - Re: Creating a node outside context node Re: Creating a node outside context nodeTo: NULL Date: 11/4/2006 2:16:00 PM Arnost Sobota wrote: > I'm currently developing and XSLT and I'm now facing a problem that > would easily be solved *if* I could find a way to create a node) some > place else than the XML context node. The context node is in the input tree where you can't create any nodes at all as the XSLT stylesheet creates all new nodes in the result tree. > I'm inside a xsl:template, so the scope of any XSL action performed here > is the matching XML node. What I'd like is to overcome this limitation > by being able to perform an action outside this context node (in a node > that I would explicitly indicate, of course). It is not clear what the problem is, provide a minimal XML input, show us the relevant part of the stylesheet and we might be able to tell you more. As already said, the input tree with context nodes is completely different from the result tree the XSLT stylesheet creates. Then in the XSLT stylesheet you can of course call other templates with xsl:call-template, you can access any node with absolute XPath if needed, you can access any node relative to the content node. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
