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

Re: problem with handling conditional for loops

Subject: Re: problem with handling conditional for loops
From: Rahil <qamar_rahil@xxxxxxxxxxx>
Date: Wed, 27 Apr 2005 17:34:39 +0100
Re:  problem with handling conditional for loops
Jon Gorman wrote:

Ah, typing too quickly and I missed that we were using clsName for
comparison, not as a target variable to fill.  I don't have much time,
so I"ll only give it one more shot before concluding that I'll have to
wait till I have time to look at it closer.

<xsl:choose>
<xsl:when test="document(Second.xml)/SubConcepts/SubConcept[1]/Value[$clsName=text()]">
<xsl:variable name="nodeToProcess"
select="document(Second.xml)/SubConcepts/SubConcept[1]/Value[$clsName=text()]"/>
</xsl:when>

<xsl:otherwise>
<xsl:variable name="Values"
select="document(Second.xml)/SubConcepts/SubConcept/Value/@name[.=$clsName]"/>
<xsl:variable name="nodeToProcess" select="$Values[1]">
</xsl:otherwise>
</xsl:when>





Thanks Jon and Aron. Using your approach I seem to atleast be progressing. My problem might eventually be resolved !

Cheers
Rahil

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.