473,511 Members | 15,503 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

xml element reference

I have a file xml(p.xml) whit XSLT stylesheet import (for xhtml
trasformation).
I want have a reference to the xml elements of p.xml from another
javascript file.If I use win.open(p.xml....) method I have a reference
to XHTML elements.
How can I do?
thanks

Dec 5 '05 #1
3 1686


stefano wrote:
I have a file xml(p.xml) whit XSLT stylesheet import (for xhtml
trasformation).
Import? Do you have a pseudo processing instruction
<?xml-stylesheet type="text/xsl" href="stylesheet.xml"?>
to for instance have the browser do a client-side XSLT transformation
automatically when the XML document is loaded?
Or what kind of import do you use?
I want have a reference to the xml elements of p.xml from another
javascript file.If I use win.open(p.xml....) method I have a reference
to XHTML elements.


IE/Win exposes the original XML document that has been transformed as
document.XMLDocument
Firefox/Mozilla so far don't do that so there you need to use script to
load the XML file only from a URL.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Dec 5 '05 #2
yes, I have a pseudo processing instruction <?xml-stylesheet
type="text/xsl" href="stylesheet.xml"?> and I use Firefox

Dec 5 '05 #3


stefano wrote:
I have a pseudo processing instruction <?xml-stylesheet
type="text/xsl" href="stylesheet.xml"?> and I use Firefox


Then don't load the XML into a browser window but load it with script,
that way you get access to the DOM of the XML document and not to the
DOM of the transformation result.
Here is how you can load an XML document with script from a URL:
<http://www.faqts.com/knowledge_base/view.phtml/aid/6826/fid/616>
Of course if you also want to render the transformation result then you
need to do both, load the XML in a window and load it with script.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Dec 5 '05 #4

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

Similar topics

1
20674
by: Covad | last post by:
Hi all, For some reason my change() function is only called when the page loads. I'd much rather it gets called when the select changes. Here's the code: window.onload = init; function...
4
12540
by: Eric | last post by:
How can I dynamically assign an event to an element? I have tried : (myelement is a text input) document.getElementById('myelement').onKeyUp = "myfnc(param1,param2,param3)"; ...
21
3931
by: Michael Bierman | last post by:
Please forgive the simplicy of this question. I have the following code which attempts to determine the color of some text and set other text to match that color. It works fine in Firefox, but does...
3
3426
by: michael | last post by:
let me keep it clean, quick and simple. I am passing a variable into another window and am reassigning the value on the new page - window.document...value = opener.document. ....value and...
3
7916
by: Siah | last post by:
Hi, I'd like to detach some of my dom elements and cache them in an object. My current options are to cache its innerHTML, or create an independent 'div' element and move the element as a child...
1
8686
by: Rob Griffiths | last post by:
Can anyone explain to me the difference between an element type and a component type? In the java literature, arrays are said to have component types, whereas collections from the Collections...
10
14676
by: garyusenet | last post by:
Hi I'm using the following to reference each 'element' (is this the correct term) in an arraylist: - foreach (InternetExplorer ie in ar) { ... } Q. How do I reference the nth element in an...
4
2103
by: sjkothenbeutel | last post by:
I've been reading through quite a bit regarding this topic but am finding myself confused. Here is the scenario: I have a javascript class defined with methods whereas each has references to...
3
4400
by: Lance Wynn | last post by:
Hello, I am receiving this error when trying to instantiate a webservice component. I have 2 development machines, both are XP sp2 with VS 2008 installed. On one machine, the code works fine. On...
0
1032
by: AK | last post by:
Hello, Is it possible to sign resources pointed to from an xml doc and the element that contains those urls at the same time? This is the xml: <osfm:assets name=""> <osfm:asset...
0
7242
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7353
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7418
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7075
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7508
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
3222
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3212
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1572
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
781
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.