I'm trying to link the XML page to an HTML page using a data island.
Unfortunately, after I created the HTML page and inserted the XML data
island when I went into my browser to look at it, the HTML page turned
up blank. I'm obviously missing a step or something. Both the XML and
HTML pages exist in the same directory on my hard drive so,
theoretically, using books.xml instead of a full link should have
worked.

Here's the code for the HTML page:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml";>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Books</title>
</head>

<body>
        <XML ID="dsoBooks" SRC="Books.xml"></XML>
</body>

</html>

What am I doing wrong here?

I really appreciate the time you've taken to help me with this. I've
got a couple books and I'm learning slowly...very slowly.

On Jan 27, 1:07�am, Cerebrus <[email protected]> wrote:
> I believe the link should still appear. Let's see how you are
> transforming this XML to render-able HTML(the XSLT file).
>
> On Jan 26, 7:27�pm, Historian <[email protected]> wrote:
>
> > Thanks! I knew that but for the life of me couldn't "see" it when I
> > reviewed the coding. There's always a value in another person
> > reviewing code and also taking a second look at it the next day.
>
> > However, according to my browser, the XML page works now but the link
> > doesn't appear when I open the file (offline). I'm guessing this
> > should change once I upload the file to a server and view the page
> > online?
>
> > Thanks!
>
> > Cerebrus wrote:
> > > The only flaw I can make out is that the namespace prefix declaration
> > > should be in caps because everything in XML is case sensitive.
>
> > > <HTML:A xmlns:HTML="http://www.w3c.org/TR/REC-html40/"; HREF="http://
> > >www.amazon.com/exec/obidos/ASIN/014011341X/thenazieuthan-20">The
> > > Second World War</HTML:A>
>
> > > On Jan 26, 10:21�am, Historian <[email protected]> wrote:
> > > > Hi all,
>
> > > > I'm new here and I hope someone will take a couple of minutes to help
> > > > me out. I'm trying to learn XML on my own and am building a web page
> > > > using XML to try to learn it. I've tried to insert an HTML link onto
> > > > my XML page and the browser reports I've got a parsing error and a
> > > > prefix is not bound to a namespace. At least that's one error, I may
> > > > have more, I'm not sure.
>
> > > > What I'm trying to do is build a list of books for a web site and make
> > > > the title of each book be an HTML link. I thought I had the code
> > > > correct, but obviously not. Here's what I've done:
>
> > > > <BOOK>
> > > > <HTML:A xmlns:html='http://www.w3c.org/TR/REC-html40/'
> > > > HREF='http://www.amazon.com/exec/obidos/ASIN/014011341X/
> > > > thenazieuthan-20'> The Second World War</HTML:A>
> > > > <AUTHOR>John Keegan</AUTHOR>
> > > > <DESCRIPTION>This book is a pretty good one volume history of the war.
> > > > However it's obvious Mr. Keegan's preference for writing and most of
> > > > his knowledge lies in the European Theatre of the war. Also, as a
> > > > purely military historian, he does not include any information on the
> > > > Holocaust and very scant information on the Nazis ideological reasons
> > > > for the war at all.</DESCRIPTION>
> > > > </BOOK>
>
> > > > What have I done wrong? I'd really appreciate any help someone can
> > > > give me. Right now XML is a bit overwhelming and I thought some "hands
> > > > on" experience in building a page would be the best way to learn it
> > > > since I usually do learn best that way.
>
> > > > Thanks!- Hide quoted text -
>
> > - Show quoted text -

Reply via email to