Jump to content

swati

Members
  • Posts

    6
  • Joined

  • Last visited

swati's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. <homepage> <QuickSearch> <category> <name>Accounting/Finance</name> </category> <category> <name>Advertising/Public Relations</name> </category> <category> <name>Arts/Entertainment/Publishing</name> </category> </QuickSearch></homepage>
  2. well i tried this<tr><xsl:for-each select="homepage/QuickSearch/category"> <xsl:choose><xsl:when test="position() < 5"><td class='normal'><li/><u><xsl:value-of select="name"/></u></td></xsl:when></xsl:choose></xsl:for-each></tr>it is showing first five 5 records,now i want that in<otherwise></otherwise>, i want to again change the value of position() to 1 and close </tr> and open a new <tr>, i tried many times but its not workingDo u have any idea how it will work
  3. well i just want to say tat i want data to look like this n1 n2 n3 n4 n5 n6 n7 n8 n9 n10 n11 n12where i dont knw how many elements there will be
  4. Hi..can any one tell me how to format records from for-each select in table of 4Xn D....it wud be a great help if anyone can tell me abt it
  5. Thanks a lot...it working now...tat was a great help...again thanks a lotactually i m new in XMLCan u do one more help...i want to do this in xml & xslwhile($r1=mysql_fetch_array($r)){ if($i==5){ $i=1; ?></tr> <tr><td ></td></tr> <tr><td></td></tr> <tr> <?php} ?><td class='normal'> <LI><U><?=$r1['fldCategoryName']?></U> </td><?php $i=$i+1;}
  6. Hi...can u help me...pls see the following code<select name='category' class='text2'><xsl:for-each select="homepage/QuickSearch/salary"><option><xsl:value-of select="name"/></option></xsl:for-each></select>i want to add <xsl:value-of select="name"/> in <option value="">i tried <option value='<xsl:value-of select="name"/>'><xsl:value-of select="name"/></option>but its not working
×
×
  • Create New...