[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Querying the Result Document

Subject: RE: Querying the Result Document
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 22 Dec 2005 00:27:08 -0000
RE:  Querying the Result Document
> 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/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.