473,809 Members | 2,580 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5119
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_PAT H 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.co m/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
2046
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 but that the W3C reports as errors because some elements are not supposed to be where they are at times. Is there a way to have the exact equivalent of the W3C XHTML validator to use locally, maybe a PHP debug script, I don't know...? That...
22
5754
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 recently validated my site's css and the bulk of the html pages via the W3C validator but was forced to use the file upload option because the 'Validate by URL' option returns the following error: >>Sorry, I am unable to validate this document because...
13
10811
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 http://w3c-validator, because I'm on dialup and I want to check pages offline. Unfortunately, URL upload won't work, because the validator doesn't accept any URL's beginning with http://localhost.
4
1859
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 pages without an internet connection. Unfortunately, I recently changed my website to make it all PHP, so that I can include standard headers and footers, etc for menus, hit counters and the like, so have index.php everywhere and not index.html
4
6936
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 or uppercase or have I got completely the wrong end of the stick and need to define my doctype to another? Currently I have this:
40
5624
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 HTML page: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN" "http://www.w3.org/TR/html401/strict.dtd"> <html> <head>
0
1083
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 able to add the mail to outbox even though if I am offline. An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in Testing.exe
9
3610
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 services in recursive mode (without any max pages limit as other known services). It's called Markup Validator and, of course, it's completely free. I'd be delighted to have a feedback from you about it: http://www.markupvalidator.com Thanks.
1
1423
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 have but I want to have something installed on my comp for the time I'm not online...Thanks in advance!
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9603
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10376
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10120
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7662
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.