473,804 Members | 2,257 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Where is the root node of my browser?

I want to open an XML file with my browser. The file contains the
following line:

<?xml-stylesheet type="text/xsl" href="/new.xsl"?>

which points to the root node to look for the stylesheet.
Since the XML file is in only-readable media, I cannot modify it, so
the solution is to copy the stylesheet to the correct directory. The
problem is that I can't find where this should be. I have tried all
over the place: in the desktop, in the root C: drive, in the same
directory as the XML file, in the directory where the browser file is
located, ... but it doesn't find the stylesheet.
Can anyone tell me where is the right place?
Many thanks for your help.

Maybe you need to know this: I am using WIN2K, Firefox and IE6.
Jun 27 '08 #1
6 2063
li**********@ho tmail.com wrote:
I want to open an XML file with my browser. The file contains the
following line:

<?xml-stylesheet type="text/xsl" href="/new.xsl"?>

which points to the root node to look for the stylesheet.
Since the XML file is in only-readable media, I cannot modify it, so
the solution is to copy the stylesheet to the correct directory.
Huh? Surely the answer is to copy the XML file from its read-only
location to some other directory where you also place the XSL file (with
any other necessary files). Yes?
--
John
Read about the UIP: http://improve-usenet.org/
Jun 27 '08 #2
On Apr 21, 7:24 am, John Hosking <J...@DELETE.Ho sking.name.INVA LID>
wrote:
littlelis...@ho tmail.com wrote:
I want to open an XML file with my browser. The file contains the
following line:
<?xml-stylesheet type="text/xsl" href="/new.xsl"?>
which points to the root node to look for the stylesheet.
Since the XML file is in only-readable media, I cannot modify it, so
the solution is to copy the stylesheet to the correct directory.

Huh? Surely the answer is to copy the XML file from its read-only
location to some other directory where you also place the XSL file (with
any other necessary files). Yes?

--
John
Read about the UIP:http://improve-usenet.org/
Well, no. I was just trying to make the story shorter, but the fact is
that I have thousands of XML files and I can't use your solution,
moving thousands of files. In fact, that is what I did to test the
stylesheet in the same directory as the XML file: I copied one single
file to the writable media and put the stylesheet there as well.
So, in short, I am not looking for this solution, but rather to have
the stylesheet in the right place.
Jun 27 '08 #3
On Mon, 21 Apr 2008 06:57:06 +0200, <li**********@h otmail.comwrote :
I want to open an XML file with my browser. The file contains the
following line:

<?xml-stylesheet type="text/xsl" href="/new.xsl"?>

which points to the root node to look for the stylesheet.
Since the XML file is in only-readable media, I cannot modify it, so
the solution is to copy the stylesheet to the correct directory. The
problem is that I can't find where this should be. I have tried all
over the place: in the desktop, in the root C: drive, in the same
directory as the XML file, in the directory where the browser file is
located, ... but it doesn't find the stylesheet.
Can anyone tell me where is the right place?
Many thanks for your help.

Maybe you need to know this: I am using WIN2K, Firefox and IE6.

If you open it from the filesystem itself, it cannot exist at all AFAIK.
If you open it using a webserver, simple putting it in the configured
document root will do.
--
Rik Wasmus
Jun 27 '08 #4
li**********@ho tmail.com wrote:
On Apr 21, 7:24 am, John Hosking <J...@DELETE.Ho sking.name.INVA LID>
wrote:
>littlelis...@h otmail.com wrote:
>>I want to open an XML file with my browser. The file contains the
following line:
<?xml-stylesheet type="text/xsl" href="/new.xsl"?>
which points to the root node to look for the stylesheet.
Since the XML file is in only-readable media, I cannot modify it, so
the solution is to copy the stylesheet to the correct directory.
Huh? Surely the answer is to copy the XML file from its read-only
location to some other directory where you also place the XSL file (with
any other necessary files). Yes?

--
John
Read about the UIP:http://improve-usenet.org/

Well, no. I was just trying to make the story shorter, but the fact is
that I have thousands of XML files and I can't use your solution,
moving thousands of files. In fact, that is what I did to test the
stylesheet in the same directory as the XML file: I copied one single
file to the writable media and put the stylesheet there as well.
So, in short, I am not looking for this solution, but rather to have
the stylesheet in the right place.
Sounds to me like you need a web server. The slash refers to the
webroot, not the file system root and as you've noticed, there is no web
root. You can run either IIS or Apache, or even something else. You can
set up the server to point any directory as the web root.

Jeff
Jun 27 '08 #5
li**********@ho tmail.com wrote:
I want to open an XML file with my browser. The file contains the
following line:

<?xml-stylesheet type="text/xsl" href="/new.xsl"?>

which points to the root node to look for the stylesheet.
Since the XML file is in only-readable media, I cannot modify it, so
the solution is to copy the stylesheet to the correct directory. The
problem is that I can't find where this should be. I have tried all
over the place: in the desktop, in the root C: drive, in the same
directory as the XML file, in the directory where the browser file is
located, ... but it doesn't find the stylesheet.
If the XML file is on read-only media, how did you copy the XSL file to
the same directory?
Can anyone tell me where is the right place?
The href "/new.xsl" refers to the root directory of the same drive that
the XML file is on. Not the root directory of the C: drive (since the
XML file, on read-only media, is obviously not on the C: drive). Not the
same directory as the XML file, if the XML file isn't in the root directory.
Jun 27 '08 #6
On Apr 21, 1:29 pm, Harlan Messinger
<hmessinger.rem ovet...@comcast .netwrote:
If the XML file is on read-only media, how did you copy the XSL file to
the same directory?
See my second post, where I say:
"In fact, that is what I did to test the
stylesheet in the same directory as the XML file: I copied one single
file to the writable media and put the stylesheet there as well. "
>
Can anyone tell me where is the right place?

The href "/new.xsl" refers to the root directory of the same drive that
the XML file is on. Not the root directory of the C: drive (since the
XML file, on read-only media, is obviously not on the C: drive). Not the
same directory as the XML file, if the XML file isn't in the root directory.
No, I tried this and it doesn't work. To make sure that no clever
cookie comes back asking "How could you put the stylesheet in the root
of the non-writable media?", this is what I did: I copied one of the
XML files in C: together with the stylesheet and tried to open the
XML. It did not work.
Jun 27 '08 #7

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

Similar topics

1
2446
by: Jay Sartoris | last post by:
Hi, I'm adding a node to my XML document using DOM. When I serialize it, I lose my comments that are above my root node. I've created an OutputFormat obect and set the setOmitComments(false) but it still removes the comments between my DOCTYPE tag and my root tag. I'm pretty sure that the reason is that only the text within the root tags are serialized. My comments within the root tags are still there after serialization, just the...
2
1771
by: Scott Simpson | last post by:
Can you query from a non-root node using XPathAPI's function selectNodeList(Node contextNode, java.lang.String str)? I'm trying this using the XPath expression "//*" and I'm getting nothing back. I know the node I pass to this function has data in it because I'm inspecting it in the debugger using Eclipse. The Javadoc doesn't say you can't query from a non-root node. Thanks.
16
9554
by: Bob Rock | last post by:
Hello, when serializing an array of elements of a class Classname using XmlSerializer.Serialize() I get an XML like the following: <?xml version="1.0"> <ArrayOfClassname> ....... ....... </ArrayOfClassname>
15
4171
by: Stig Brautaset | last post by:
Hi group, I'm playing with a little generic linked list/stack library, and have a little problem with the interface of the pop() function. If I used a struct like this it would be simple: struct node { struct node *next; void *data; };
0
1104
by: Martin | last post by:
Hi, I am retriving data from sql server using the xml raw clause and an xmltextwriter. this is working out fine except the xml raw clause does not put a root node on the xml that is returned from sql server and subsequently an xmldocument can't be created from the xmltextwriter as there is no root element. however if the xml raw query returns only a single row then there is a root
0
1293
by: Martin | last post by:
Hi, I am retriving data from sql server using the xml raw clause and an xmltextwriter. this is working out fine except the xml raw clause does not put a root node on the xml that is returned from sql server and subsequently an xmldocument can't be created from the xmltextwriter as there is no root element. however if the xml raw query returns only a single row then there is a root
10
2371
by: p3t3r | last post by:
I have a treeview sourced from a SiteMap. I want to use 2 different CSS styles for the root level nodes. The topmost root node should not have a top border, all the other root nodes should have a top border. Is it possible to have more than 1 style at the same level (parent node) when using a SiteMap? I want it to appear something like this and I can only find a way to either have the border on all root nodes or none at all. In...
0
1430
by: sloan | last post by:
http://weblogs.asp.net/scottgu/archive/2006/01/17/435765.aspx http://aspnet.4guysfromrolla.com/articles/030806-1.aspx I've been looking for an implementation of a Menu Control that controls "drill down" on the non selected item. For Example, if my menu system looked like this -Home
11
2575
by: =?ISO-8859-1?Q?Une_B=E9v?==?ISO-8859-1?Q?ue?= | last post by:
at the page : <http://thoraval.yvon.free.fr/Fixed_layout/import_nodes.xhtml> when importing an svg document i have to do : document.importNode( req.responseXML.getElementsByTagName(req.parameters.root),true)) (lines 46/47) in case of SVG : req.parameters.root = 'svg' and 'math' in case of MathML
0
9714
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9594
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10346
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10347
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10090
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9173
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6863
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5531
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4308
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 we have to send another system

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.