The age old question of XHTML 1.0 Transitional Compliance
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > The age old question of XHTML 1.0 Transitional Compliance




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    The age old question of XHTML 1.0 Transitional Compliance  
Tony Collings


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-15-06 12:50 PM

Being a government body our website has to conform to all sorts of
regulations, one of them being w3c validation.

Our current <!DOCTYPE> model for all code is XHTML 1.0 Transitional,
but Visual Studio does some nasty things with code.

By playing around with tools / options we've managed to avoid alot of
incorrect code, by getting VS.NET to stop mucking around with your when
you switch between design and html view, but there are still a few
problems that we cannot get around. The biggest one being the CMS
RobotMetaTag control :

<cms:robotmetatag id=RobotMetaTag1 runat="server"></cms:robotmetatag>

Which renders out both a robots metatag and a base ref to the posting,
both of which can't be self-closed.

<meta name="ROBOTS" content="FOLLOW,INDEX">
<base
href="http://www.northamptonshire.gov.uk/ncc/Templates/homepage.aspx?NRMODE=
Published&NRORIGINALURL=%2f&NRNODEGUID=%7b40DDDDCD-8777-4EB8-83AC-6475493BA6
3E%7d&NRCACHEHINT=NoModifyGuest">

Is there anyway to make the <cms:robotmetatag> XHTML1.0 transitional ?

So that the HTML it outputs is compliant ?

Anyone else made a CMS2002 site successfully XHTML1.0 compliant ?

Cheers,






[ Post a follow-up to this message ]



    Re: The age old question of XHTML 1.0 Transitional Compliance  
John


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-18-06 03:49 AM

Hi Tony,

> Being a government body our website has to conform to all sorts of
> regulations, one of them being w3c validation.

We're currently going through exactly the same process as yourselves.

>
> Our current <!DOCTYPE> model for all code is XHTML 1.0 Transitional,
> but Visual Studio does some nasty things with code.
>
> By playing around with tools / options we've managed to avoid alot of
> incorrect code, by getting VS.NET to stop mucking around with your when
> you switch between design and html view, but there are still a few
> problems that we cannot get around.

Could you give me any pointers to the settings you had to change to stop
VS.NET screwing up the HTML?

> The biggest one being the CMS
> RobotMetaTag control :
>
> <cms:robotmetatag id=RobotMetaTag1 runat="server"></cms:robotmetatag>
>
> Which renders out both a robots metatag and a base ref to the posting,
> both of which can't be self-closed.
>
> <meta name="ROBOTS" content="FOLLOW,INDEX">
> <base
> href="http://www.northamptonshire.gov.uk/ncc/Templates/homepage.aspx?NRM
> ODE=Published&NRORIGINALURL=%2f&NRNODEGUID=%7b40DDDDCD-8777-4EB8-83AC-64
> 75493BA63E%7d&NRCACHEHINT=NoModifyGuest">
>
> Is there anyway to make the <cms:robotmetatag> XHTML1.0 transitional ?

The easiest way is to just re-write an XHTML-compliant version of the
control yourself.

All you need to do is grab the current posting object and look at the
IsRobotFollowable and IsRobotIndexable properties and write out the
appropriate XHTML.

Let me know if you need some code and I'll dig out the appropriate section
from our solution.

Regards,

John






[ Post a follow-up to this message ]



    Re: The age old question of XHTML 1.0 Transitional Compliance  
news.microsoft.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-18-06 03:50 AM

We've beem relativly successfull in creating MCMS sites that validate to
XHTML 1.0 strict by running some code on render that converts all the
non-compliant markup.

You may find this article usefull.
http://www.codeproject.com/aspnet/ASPNET2XHTML.asp

As for visual studio we've outlawed using the design view in vs2003, as long
as you don't enter the design view your code won't get messed up.  (You can
set your preferences to always open in html view).

Estyn

"John" <john.b1@nospam.blueyonder.co.uk> wrote in message
news:memo.20060215170930.1824A@jbnw27167.blueyonder.co.uk...
> Hi Tony,
> 
>
> We're currently going through exactly the same process as yourselves.
> 
>
> Could you give me any pointers to the settings you had to change to stop
> VS.NET screwing up the HTML?
> 
>
> The easiest way is to just re-write an XHTML-compliant version of the
> control yourself.
>
> All you need to do is grab the current posting object and look at the
> IsRobotFollowable and IsRobotIndexable properties and write out the
> appropriate XHTML.
>
> Let me know if you need some code and I'll dig out the appropriate section
> from our solution.
>
> Regards,
>
> John
>







[ Post a follow-up to this message ]



    Re: The age old question of XHTML 1.0 Transitional Compliance  
Spencer Harbar [MVP]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-21-06 10:52 PM

Hi Tony ,

With respect to the <cms:robotmetatag /> control to get around it's non
standard output you need to implement your own version.

An example of this can be found at
http://www.gotdotnet.com/Community/...BB-D179927179D5

simply adding the correct closing markup.

hth
Spence
www.mcmsfaq.com

"Tony Collings" <tony.collings@gmail.com> wrote in message
news:1140009120.198515.39160@o13g2000cwo.googlegroups.com...
> Being a government body our website has to conform to all sorts of
> regulations, one of them being w3c validation.
>
> Our current <!DOCTYPE> model for all code is XHTML 1.0 Transitional,
> but Visual Studio does some nasty things with code.
>
> By playing around with tools / options we've managed to avoid alot of
> incorrect code, by getting VS.NET to stop mucking around with your when
> you switch between design and html view, but there are still a few
> problems that we cannot get around. The biggest one being the CMS
> RobotMetaTag control :
>
> <cms:robotmetatag id=RobotMetaTag1 runat="server"></cms:robotmetatag>
>
> Which renders out both a robots metatag and a base ref to the posting,
> both of which can't be self-closed.
>
> <meta name="ROBOTS" content="FOLLOW,INDEX">
> <base
> href="http://www.northamptonshire.gov.uk/ncc/Templates/homepage.aspx?NRMOD
E=Published&NRORIGINALURL=%2f&NRNODEGUID=%7b40DDDDCD-8777-4EB8-83AC-6475493B
A63E%7d&NRCACHEHINT=NoModifyGuest">
>
> Is there anyway to make the <cms:robotmetatag> XHTML1.0 transitional ?
>
> So that the HTML it outputs is compliant ?
>
> Anyone else made a CMS2002 site successfully XHTML1.0 compliant ?
>
> Cheers,
>







[ Post a follow-up to this message ]



    Re: The age old question of XHTML 1.0 Transitional Compliance  
Glen Wells


Report This Message To A Moderator Edit/Delete Message


 
02-26-06 03:46 PM

Take one HTTP module, sprinkle it with regular expressions, add a dash of
output caching and you'll have yourself a delicious XHTML1.0 compliant
website.

You can make the module check that you are in PresentationPublished mode so
that it doesn't bother to do its trickery for authors, which saves the
server resources used by those RegEx calls, and I really do recommend output
caching so that the RegEx calls are not happening on every page impression.

--
Glen Wells
www.cubik.co.uk


"Tony Collings" <tony.collings@gmail.com> wrote in message
news:1140009120.198515.39160@o13g2000cwo.googlegroups.com...
> Anyone else made a CMS2002 site successfully XHTML1.0 compliant ?







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:42 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register