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 6657535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:46:49+00:00 2026-05-26T01:46:49+00:00

I have a series of XML files which reference XSLT files to render as

  • 0

I have a series of XML files which reference XSLT files to render as HTML in the browser. Some of these have links which would, on a regular page, perform an AJAX call to request HTML and insert it into a DIV already on the page.

What I want to do is call a webservice from this page, upon a link click, and receive XML which then is processed into HTML in just the same way as the original page was, and then inserted via AJAX into a DIV on the current page.

My question is: How would I get the XML which is downloaded by Javascript to be parsed by it’s associated XSLT using Javascript?

  • 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-26T01:46:50+00:00Added an answer on May 26, 2026 at 1:46 am

    In MSIE you can call xmlDoc.transformNode(xslDoc). (Both xmlDoc and xslDoc are XML document objects, as may be loaded through e.g. XHR). In Opera, Firefox etc. you should construct an XSLTProcessor first (let’s call it proc), then call proc.importStylesheet(xslDoc), and finally you can use on of the transformToXXX methods of XSLTProcessor. (E.g.: proc.transformToFragment(xmlDoc, document) to create a DOMDocumentFragment which may be inserted in the document object using an appropriate appendChild() call.)

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

Sidebar

Related Questions

I have a series of XML files which can be retrieved, edited and saved
Let's say I have a series of xml files in this format: A.xml: <page>
I have a SurfaceView which is currently drawing a series of Bitmaps. These bitmaps
I have a series of complicated XML files from Amazon showing order reports. A
I've been given some XML files that don't quite have a proper schema (I
I have a series of xml files that looks something like this: <ROOT> <F
I have an XML file that lists a series of items, and the items
I have a series of controls on an ASP page. Some are inside an
I have an application which will store a series of (float) values in an
I have an XML file: <products> <foundation label=New Construction> <series label=Portrait Series startImg=img/blank.png> <item_container

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.