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 July 7th, 2005, 03:08 AM
Registered User
 
Join Date: Jul 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Newbie and IE6

Hi All,

I have just started learning XML and trying out some of the examples. I know there are some funny issues with ie6 but is it true that the <para> tag just gets ignored.. My text seems to just flow when viewed in ie6 and not have new para's..??

Any help appreciated.

Ash
 
Old July 7th, 2005, 04:05 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

If IE thinks your file is HTML then all non HTML elements will be ignored, as 'para' is one of these it will not show in the output but its child elements will.
If IE 6 thinks your file is XML then it should render it using the built in stylesheet which shows an expandable tree view.
It depends on the file extension and/or the mime type as to which IE thinks it is.

--

Joe (Microsoft MVP - XML)
 
Old July 7th, 2005, 04:12 AM
Registered User
 
Join Date: Jul 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Joe,

Thanks. It is an XML file and is as follows:

<?xml-stylesheet type="text/css" href="#docstyle"?>

<document>
<style id="docstyle">
        style {display:none; }
    style {display:none; }
    head {display:block; }
    title {display:block; font-size:20pt; }
    author {display:block; font-size:14pt; }
    body {display:block; font-size:10pt; font-family:arial; }
    para {disply:block; font-size:11; border-left:none; border-right:none; border:solid 2px blue; }
    email {display:none; }
</style>
<head>
    <title>Midnight Rain</title>
    <author>Kurt Cagle</author>
    <email>[email protected]</email>
</head>
<body>
<note>From the first chapter of Midnight Run.</note>
<para>A web site is one of the most important advertising mediums of the future for any company because it will be permanently available, easy to update and relatively inexpensive to publish and maintain.</para>

<para>The Following pages will give you examples of our work so far, some ideas for you to think about and show you how your company can achieve its presence on the World Wide Web using the skills of a rapidly expanding design and Consultancy Company.</para>

<para>We also have a jargon buster page to give you an insight into some meanings of some of the web technology and associated terms.</para>

<para>We hope you enjoy your visit and please feel free to send us your feedback. We need your comments and suggestions to be able to deliver the service that ever changing needs require.</para>
</body>
</document>

Can you spot anything..?
Ash
 
Old July 7th, 2005, 05:10 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

As far as I know IE doesn't support embedded stylesheets. You'll need to extract the transform to a separate file and modify the href accordingly.
I think Mozilla supports embedded transforms.

--

Joe (Microsoft MVP - XML)





Similar Threads
Thread Thread Starter Forum Replies Last Post
viewing in IE6 casper35 BOOK: PHP and MySQL: Create-Modify-Reuse ISBN: 978-0-470-19242-9 2 April 2nd, 2009 12:53 PM
Percentage: IE6 vs. All others? tal HTML Code Clinic 3 August 1st, 2007 05:57 PM
In IE6 How do you get Whitespace??? David P. Manning CSS Cascading Style Sheets 0 April 24th, 2007 08:01 AM
ActiveX control for IE6 crmpicco VB How-To 3 January 17th, 2005 12:15 PM
IE6 or IIS5 settings MGerlachJr Dreamweaver (all versions) 11 December 5th, 2004 12:48 PM





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