|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: problem with handling conditional for loops
Jon Gorman wrote:
Yes, it seems much clearer to me. I'll try to give you a quick response, but I don't have time at the moment to actually verify it. Theres only one problem though in this solution. For instance the $clsName returns values 'Hello', 'How', 'Are', 'You' each time the for-loop executes, extracting a node value from First.xml one at a time. My XPaths differ in how I look for the existence of 'Hello' etc. in SubConcept[1] and the rest of the SubConcept's. (1) First I use the XPath - document(Second.xml)/SubConcepts/SubConcept[1]/Value and match if text() = $clsName (2) If 'Hello' etc. isnt available in (1) then I look for it using the XPath - document(Second.xml)/SubConcepts/SubConcept/@name and match if @name=$clsName Since the XPaths are different I cant really get all the matches together in one shot such as in your reply. Moreover Second.xml is a very large file and I would prefer to save execution time by avoiding duplicate match finds. However if there aint any other way out I will use it ! Comments Jon or anybody else? Rahil Jon Gorman
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








