troubleshooting Question

Pagination in xslt

Avatar of tia_kamakshi
tia_kamakshiFlag for United Arab Emirates asked on
Web Languages and StandardsXML
12 Comments1 Solution624 ViewsLast Modified:
Hi,

I have below xml and xslt working good. I need to add pagination in the result of my xslt transformation.

Can you please help me with pagination logic in my below xslt?

Thanks & Regards

<xsl:choose>
	<xsl:when test="$type = 'open' ">

		<xsl:for-each select="//SUMMARY[CATEGORY/@CATEGORYID = $categoryID or $categoryID = 0][SUBCATEGORYID = $subCategoryID or $subCategoryID = 0][//SUMMARY/FORMATTEDDATE >= $today]">
			<xsl:sort select="//SUMMARY/FORMATTEDDATE " />
			SOME STUFF
		</xsl:for-each>		

	</xsl:when>

</xsl:choose>

<root>

	<SUMMARYNODE>
		<SUMMARY>			
			<CATEGORY CATEGORYID="2">OPERATIONS PROCUREMENT</CATEGORY>
			<SUBCATEGORYID>4</SUBCATEGORYID>			
		</SUMMARY>
		
	</SUMMARYNODE>
	
	
	<SUMMARYNODE>
		<SUMMARY>			
			<CATEGORY CATEGORYID="2">XYZ</CATEGORY>
			<SUBCATEGORYID>6</SUBCATEGORYID>			
		</SUMMARY>
				
	</SUMMARYNODE>
	
	<SUMMARYNODE>
		<SUMMARY>			
			<CATEGORY CATEGORYID="5">ABC</CATEGORY>
			<SUBCATEGORYID>8</SUBCATEGORYID>			
		</SUMMARY>
			
	</SUMMARYNODE>

</root>
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 12 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 12 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros