473,385 Members | 1,844 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,385 software developers and data experts.

Why am I not getting a value?

Ian
(Please excuse the rookie question)

Why don't I get the value of "windows" in my file? My xml file is
located in http://www.otima.ca/XML/auto.xml and the xslt file is
http://www.otima.ca/XML/auto.xslt.

Much appreciate the assistance!

Ian
Jul 20 '05 #1
5 1540
On 31 Jan 2005 21:12:56 -0800, ia*********@gmail.com (Ian) wrote:
Why don't I get the value of "windows" in my file? My xml file is
located in http://www.otima.ca/XML/auto.xml and the xslt file is
http://www.otima.ca/XML/auto.xslt.


Your www server is sending your xslt resource with a mime type of
text/plain.

Reconfigure your server to send the correct mime type.

--
Rex
Jul 20 '05 #2
Hi Jan,

I have the same issue if I do this on my local HD. What do you
suggest?

Thank you,

Ian
Jan Roland Eriksson wrote:
On 31 Jan 2005 21:12:56 -0800, ia*********@gmail.com (Ian) wrote:
Why don't I get the value of "windows" in my file? My xml file is
located in http://www.otima.ca/XML/auto.xml and the xslt file is
http://www.otima.ca/XML/auto.xslt.


Your www server is sending your xslt resource with a mime type of
text/plain.

Reconfigure your server to send the correct mime type.

--
Rex


Jul 20 '05 #3


Ian wrote:

Why don't I get the value of "windows" in my file? My xml file is
located in http://www.otima.ca/XML/auto.xml and the xslt file is
http://www.otima.ca/XML/auto.xslt.


Can you explain in detail what you are trying and what fails?
If I load <http://www.otima.ca/XML/auto.xml> with IE 6 it seems it
applies the stylesheet.

Netscape 7.2 clearly displays
"An XSLT stylesheet does not have an XML mimetype"

See the Mozilla XSLT FAQ
<http://www.mozilla.org/projects/xslt/faq.html>
about the content type/MIME type issue.

If you cannot change the server settings for .xslt files then name the
style sheet something.xml, should make Mozilla happy and keep IE happy.

As for the XSLT stylesheet and its output I guess instead of
<xsl:value-of select="/windows"/>
you want
<xsl:value-of select="n:interior/n:windows"/>
--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 20 '05 #4
Hi Martin,

The exercise I am doing is for an XML class (though I would like to turn
this into a work opportunity) I am trying to convert the xml file into
an xhtml using a table (and css).

Initially all I want is for the Window label and the corresponding xml
element "n:windows" to show up. The Window label shows up, but not the
value of "n:windows" in xml spy/Internet Explorer.

Thank you,

Ian

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 20 '05 #5
I have been doing some more work on the issue (still more to test).
There is a mime issue (with Netscape) as you indicated. If you take a
look at http://www.otima.ca/XML/auto2.xml and auto2.xslt you will see I
have made significant progress. (I now am trying to figure out how to
look at the boolean value elements and do one thing if the value is
"false" and another if the value is "true" ..

For the purposes of the class assignment I don't need to solve the mime
issue (doesn't have to be Netscape compatible) but once I have it
completed, I will investigate (and may come back here for help) the
mime issue.

This is a great discussion group!

Cheers,

Ian

Ian Rutgers wrote:
Hi Martin,

The exercise I am doing is for an XML class (though I would like to turn this into a work opportunity) I am trying to convert the xml file into an xhtml using a table (and css).

Initially all I want is for the Window label and the corresponding xml element "n:windows" to show up. The Window label shows up, but not the value of "n:windows" in xml spy/Internet Explorer.

Thank you,

Ian

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Jul 20 '05 #6

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

Similar topics

2
by: Eyal | last post by:
Hey, I would appriciate if anyone can help on this one: I have a java object/inteface having a method with a boolean parameter. As I'm trying to call this method from a javascript it fails on...
6
by: melanieab | last post by:
Hi, Easy question. It seems to me that I'm following the examples correctly, but apparently I'm not. I'm trying to retrieve the data from a row called "row" and a column called "File". This is...
5
by: Manjiri | last post by:
Hello Everybody... Here i have the program which prints how many number of times the element appears in the array.... The code is as follows... #include<iostream.h> class Count
4
by: bushi | last post by:
hi ! i have following code to display some text on a web form,after getting it from database. <asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1"> <ItemTemplate>...
1
by: simbarashe | last post by:
Hie could someone please help me with getting and using the current page url. I have a function that gets the url, I want to use it with header(location : XXX) but it wont work. The code is as...
33
by: JamesB | last post by:
I am writing a service that monitors when a particular app is started. Works, but I need to get the user who is currently logged in, and of course Environment.UserName returns the service logon...
10
by: Mike | last post by:
I have code that is doing some updating to a record. Its getting the ID to update from the Grid. I'm passing an INT to my method to update the record. My code is working though I'm still getting an...
0
by: buntyindia | last post by:
Hi, I have a very strange problem with my application. I have developed it using Struts. I have a TextBox With Some fixed value in it and on Submit iam passing it to another page. <html:form...
13
by: jcato77 | last post by:
I am having trouble figuring out my code and was hoping someone could point me in the right direction. Below is my code what I need to due is create a method to add and display the value of the...
9
vikas251074
by: vikas251074 | last post by:
I am not getting date value in spite of my good effort. This code was working in my last office where I work. Now I am trying to work at my home pc. but not getting date value. Any can help me why...
1
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.