How to delete 10 records out of 20 records and display the remaining 10 records in an xslt? -


i'm fresher in xslt coding..i'm able delete particular record using remove() operation i'm unable delete 10 records out of 20 records @ time , display remaining 10 records...can please give me example of performing operation..thanks in advance.

actually i'm doing project in dataower, i'm giving soap request , want delete 10 records response using xslt code..

here input request...

<soapenv:envelope> <soapenv:body> <integrationeventws_getevents_input> <eventcount>10</eventcount> <queuename>opportunity partner</queuename></integrationeventws_getevents_input> </soapenv:body> </soapenv:envelope> 

here sample response...

<soap-env:envelope> <soap-env:body> <catalog>     <cd>         <title>empire burlesque</title>         <artist>bob dylan</artist>         <country>usa</country>         <company>columbia</company>         <price>10.90</price>         <year>1985</year>     </cd>     <cd>         <title>hide heart</title>         <artist>bonnie tyler</artist>         <country>uk</country>         <company>cbs records</company>         <price>9.90</price>         <year>1988</year>     </cd> </catalog> </soap-env:body> </soap-env:envelope> 

like in response have 20 records...and want delete 10 out of 20 records @ time..for have write xslt code..

here xslt code...i tried this..

<?xml version="1.0" encoding="iso-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/xsl/transform">  <xsl:template match="/">   <html>   <body>     <h2>my cd collection</h2>     <table border="1">       <tr bgcolor="#9acd32">         <th>title</th>         <th>artist</th>         <th>id</th>       </tr>       <xsl:for-each select="catalog/cd">       <xsl: remove select="artist"/>        <tr>         <td><xsl:value-of select="title"/></td>         <td><xsl:value-of select="artist"/></td>         <td><xsl:value-of select="id"/></td>          </tr>                 </xsl:for-each>     </table>   </body>   </html> </xsl:template> </xsl:stylesheet> 

and used remove() delete entire records..


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -