Article View: pl.comp.xml
Article #9449[XSLT] jak zrobić LIMIT wyników ?
From: John Doe
Date: Mon, 06 Aug 2007 10:19
Date: Mon, 06 Aug 2007 10:19
23 lines
1423 bytes
1423 bytes
W jaki sposób zrobić limit wyników zwracanych z bazy XML ? Np 20 wyników na
stronę i linki do wyboru strony.
Mam taki kod:
<xsl:template match="/">
<xsl:apply-templates select="//x:oferta">
<xsl:sort order="descending" select="@id_oferty"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="x:oferta">
<xsl:if test="x:transakcja/x:sprzedaz=1">
:
:
:
</xsl:if>
</xsl:template>
--
Wysłano z serwisu OnetNiusy: http://niusy.onet.pl
Technical Details
Message-ID:
<3c23.00000089.46b6f5c2@newsgate.onet.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!newsfeed.silweb.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!newsgate.onet.pl!niusy.onet.plShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!newsfeed.silweb.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!newsgate.onet.pl!niusy.onet.pl From: "John Doe" <spamujWYTNIJTO@op.pl> Newsgroups: pl.comp.xml Subject: [XSLT] jak zrobić LIMIT wyników ? Date: 6 Aug 2007 12:19:47 +0200 Organization: Onet.pl SA Lines: 23 Message-ID: <3c23.00000089.46b6f5c2@newsgate.onet.pl> NNTP-Posting-Host: newsgate.onet.pl Mime-Version: 1.0 X-Trace: newsgate.test.onet.pl 1186395587 18000 213.180.130.18 (6 Aug 2007 10:19:47 GMT) X-Complaints-To: abuse@onet.pl NNTP-Posting-Date: 6 Aug 2007 10:19:47 GMT X-Mailer: http://niusy.onet.pl X-Forwarded-For: 89.79.28.188, 192.168.243.43 X-User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl-PL; rv:1.7.12) Gecko/20050919 Firefox/1.0.7 Mnenhy/0.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit