Subject: Re: [xsl] problem with handling conditional for loops From: Rahil <qamar_rahil@xxxxxxxxxxx> Date: Wed, 27 Apr 2005 16:15:22 +0100 |
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.
I have a feeling a refinement of your xpath is all that is needed but for some reason it's not coming today. I'm sure the others on the list can come up with one though if it exists.
If what you're really looking for is the first Value element that has a valid $clsName (not sure what meets this criteria) you can get the group of all that meet the criteria and return the first of that set.
<xsl:variable name="Values"
select="document(Second.xml)/SubConcepts/SubConcept/Value/@name[some
test to determine if clsName]"/>
<xsl:variable name="clsName" select="$Values[1]">
This of course hasn't been tested, but might be what you are looking
for. It really has little to do with the parent loop.
Comments Jon or anybody else? Rahil
Jon Gorman
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] problem with handling con, Jon Gorman | Thread | Re: [xsl] problem with handling con, Jon Gorman |
Re: [xsl] problem with handling con, Jon Gorman | Date | Re: [xsl] problem with handling con, Aron Bock |
Month |