473,387 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

W3C Validator Not Working Offline

Hi,

I have downloaded the source code and installed everything on
http://validator.w3.org/source/. I have the validator 'working' offline
with Apache2. I have uploaded a valid XHTML 1 Strict file to the online
validator and it passes with flying colours. When I pass it to my offline
version, it says, "This page is not Valid XHTML 1.0 Strict!". This happens
with both the Address and Local File methods.

I tried the command line '/usr/local/bin/onsgmls -c
/usr/local/share/sgml-lib/sp-1.3/pubtext/xml.soc -E0 -R -wvalid
-wnon-sgml-char-ref -wno-duplicate -wxml' and passed it the test file, but
no matter how I call it, it always gives the error:

cannot find "/usr/local/share/sgml-lib/sp-1.3/pubtext/xml.soc"; tried

I have tried pointing to umpteen possible locations for xml.soc, all that
are valid. I even copy and paste each time to ls to make sure my eyes are
not going funny, but no matter what I do, it always says it cannot find
this.

I have done a google on the web and on newsgroups and have had some close
hits but none that are spot on or have otherwise helped. Is this a known
bug with the latest version of anything? Has anyone got this working? What
should I do? :-/

--

..

Jul 20 '05 #1
3 5099
In article <pa****************************@privacy.net>, one of infinite monkeys
at the keyboard of Vigil <me@privacy.net> wrote:
I tried the command line '/usr/local/bin/onsgmls -c
/usr/local/share/sgml-lib/sp-1.3/pubtext/xml.soc -E0 -R -wvalid
-wnon-sgml-char-ref -wno-duplicate -wxml' and passed it the test file, but
no matter how I call it, it always gives the error:

cannot find "/usr/local/share/sgml-lib/sp-1.3/pubtext/xml.soc"; tried
Firstly (not the cause of your problem), sp 1.3 is seriously old.
Neither that nor even up-to-date OpenSP has a very extensive
entity catalogue. That means your "offline" validator may have to
fetch DTDs/etc over the 'net far more often than you'd expect.

The validator bundles a better [sg|x]ml lib, or you can run the automatic
updating utility available at http://valet.webthing.com/catalogue/
I have tried pointing to umpteen possible locations for xml.soc, all that
are valid.
That message means the environment variable SGML_SEARCH_PATH doesn't
include /usr/local/share/sgml-lib/sp-1.3/pubtext , so it won't look there.

That's caused by the -R flag. Without it you'll get "normal" behaviour,
which opens a potential security hole when someone tries things like
<!ENTITY passwd "/etc/passwd">
I have done a google on the web and on newsgroups and have had some close
hits but none that are spot on or have otherwise helped.


You must've googled the wrong places ....

Actually there's probably not much public record: Liam (who discovered
the security issue and wrote the patch) let us know by private email,
and we kept it there until we'd all closed it - which was much less
simple before the OpenSP-1.5 release.

Is this not documented in the package you downloaded?

BTW, if you really want offline use, you might be interested in
validator-lite, <URL:http://www.webthing.com/software/validator-lite/>
Oh, and (more shameless self-promotion), since you have Apache 2 you
can also use the altogether-more-powerful mod_validator from
http://apache.webthing.com/
--
Nick Kew

In urgent need of paying work - see http://www.webthing.com/~nick/cv.html
Jul 20 '05 #2
Vigil <me@privacy.net> wrote in message news:<pa****************************@privacy.net>. ..
Hi,

I have downloaded the source code and installed everything on
http://validator.w3.org/source/. I have the validator 'working' offline
with Apache2. I have uploaded a valid XHTML 1 Strict file to the online
validator and it passes with flying colours. When I pass it to my offline
version, it says, "This page is not Valid XHTML 1.0 Strict!". This happens
with both the Address and Local File methods.


I had problems at first. Like you I downloaded all the packages,
installed them and tried to run and it didnt work! What I found was
that I already had various packages (especially onsgmls) installed on
my system as default. The new packages I had dowloaded installed to
default locations different to the originals and so I was still using
the outdated packages on my system and not those I had downloaded!

Try doing a 'which onsgmls' and see what you are using, you may find
its not the one you have just installed! Just amend paths in the
scripts to suit or amend your LIBRARY paths.

HTH

EC
..
Jul 20 '05 #3
Thanks for your help. I have settled on Validator-lite, which is much
cleaner :-)

Might you submit it to Freshmeat so that people can see when new updates
happen?

PS. I tried the automatic catalogue updating utility but every one gave an
unknown HTTP error.

--

..

Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Justin Sane | last post by:
I'm always sending back and forth my pages to the W3C XHTML validator (I can't stand error!) I also develop using application/xhtml+xml header, but still, there are errors that are not XML errors...
22
by: Trevor Orton | last post by:
Hello, I'm having a slight problem using the W3C html validator and I've reviewed the FAQ's with no luck so hopefully someone here would be kind enough to point me in the right direction. I...
13
by: Niki Kovacs | last post by:
Hi, I'm an Austrian writer living in Montpezat (South France). I just installed a local W3C validator on my machine (Slackware 10.1, local Apache server). It's accessible as...
4
by: Baron Samedi | last post by:
hi, I followed the instructions at http://validator.w3.org/docs/install_win.html ("Installing the W3C-Validator on a Apache under Windows") and it works perfectly. I can locally validate HTML...
4
by: Tom Eldridge | last post by:
Hi all I'm getting tons of these errors when running the w3c validator on my template page. Basically it will say for example: element "TITLE" undefined. Do I need to put this into lowercase...
40
by: VK | last post by:
Hi, After the response on my request from W3C I'm still unclear about Tidy vs. Validator discrepansies. That started with <IFRAME> issue, but there is more as I know. Anyway, this very basic...
0
by: SatishPasala | last post by:
Hi I am trying to write a MailItem to Outbox. The whole idea is for the program to be able to add mail when offline. I get the following error when I try to run the program offline. I should be...
9
by: Daniele Perilli | last post by:
Hi everybody, I'd like to introduce you a new little tool I developed to automatically check markup validation of all pages in given websites. It uses W3C HTML Validator and CSS Validator online...
1
by: vickymesh | last post by:
Is there an OFFLINE XHTML validator that I could download an install on my computer?...I know there's a good W3C validator plus I also saw a one on web design company site ; may be many more too...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.