user1938007
user1938007

Reputation: 459

How to implement an XSLT file within HTML

I'm trying to display a whole XML database through an HTML file, but in order to display all the elements, I need XSLT. Since I used Javascript for manipulation with the way the database is displayed, I assume I'll have to implement XSLT file within the HTML code, but I can't find a solution on how I'd go about doing so.

Upvotes: 1

Views: 41

Answers (1)

Michael Kay
Michael Kay

Reputation: 163262

It's quite possible to invoke an XSLT transformation from within Javascript. You can even use an XSLT 2.0 transformation with the help of Saxon-CE, which probably offers better cross-browser compatibility than the XSLT 1.0 processors shipped by the browser vendors.

Upvotes: 1

Related Questions