Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
|
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 24th, 2003, 10:55 PM
cjo cjo is offline
Authorized User
 
Join Date: Oct 2003
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default CSS in Netscape

<?xml:stylesheet href="http://localhost/begaspnet/ch05/exercise2.css" type="text/css" ?>

Using line above, IE has no problem accessing my cascading style sheet to format my xml file. However, Netscape 7.1 fails to recognize this style sheet. In fact Netscape specifically gives a message that reads:

        "This XML file does not appear to have any style information
        associated with it. The document tree is shown below."

I'd appreciate any insights as to why IE can access this css, but Netscape can't???
 
Old October 25th, 2003, 04:26 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Have you checked the docs to see if this particular version of Netscape supports this processing instruction?

Joe (MVP - xml)
 
Old October 25th, 2003, 09:42 AM
cjo cjo is offline
Authorized User
 
Join Date: Oct 2003
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Actually Joe, I haven't. I'm learning XML via Wrox's "Beginning ASP.NET using C#". This code is provided in one of the exercises, and this book leads me to believe that it should work in both browsers. (I've asked the same question to the forum that applies specifically to this book, but haven't had much luck getting an answer).

Can you point me to the documentation you're referring to? Any other ideas?

Thanks!
 
Old October 26th, 2003, 04:58 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

I'm looking at the docs although they appear to say it should work. I assume
Code:
<?xml:stylesheet href="http://localhost/begaspnet/ch05/exercise2.css" type="text/css" ?>
was a typo in your post, it should have a hyphen, xml is not a namespace?
Code:
<?xml-stylesheet href="http://localhost/begaspnet/ch05/exercise2.css" type="text/css" ?>
Also how do you open the xml, via your local web server or as a local file, by double clicking, for instance?

Joe (MVP - xml)
 
Old October 26th, 2003, 05:23 PM
cjo cjo is offline
Authorized User
 
Join Date: Oct 2003
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You solved my problem! Replacing the colon with the hyphen did it. Apparently IE is more forgiving than Netscape.

In my defense, my book actually uses a colon. I'll be sure send to a note to the errata address.

Thanks very much Joe. These little things can really eat at you.





Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS HELP:! CSS EXPANDIBLE BACKGROUND FOR TITLE phpuser2000 CSS Cascading Style Sheets 2 December 19th, 2007 12:36 AM
Rich's new CSS book: Beginning CSS 2nd Edition jminatel BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 0 June 15th, 2007 11:55 AM
Netscape Layers Using CSS+JavaScript(DOM) anshul Javascript How-To 2 May 26th, 2004 01:51 PM
Netscape stu9820 HTML Code Clinic 24 May 19th, 2004 01:56 AM
redirect netscape 4.7 to netscape 7.1 trangd Beginning PHP 10 January 15th, 2004 04:30 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.