Forum Moderators: open

Message Too Old, No Replies

validating xhtml

         

danlott

9:39 am on Aug 28, 2003 (gmt 0)

10+ Year Member



hi guys,
tried searching the forums for this but it just kept hanging my browser.
I'm trying to validate my xhtml page (transitional). But it throws a wobbly when i try and have server side code in eg:

Line 3, column 0: document instance must start with document element
<%@language="JAVASCRIPT" codepage="1252"%>

Line 4, column 0: character "<" is the first character of a delimiter but occurred as data
<%var rn = Math.random()%>

and so on. Also it chucks a mental when i embed a flash movie in the page. Can someone tell me how i can fix this or give me some poinetrs?

many thansk
- D

Dreamquick

10:18 am on Aug 28, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You should never attempt to validate server-side pages until they have been parsed and turned into client-side pages, validators are designed to validate markup - not server-side code which uses its own constructs & elements!

Personally I like to use WGET for this task as I can quickly generate a batch of pages which have been parsed down to only client-side content and can then be thrown into a validator by upload or by copy & paste. Alternately you could just validate by passing across the URL if the site is exposed to the outside world, or possibly even running a copy of the validator locally.

Unfortunately I can't offer much help on the embedded flash-movie front since its not something I have experience of...

- Tony

danlott

10:39 am on Aug 28, 2003 (gmt 0)

10+ Year Member



Dreamquick,
thanks for replying. i'll upload the page to our server and validate it from there.
cheers
- D