473,320 Members | 1,846 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.

XML newby - am I missing something?

I am attempting to write a website using Dreamweaver 8, I have a main
page that contains some xml fields - a list of events. I converted my
formated index.html page to index.xsl and attached the xml file that
contains the data.
When I 'preview in browser', DW creates a temp .html file in IE7 that
displeys the page with data perfectly.

The trouble is, when I publish the .xsl (with all of the associated
files, css, xml etc) and navigate to the index.xsl, all i get is the
code behind the xsl page - my understanding of the DW tutorials/help
files is that if you want to use xml data on a page you need to create
your page as a .xsl with a binding to the xml *instead* of using
a .html - am i missing simething?

Darren

Mar 12 '07 #1
6 1493
I don't know what "publish" means in your framework... but generally,
what you want the server to deliver to the user is the XML file, with a
hint that tells the user's program where to look for the corresponding
XSLT file. This hint is usually the xml-stylesheet processing instruction,
<?xml-stylesheet type="text/xml" href="uri-reference-of-my-stylesheet"?>
as documented at http://www.w3.org/TR/xml-stylesheet/

The main exception is when you're doing the "literal result element as
stylesheet" approach, which is rarely used.

--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Mar 13 '07 #2
yes thats it, I did not have a reference to the .xsl in the .xml.

one more question, if im using xml on my home page and therefore have
an index.xsl and an index.xml - will the browser find the index.xml by
default in the absence of an index.html?
regards,

Darren

Mar 13 '07 #3
Darren wrote:
one more question, if im using xml on my home page and therefore have
an index.xsl and an index.xml - will the browser find the index.xml by
default in the absence of an index.html?
Depends entirely on how the server was set up, since the defaulting for
the index file (and/or any translation of the request) is handled on
that end of the wire, not in the browser.
--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Mar 13 '07 #4
yes, thats fixed it, I didnt have a refference to the xsl in the xml!!

the xsl is going to be the home page of my site (index.xsl &
index.xml) do I have to redirect an index.html to the xml so that the
browser will pick it up, or will the browser find the index.xml in the
absence of an index.html?

- surely a redirect is not good for search engines, thats why im
suspecting that my theory is wrong!

is it possible to embed xml within a htlm doc - this way I can have an
index.html as normal but with dynamic data?
Darren
Mar 13 '07 #5
Darren wrote:
is it possible to embed xml within a htlm doc - this way I can have an
index.html as normal but with dynamic data?
Possible alternative: Do server-side XSLT to generate HTML, and deliver
that.
Mar 13 '07 #6
On 13 Mar, 10:38, "Darren" <darren.bullo...@googlemail.comwrote:
yes thats it, I did not have a reference to the .xsl in the .xml.

one more question, if im using xml on my home page and therefore have
an index.xsl and an index.xml - will the browser find the index.xml by
default in the absence of an index.html?

regards,

Darren
sorry, replied twice as the first one didnt turn up for a couple of
hours!

darren

Mar 13 '07 #7

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

Similar topics

8
by: Nick Mudge | last post by:
Hello, What is the best way for a new person to learn PHP and still new to programming to learn PHP. And also to learn how to use PHP with other technologies to write really good database driven...
2
by: Ben Sharvy | last post by:
I can't get the following page to display the img, whose name is passed in the URL. The variable, showme, is the name of a jpg file (e.g., coolpict.jpg). It is being passed correctly, as verified...
9
by: Damien | last post by:
I have just built a simple stopwatch application, but when i f5 to get things goings i get this message, An unhandled exception of type 'System.ArithmeticException' occurred in...
2
by: Sonoman | last post by:
Hi all: I am getting a "missing storage class or idetifier" error and I do not understand what it means, therefore and I cannot figure it out. I am just starting a new project and I cannot get...
8
by: Ask | last post by:
G'day All, Just thought I'd drop in and say hi. I'm new to Python, but old to software development. Python is one of the languages used in my new job, so I've just bought a book, read it, and...
10
by: Fred Nelson | last post by:
Hi: I have programmed in VB.NET for about a year and I'm in the process of learing C#. I'm really stuck on this question - and I know it's a "newby" question: In VB.NET I have several...
7
by: Arnold the Aardvark | last post by:
I'm completely new to .NET, but not C++, and have bought VC++ .NET to learn with. I've created a minimal GUI application to get started. My first question is a simple one about the IDE. Why is...
0
by: Pietje puk | last post by:
Hello, Since im quite new to ASP.NET i wanted to ask you folks what the best way is to create a WebForm for modifying 1 field from a record. The manipulation of this field can be done by using...
1
by: Darren | last post by:
Hi, I am writing a homepage that contains a table that displays xml data, the page is called index.xsl and the xml is called index.xml. As there is now no index.html as i've converted it to...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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...

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.