473,320 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Executing XML with XSL Processing Instructions

Hi,
Can anyone point me in the right direction here?

I'm loading an XML file which has a processing instruction
(<xsl-stylesheet href="..."/>). I need a cross-browser solution which
will load the XML file and have it's XSL PI run and translate the XML
to genereate the desired output.

Any suggestions?

Thanks,
Steve

Oct 20 '05 #1
3 2590
sn****@mxlogic.com wrote:
Hi,
Can anyone point me in the right direction here?

I'm loading an XML file which has a processing instruction
(<xsl-stylesheet href="..."/>). I need a cross-browser solution which
will load the XML file and have it's XSL PI run and translate the XML
to genereate the desired output.

Any suggestions?


Here is a useful link that includes demos for the two main models, IE
and Firefox:

<URL:http://www.ajaxpatterns.org/Browser-Side_XSLT>
It is part of an on-line wiki on 'Ajax'. Don't be put-off by the use of
the buzzword, it covers a great deal of stuff about web applications,
including DOM & DHTML as well as 'remoting' using both XMLHttpRequest
and iFrames. The wiki is not yet editable, but it should be in a few weeks:

<URL:http://www.ajaxpatterns.org/>

--
Rob
Oct 20 '05 #2


XSLT does all that, is a preprocessor, you give the <xsl> to the XML, when
the client calls the XML, it'll superimpose the XSL to process all nodes as
instructed in the XSL and will output as instructed in the XSL sheet file,
which will have all the CSS and HTML and JS if any needed, all the XSL part
does is processing of the XML nodes, when done, the client/user-agent will
display the XHTML output which the HTML parsing engine will process as its
STDIN. Just google for XSL Transforms, www.w3schools.com has a tutorial on
it or use RobG's.
Danny
Oct 21 '05 #3
Thanks for the replies. Unfortunately I'm still not sure how to have an
XML document with embedded XSL stylesheet reference (loaded using
XMLHTTP in Javascript) get automatically parsed and rendered. Loading
the document directly into the browser works as expected.

Steve

Oct 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Vincent Lefevre | last post by:
How can I get the list of the processing-instruction names in a file? I tried the Muenchian method; it works on the element names for instance, but if I replace * by processing-instruction() to...
9
by: Dominic Olivastro | last post by:
Hi all: I'm new to this newsgroup, and new to XML. We receive documents in XML, and I am trying to tear them apart to obtain information. I decided that, for my purposes, it would be fairly...
13
by: BK | last post by:
Can someone point me to a code sample that illustrates executing long running tasks (asynchronous) from a web application in ASP.NET? I assume that Web Services might come into play at some point,...
5
by: me | last post by:
I have a Class Library that contains a Form and several helper classes. A thread gets created that performs processing of data behind the scenes and the Form never gets displayed (it is for debug...
2
by: Poewood | last post by:
I put instructions within the Resize Event handler of a PocketPC program. The instructions basically reset the sizes and locations of the objects on the form. I base everything on the Form Height...
1
by: Mark | last post by:
I get the following error (see stacktrace) while loading an XMLDocument. The document is huge and it has PI's created from Arbortext's editor. Works fine when I use MSXML2 to load the Document....
1
by: puja | last post by:
hi all, I have this .aspx page for which the Page_load event occurs twice. I found out while debugging. After searching google, I tried checking with Page.Ispostback method and also had...
7
by: tshad | last post by:
I thought I understood how the SaveViewState is working and was trying to use this (as per some code I found) to detect refreshes. It seemed to be working but I found that the SaveViewState was...
0
by: tavares | last post by:
(Our apologies for cross-posting. We appreciate if you kindly distribute this information by your co- workers and colleagues.) ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.