Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Creating a node outside context node

From: Martin Honnen <mahotrash@-----.-->
To: 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/


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent