| 
 
Subject: Re: [xsl] dynamic node access From: RQamar <qamar_rahil@xxxxxxxxxxx> Date: Mon, 21 Feb 2005 15:06:37 +0000  | 
------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<Top>
<PrimeConcept id="10180">
 <PrimeName>Car</PrimeName>
 <SubConcepts>
     <SubConcept id="10298" name="Toyota"/>
 </SubConcepts>
</PrimeConcept>
</Top>
------------------------------
However I want the output in the form<PrimeConcept id='10180'>Car</PrimeConcept> <SubConcepts> <SubConcept id='10298'>Toyota</SubConcept> </SubConcepts>
Thanks Rahil
You hardly posted enough information to guess an answer, but
<xsl:if test="following-sibling::TopNode[@name = $constraint]">
xsl:if is just a boolean test it doesn't change the current node. If you want to change the current node to that node (if it is there) change that to
<xsl:for-each test="following-sibling::TopNode[@name = $constraint]">
David
________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________
| Current Thread | 
|---|
  | 
| <- Previous | Index | Next -> | 
|---|---|---|
| Re: [xsl] dynamic node access, David Carlisle | Thread | Re: [xsl] dynamic node access, David Carlisle | 
| RE: [xsl] Result still indented des, Mukul Gandhi | Date | Re: [xsl] Result still indented des, David Carlisle | 
| Month |