4 replies [Last post]
Rhek
Offline
newbie
Last seen: 16 years 10 weeks ago
Timezone: GMT+8
Joined: 2003-10-02
Posts: 4
Points: 0

Hello,

I am converting a site from HTML 4.01 to XHTML 1.0 Transitional and CSS. Everything WAS going ok until I tried to convert a page that is using YusASP’s Advanced Content Editor 3.3. (http://www.yusasp.com/prj04.asp) The ACE 3.3 object did not layout correctly.

I fought with the ACE 3.3 object for a while and then discovered that the DOCTYPE was the problem.

This DOCTYPE works fine…
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

This DOCTYPE causes a problem…
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

I sent an email to YusASP’s technical support. They informed me that their product could not be used with XHTML. The product is great but I want to convert to XHTML so it looks like I cannot use the product anymore.

Can anyone recommend a content editor that will work? The site uses ASP with Access databases on an Windows 2000 server.

Thanks,
Rick

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 3 days 10 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5342
Points: 2963

Site Content Editor does not work in XHTML, need to replace

Hi Rhek,
The problem is when browsers display in standards mode. As a work around you could use your xhtml doctype and add <?xml version="1.0" encoding="UTF-8" ?> before it.
That will help your page validate and still cause browsers to display in quirks mode.
It might help until you find another content editor.

Rhek
Offline
newbie
Last seen: 16 years 10 weeks ago
Timezone: GMT+8
Joined: 2003-10-02
Posts: 4
Points: 0

Site Content Editor does not work in XHTML, need to replace

Hello Tony,

Thanks for the quick response to make question. I tried your suggestion so my code now looks like...

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

but I received the following when I tried to view the page...

The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.

--------------------------------------------------------------------------------

Use of default namespace declaration attribute in DTD not supported. Error processing resource 'http://localhost/cssgenelebell/siteadmin/admindocumentslist.asp'. Line 7, Position 7

<html>

Did I make a mistake or miss something?

Thanks Again,
Rick

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 3 days 10 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5342
Points: 2963

Site Content Editor does not work in XHTML, need to replace

Hi Rhek,
Firstly whats on line 7?
Secondly is the page on a server behind a firewall?
If not can we have access to the page?

Rhek
Offline
newbie
Last seen: 16 years 10 weeks ago
Timezone: GMT+8
Joined: 2003-10-02
Posts: 4
Points: 0

Site Content Editor does not work in XHTML, need to replace

Hello,

Been working on this some today. The code is actually on my local computer and is generated from an asp script. I did find a few coding errors that was causing the XML page problem after I added the line

<?xml version="1.0" encoding="UTF-8" ?>

The page is now displaying but I am trying to work through a few other problems now to see if this will work for me. At the moment some of the styles in the stylesheet are not displaying correctly. Looks like it is ignoring "margin: 0 auto;" as instead of centering the <div> it is left justifing. Couple fonts are not displaying correctly either. The only change was adding the line above.

I must day that this has been a very interesting exercise and I am learning alot about css and xhtml. I appreciate all your help.

Thanks,
Rick