xsl-list
[Top] [All Lists]

RE: Querying the Result Document

2005-12-21 17:27:08
 

Is there a way to check the Result Document for a set of nodes.

Only by turning your transformation into a multi-phase one in which the
result document of the first phase becomes the input document to the second.

What I want to do is make sure that I don't add a duplicate 
node to the 
result document, when an earlier template may have already 
added the result.


The word "earlier" gives away that you're thinking procedurally. XSLT is a
functional language, the output has to be expressed as a function of the
input, not as a function of things that happened "earlier", because there is
no defined order of execution.

If you can't express the logic as a function of the original input, then use
a multi-phase transformation.

Michael Kay
http://www.saxonica.com/



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