Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3600356
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:29:05+00:00 2026-05-18T20:29:05+00:00

I am new to web development, and have found myself stuck on how to

  • 0

I am new to web development, and have found myself stuck on how to approach allowing website visitors to filter and sort an HTML table of publications that has been generated by XML/XSL. Due to server constraints, I cannot use .php or ASP.NET – the data must remain a flat-file.

Here is the basic structure of the XML file:

<xml>
  <records>
    <record>
       <contributors>
          <author>Author 1</author>
          <author>Author 2</author>
          <author>Author 3</author>
       </contributors>
       <title>Publication Title</title>
       <type>Publication Type</type>
       <keywords>Multiple Keywords</keywords>
       <year>1995</year>
       <abstract>Abstract Text Here</abstract>
   </record>
  </records>
</xml>

And, my XSL:

<table id="cvPubs">
  <thead>
      <tr>
        <th>Authors</th>
        <th>Title</th>
        <th>Type of Publication</th>
        <th>keywords</th>
        <th>Year</th>
        <th>Abstract</th>
      </tr>
  </thead> 
  <tbody>
    <xsl:for-each select="descendant::record">
      <tr>
        <td><xsl:value-of select="keywords" /></td> 
        <td><xsl:value-of select="contributors/*[position()]"  /></td>
        <td><xsl:value-of select="titles/title" /></td>
        <td><xsl:value-of select="abstract" /></td> 
        <td><xsl:value-of select="titles/tertiary-title" /></td>
        <td><xsl:value-of select="year" /></td>
      </tr>
    </xsl:for-each>
  </tbody> 
</table>

I would like to add dropdown lists to the keyword field, and a user-defined text field to the contributors and abstract fields.

The XSL file outputs the table perfectly, I just don’t know what the best approach is to building the filter and sort functionalities. I’ve tried a few JavaScript and jQuery scripts for table sorting/filtering , but I can’t get them to work properly. I don’t get any errors, but I don’t get the added functionality.

Any guidance would be greatly appreciated. Thanks for reading!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T20:29:06+00:00Added an answer on May 18, 2026 at 8:29 pm

    I think you are going to get into a bit of a pickle if you keep going down the road of XSLT.

    Yep, its been working fine as a transformation with a single table output that is relatively static, however now you want to add all the bells and whistles your XSLT is going to get increasingly complex and less useful than an all-purpose language since it is only meant for transformations.

    I would recommend that, since you are stuck without server side code, you use the full capabilities of a native javascript library to handle the sorting on the client as well as the other functionality you are going to need on this page.

    Ext JS comes to mind, but there are other examples such as Dojo or YUI that would serve you well too.

    The component you are looking for is generally called a “Grid”.

    In Ext JS you can implement a GridPanel. Or if your data has more than 500 records in it use a Buffered GridPanel which is a similar implementation that only renders DOM for the rows that are being displayed.

    Hope this is useful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to web development, and have found myself stuck on how to
I am new to the web development.I have built my website in visual studio
I'm new to web development.I have a php file such as addcourse.php.In this file
I am new to web development, I have to create a web application in
I am new to web development. I have 2 .aspx files and in default
I'm new to Python and web development (although I have development experience with Client/Server
I am new to the web development. I have a code that's supposed to
I am new to EC2 and web development. Currently I have a Linux EC2
I am new to iPhone application development, i have used the web services and
I am quite new to web development and have a task to develop a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.