[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Using Saxon-CE to implement AJAX autocomplete?

Subject: Using Saxon-CE to implement AJAX autocomplete?
From: Martynas Jusevičius <martynas@xxxxxxxxxxxx>
Date: Wed, 10 Jul 2013 02:03:34 +0300
 Using Saxon-CE to implement AJAX autocomplete?
Hey,

I have a system producing XHTML using XSLT 2 on the server side. It
can also produce both XML (RDF/XML) and JSON (JSON-LD) for Linked Data
access.

On the client side however, I'm strugling to integrate such a simple
feature as a JS autocomplete plugin. The new Twitter Typeahead would
be great http://twitter.github.io/typeahead.js/, but even the default
Bootstrap Typeahead would be sufficient.

The problem is that those plugins use innerHTML to modify the HTML,
and this does not work well in XHTML mode, like here:
http://stackoverflow.com/questions/4162270/dom-exception-when-assigning-html-entities-to-innerhtml

I checked that Firefox uses strict mode:
Type: application/xhtml+xml
Render Mode: Standards compliance mode

Then I decided to check Saxon-CE demos, and they look pretty interactive:
http://www.saxonica.com/ce/demos/books/books.html

I'm wondering if Saxon-CE could be a solution here. Do you think
Typeahead-like AJAX functionality can be implemented with XSLT in the
browser? I already have stylesheets for RDF/XML, that shouldn't be a
problem.

The HTTP call is doable I guess, but what about interactivity and
stuff like authentication headers? Maybe some additional JavaScript
would solve that?

Suggestions appreciated.

Martynas
graphityhq.com

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.