Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

XML Atom, XSL, Pagination

XML Atom, XSL, Pagination

XML Atom, XSL, Pagination

hi guys,

can you please help me that should show the contents of this xml using xsl please? also there are the links (colored red). i want to use those also for pagination. i've been searching the net and been trying all sorts but not been successful. i 'd really appreciate your help.


<?xml version="1.0" encoding="utf-8" ?> 
 <feed xmlns:s="http://feed.example.com/services" xmlns="http://www.w3.org/2005/Atom">
  <title type="text">org select - with 'Bush' in name</title> 
  <rights type="text">Copyright 2015</rights> 
  <category term="Search" /> 
  <name>org select</name> 

  <link rel="self" type="application/atom+xml" title="org select - Practices with 'Bush' in name" href="http://feed.example.com/organisations/services/name/Bush?apikey=12345" /> 
  <link rel="first" type="application/atom+xml" title="first" length="1000" href="http://feed.example.com/organisations/services/name/Bush?apikey=12345&page=1" /> 
  <link rel="next" type="application/atom+xml" title="next" length="1000" href="http://feed.example.com/organisations/services/name/Bush?apikey=12345&page=2" /> 
  <link rel="last" type="application/atom+xml" title="last" length="1000" href="http://feed.example.com/organisations/services/name/Bush?apikey=12345&page=9" />
  <tracking xmlns="http://feed.example.com/services"><img style="border: 0; width: 1px; height: 1px;" alt="" src="http://webtrendsample.com/dfgfgh56dgd5/ddds.gif?fffuri=/organisations%2fservices%2fname%2fBush&wt.js=no&wt.cg_n=feed"/></tracking> 
  <title type="text">Bush Tree House</title> 
  <link rel="self" title="Bush Tree House Surgery" href="http://feed.example.com/organisations/services/24308?apikey=12345" /> 
  <link rel="alternate" title="Bush Tree House Surgery" href="http://www.org.uk/Srvcs/DR/Default.aspx?id=34343434" /> 
 <content type="application/xml">
  <s:name>Bush Tree House</s:name> 
  <s:addressLine>Bush Tree House</s:addressLine> 
  <s:addressLine>John Street</s:addressLine> 
  <s:postcode>DWQ4 22GW</s:postcode> 
 <s:contact type="General">
  <s:telephone>111 2223333444</s:telephone> 


RE: XML Atom, XSL, Pagination


hi k5tm, thanks for that. can you please show me how i can implement the pagination?


RE: XML Atom, XSL, Pagination

Pagination in what context? HTML? XSL-FO?

And what do the <link> elements delineate? I am not familiar with Atom, so I am not able to infer any particular 'natural' pagination...

RE: XML Atom, XSL, Pagination


i am now able to call that xml in asp page and managed to show some entries using xsl. i am stuck now as to how to have pagination on the asp page using those red "links" above.

if you can give me an idea how to do it in html and xsl context, i'd really appreciate it. my apologies. i dont really have much experience in xml. thanks.

RE: XML Atom, XSL, Pagination

Quote (damipera)

using those red "links" above

In order to use a link element (not that there is something special about the name 'link' in the world of XML), there has to be some relationship between the data contained in one or more of the attributes of the link element and something else in the XML document. I have absolutely no way to know what the relationship might be, and it does not seem obvious from looking at the XML document.

I am not looking for you to have experience in XML, but I do need a better problem statement.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close