Skip to main content
Published: October 06 2004, 11:56:00 AMUpdated: July 19 2022, 12:16:54 PM

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 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..)

 

Attachments
How well did this answer your question?
Answers others found helpful