Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > XSL page output

Thread Tools

XSL page output

Posts: n/a
I was wandering if theres a way to make a .xsl page output 20 results per
page. My page transforms an .xml file but as its a large file, it outputs
hundreds of results on the same page.

heres my .xsl page

<?xml version="1.0"?>

<xslutput method="html"/>

<xslaram name="text1" />

<xsl:template match="/">


<link rel="stylesheet" type="text/css" href="mystyle.css" />


<table class="three" align="center">

<col width="35%"/>
<col width="35%"/>
<col width="15%"/>
<col width="15%"/>

<th class="head">Artist</th>
<th class="head">Song</th>
<th class="head">Chord</th>
<th class="head">Midi</th>

<xsl:for-each select="cat/links[contains(artist, $text1) or contains(song,
<xsl:sort select="artist"/>

<td><xsl:apply-templates select="./artist"/></td>
<td><xsl:apply-templates select="./song"/></td>
<xsl:variable name="link1"><xsl:apply-templates
<td><a href="media/{$link1}.txt" target="_blank">view</a></td>
<xsl:variable name="link2"><xsl:apply-templates
<td><a href="media/{$link2}.mid">play</a></td>



<div align="center">
<a href="javascript:history.go(-1)">Click here to return to search page</a>




Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Use output of XSL transformation as new XSL stylesheet XML 0 01-16-2006 02:29 PM
xsl - ignore XSL:FO tags, just output them XML 0 12-21-2005 03:49 PM
XSL Question tp xsl:for-each and xsl:variable XML 1 05-27-2005 09:25 PM
use xsl:element to output an "<xsl:template match=...> ? Ray Tayek XML 3 11-30-2003 10:14 AM
generating multi-page output using xsl Waqas Ashraf XML 2 10-05-2003 02:57 PM