| Author |
Message |
Diego
Guest
|
Posted:
Wed Jan 12, 2005 7:55 pm Post subject:
MCMS 2002 and XHTML |
|
|
Hi
I have to build a site with Visual Studio 2003 and
MCMS 2002, but i have problems because the site must
be XHTML Compliant and 508 seccion compatible.
My cuestion is if exists some way to do it, and
I wondering if i can use Visual Studio 2005 with MCMS 2002,
because the VS 2005 can generate XHTML
Thanks Diego |
|
| Back to top |
|
 |
Stefan [MSFT]
Guest
|
Posted:
Wed Jan 12, 2005 8:05 pm Post subject:
Re: MCMS 2002 and XHTML |
|
|
Hi Diego,
you cannot use VS.NET 2005 with MCMS.
They are not compatible at the moment.
You could write an HttpModule that corrects the output stream to be XHTML
complient.
Also check out the Telerik placeholder controls which allows XHTML
compatible content.
http://www.telerik.com/Default.aspx?PageId=2101
Cheers,
Stefan.
"Diego" <Diego@discussions.microsoft.com> wrote in message
news:6EB1AB01-8B81-4D4C-993A-6CD59551F7AB@microsoft.com...
| Quote: | Hi
I have to build a site with Visual Studio 2003 and
MCMS 2002, but i have problems because the site must
be XHTML Compliant and 508 seccion compatible.
My cuestion is if exists some way to do it, and
I wondering if i can use Visual Studio 2005 with MCMS 2002,
because the VS 2005 can generate XHTML
Thanks Diego |
|
|
| Back to top |
|
 |
Diego
Guest
|
Posted:
Wed Jan 12, 2005 8:29 pm Post subject:
Re: MCMS 2002 and XHTML |
|
|
Thanks Stefan
"Stefan [MSFT]" wrote:
| Quote: | Hi Diego,
you cannot use VS.NET 2005 with MCMS.
They are not compatible at the moment.
You could write an HttpModule that corrects the output stream to be XHTML
complient.
Also check out the Telerik placeholder controls which allows XHTML
compatible content.
http://www.telerik.com/Default.aspx?PageId=2101
Cheers,
Stefan.
"Diego" <Diego@discussions.microsoft.com> wrote in message
news:6EB1AB01-8B81-4D4C-993A-6CD59551F7AB@microsoft.com...
Hi
I have to build a site with Visual Studio 2003 and
MCMS 2002, but i have problems because the site must
be XHTML Compliant and 508 seccion compatible.
My cuestion is if exists some way to do it, and
I wondering if i can use Visual Studio 2005 with MCMS 2002,
because the VS 2005 can generate XHTML
Thanks Diego
|
|
|
| Back to top |
|
 |
Guest
|
Posted:
Thu Jan 13, 2005 9:27 pm Post subject:
Re: MCMS 2002 and XHTML |
|
|
Hi Diego, we have had a similar problem and have implemented a solution
that intercepts the HTML being saved to the database and runs it
through 'Tidy' (http://tidy.sourceforge.net/) to make it XHTML
compliant.
You need to add the following to the global.asax:
(The reference to TidyHelper.Clean(html) is a custom class and method
we have written that wraps up the functionality of Tidy.)
protected void CmsPosting_Changing(object sender,
Cms.ChangingEventArgs e)
{
if (e.Action == Cms.PublishingAction.PlaceholderPropertyChange)
{
Cms.PropertyChangingEventArgs args = e as
Cms.PropertyChangingEventArgs;
if (args.PropertyName.ToUpper() == "HTML")
{
// This gets the html
string html = args.PropertyValue as string;
string cleanHtml = TidyHelper.Clean(html);
// Then call
args.PropertyValue = cleanHtml;
}
}
} |
|
| Back to top |
|
 |
Spencer Harbar [MVP]
Guest
|
Posted:
Thu Jan 13, 2005 9:56 pm Post subject:
Re: MCMS 2002 and XHTML |
|
|
check out the msib plus pack's page transformer which will output xhtml
using the XHTML attribute set at design time.
http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=922b813a-ab45-4ef7-8408-f261d6773d9b
hth
Spence
www.mcmsfaq.com
"Diego" <Diego@discussions.microsoft.com> wrote in message
news:6EB1AB01-8B81-4D4C-993A-6CD59551F7AB@microsoft.com...
| Quote: | Hi
I have to build a site with Visual Studio 2003 and
MCMS 2002, but i have problems because the site must
be XHTML Compliant and 508 seccion compatible.
My cuestion is if exists some way to do it, and
I wondering if i can use Visual Studio 2005 with MCMS 2002,
because the VS 2005 can generate XHTML
Thanks Diego |
|
|
| Back to top |
|
 |
|
|
|
|