xsl-list
[Top] [All Lists]

[xsl] XSLT Streaming: What is the rationale for the rule that a child can be processed only once?

2013-10-27 04:31:06
Hi Folks,

XSLT streaming has this rule:

        XSLT code cannot process a child 
        element more than once.

I seek to understand the rationale for this rule.

I think the rationale is this:

Imagine a child element that contains a lot of stuff and has a very deep 
subtree. The first time the child is referenced, the XSLT processor moves 
forward in the XML, through the deep subtree. If the child is allowed to be 
referenced again, the XSLT processor would need to "back up" in the XML, 
potentially a long ways. In streaming we want to keep moving forward, without 
any backing up.

Is that correct? Is that the rationale for not allowing a child to be processed 
more than once?

/Roger

--~------------------------------------------------------------------
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>
--~--


<Prev in Thread] Current Thread [Next in Thread>