Quick Nav:  Online Store   |   Login | Register

strict xhtml

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
erik van ballegoij
<20 Posts
Posts:8


01/19/2007 5:58 PM  

Hi John,

Just bought PageBlaster 2.0, mainly because you announced you managed to have dnn output strict xhtml with it. Are the rules you used available somewhere? I would like to try your solution for a dutch government site...

From the brief look i took, this module looks awesome.. great work!

Cheers,

Erik


Erik van Ballegoij, Apollo Software
John Mitchell
Posts:3241


01/19/2007 6:06 PM  
Hi Erik,

Thanks for purchasing.

Yes I do have the rules that are making some of my pages on Snapsis.com validate Xhtml strict.
They'll be released in the next version of PageBlaster.

It's not a straight forward plug-n-play though. Each page will need different rules and tweaks, and you need to replace the default Html Module like I mentioned in the Project Leads forum.

Thanks for the positive feedback.
erik van ballegoij
<20 Posts
Posts:8


01/20/2007 3:42 AM  

Thanks John. I understood already it will be in the next version of PB. Replacing the html module is also not a problem. I have a client that wants me to report back this monday on the possibilities to create a dnn site that will pass all priority 1 checks of the w3c accessability guidelines (http://www.w3.org/TR/WAI-WEBCONTENT/). AFAIK strict xhtml will be a big step towards that goal.

So i dont "need" the rules asap, I'd just want to be able to tell my client that there will be no problems that can't be dealt with. Of course, i understand, the skin is a big part of the equation, it should be a css only, tableless skin, so i reckon your css menu will come in handy as well (i will just have to make it play nice with my localization tools... maybe we can work something out in that area).

Also, if you are looking for beta testers, just drop me a mail or something :)


Erik van Ballegoij, Apollo Software
John Mitchell
Posts:3241


01/20/2007 7:14 AM  
Ok, I've been planning to setup a thread to help people with using the Xhtml rules to acheive compliance. I'll do that in the next couple days. If you want to try the out then reply to the notification of this post directly, or contact me through the profile link.
SplatMan_DK
<100 Posts
Posts:81


01/23/2007 5:53 PM  
I'll sign up for beta-testing as well. Being able to pass the W3C validations would be kinda nice ...

- Jesper

brgds

- Jesper
John Mitchell
Posts:3241


01/24/2007 10:45 AM  
Ok Jesper. You should have the rules for Xhtml in the package I sent you. Look in the DesktopModule\PageBlaster\Config\SavedRules folder. The file that is there can be merged with the other Saved Rules.

I know that is not the easiest way to make the rules available, and I am working on a method to upload "rule packages", but you and Erik can let me know here if you have more questions.
SplatMan_DK
<100 Posts
Posts:81


01/24/2007 10:56 AM  
Deal. I'll check it out.

- Jesper

brgds

- Jesper
erik van ballegoij
<20 Posts
Posts:8


02/09/2007 6:46 AM  
I finally got this project on the road. So far the first results are pretty good, check out this: http://xhtml.apollo-software.net/. I will send logon credentials by email, so you can logon as host there

This site uses:

* dnn 4.4.1, no compression (turned off the compression http handler in web.config to make sure that dnn compression is never touched)
* 68 style css skin (part of january goodie bag of skincovered)
* home brew simple container
* pageblaster 2.1.2, xhtml portal rules activated

After i sent you an e-mail last night, i went to work to create a better validating page. Actually i am not sure what i did, but the home page only has 2 validation errors:

http://validator.w3.org/check?uri=http%3A%2F%2Fxhtml.apollo-software.net%2F&charset=utf-8&doctype=XHTML+1.0+Strict&verbose=1

there are some funny errors sometimes though. Sometimes the type of an input field seems to be filtered out. After logon, this happens consistenly in two spots: one of the radiobuttons in the control panel looses its type, it becomes this: 


and the hidden viewstate field turns into this:


Cheers,

Erik

[edit] formatting, sorry for the textareas.. the html is not being properly encoded  [/edit]

Erik van Ballegoij, Apollo Software
John Mitchell
Posts:3241


02/09/2007 11:08 AM  
Hi Erik,

Looking good. You only need one little tweak to default.aspx to make it validate.

Wrap the _scrollTop and _dnnVariable input variables in a DIV tag.

Yes, I have the same problem with those hidden textboxes on my site, I need to tweak the "Type" rule so that it doesn't break those, but it was late when I finally got all the rules working and since you need to be logged in as someone that gets the control panel I let it rest for a while.

I'll figure it out and post back.
erik van ballegoij
<20 Posts
Posts:8


02/09/2007 11:12 AM  
John,

I suppose wrapping those 2 input variables could also be done by a rule, just like you did with the viewstate input?

I'd like to stay away from the core if at all possible...

Erik van Ballegoij, Apollo Software
John Mitchell
Posts:3241


02/09/2007 11:30 AM  
It could be another rule, but I do it in in the default.aspx page to save on the processing, plus I was trying to make the rules more generic ASP.Net corrections than picking on the Validation errors specific to DNN.

I bet you could get that changed directly in the core for the next release, ask Cathal.
erik van ballegoij
<20 Posts
Posts:8


02/09/2007 2:55 PM  
>I bet you could get that changed directly in the core for the next release, ask Cathal.

yep.. i might have some leverage ;)

Erik van Ballegoij, Apollo Software
Keith Tuomi
<20 Posts
Posts:14


02/22/2007 6:52 AM  
Erik, I noticed you seem to have the DNNStuff Aggregator on your homepage.. so far, when I've tried out the PB XHTML rules on Zymmetrical, the only parts the seem to break are the Aggregator containers.. the whole layout goes buggy. I -think- it's something to do with the 'nowrap' tags in the aggregator CSS.

Have you had any success running the Aggregator tab system through these rules? 
erik van ballegoij
<20 Posts
Posts:8


02/22/2007 6:59 AM  
sorry, i am not using pageblaster and strict html on my homepage, so no.. no experience with the aggregator module

Erik van Ballegoij, Apollo Software
erik van ballegoij
<20 Posts
Posts:8


02/22/2007 7:06 AM  
I've worked together with John to fix a small bug in the xhtml rules (John's graps of RegEx is a bit better than mine ;) ). The error is in the "Remove Type" rule, which says this: <(style|script)(.*?)(type=.*?)(\s|>)(.*?)>. This is a bit too greedy, as it will change adjecent tags as well if the style or script tag does not have a Type attribute to begin with.
This is the corrected regex for the Remove Type rule:

<(style|script)([^>]+?)(type=.*?)(\s|>)(.*?)>

Also, i made a small change to the "Wrap Inputs" Rule, which now not only wraps the Viewstate input, but also the dnnVariable and the ScrollTop inputs:

(]+name=['"](__VIEWSTATE|__dnnVariable|ScrollTop)['"][^>]+>)

Finally i used a new rule, named that Empty Generator. This should be made more generic though (to catch other empty meta tags):

search for: ]+name=['"]GENERATOR['"]\s\/>
replace with:







Erik van Ballegoij, Apollo Software
Keith Tuomi
<20 Posts
Posts:14


04/01/2007 4:43 AM  
Thanks for that Erik -  that definitely knocked off some of the problem areas from my list.

John pointed out a great tool that people who find Regex's like getting hit on the head with a hammer (everyone?) should grab: RegexBuddy.com

I just wish I had spent my money on this originally instead of my stuffy WROX 'Regex for Beginners' book, which has just been collecting dust.
Keith Tuomi
<20 Posts
Posts:14


05/10/2007 5:02 AM  
Has anyone made improvements to the Ruleset that they'd care to share? I'm still in the dark about the Aggregator issue, and it seems to break my Telerik R admenu too.
Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.



ActiveForums 3.7
Powered by: Snapsis Software