For full functionality of this site it is necessary to enable JavaScript.
Here are the instructions how to enable JavaScript in your web browser.

Knowledge base

Find the answer to your question

Advanced Search PView

Search terms
Search Type
Product
Category
Language
Format
SDK
Sort by
Direction

Sample XSL Transformation to convert GetSellerList output to 'Gallery' HTML

  • Answer ID 186
  • Published 10/06/2004 11:56 AM
  • Updated 10/20/2013 06:41 AM
  • Permalink https://ebaydts.com/eBayKBDetails?KBid=186
Product
Sample XSL Transformation to convert GetSellerList output to 'Gallery' HTML

GSLtoHTML.xsl

*** Project ***

Sample XSL Transformation to convert GetSellerList output to 'Gallery' HTML

- Link to ViewItem page is generated in HTML output
- Time remaining in auction is generated in HTML output
- Picture URL or place holder image is generated in HTML output
- Currency Icon is parsed and generated in HTML output

*** Environment ***

XSLT Stylesheet to be applied to XML results of a GetSellerList request

*** Executing the Sample ***

1. Execute GetSellerList New schema XML query with the following criteria: 

  • Detail Level must be equal to ReturnAll for the XSL transformation to function appropriately
  • UserId is a valid eBay Seller account
  • EntriesPerPage should be set to 10 or lower, the XSL transformation will output (ItemsPerPage) items in a horizontal 'Gallery' 
  • <?xml version="1.0"encoding="utf-8"?>
    <
    GetSellerListRequest xmlns="urn:ebay:apis:eBLBaseComponents">
      <
    GranularityLevel>Coarse</GranularityLevel>
      <
    Version>551</Version>
      <
    StartTimeFrom>2008-01-16T23:13:56.000Z</StartTimeFrom>
      <
    StartTimeTo>2008-02-16T23:13:56.000Z</StartTimeTo>
      <
    Pagination>
        <
    EntriesPerPage>10</EntriesPerPage>
        <
    PageNumber>1</PageNumber>
      </
    Pagination>
      <
    RequesterCredentials>
        <
    eBayAuthToken>******</eBayAuthToken>
      </
    RequesterCredentials>
    </
    GetSellerListRequest>

    2. Apply the XSL transformation to the resulting XML programmatically or in an IDE or XML editor of your chosing.

    *** Next Steps for the developer ***

    1. Developer code in environment of choice to programmatically apply the XSL transformation to GSL output XML
    2. Modify XSL to output HTML in a custom format (rows/columns, etc..)

File Attachments

How well did this answer your question?

Answers others found helpful

Print Email This Page Delicious Digg Facebook Reddit StumbleUpon Twitter