[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Hook to validate XHTML

From: Ryan Schmidt <subversion-2006q2_at_ryandesign.com>
Date: 2006-06-22 13:57:21 CEST

On Jun 22, 2006, at 13:23, emerson cargnin wrote:

> Does anyone know of any hook to validate if a JSP is XHTML compliant?

No, but somebody just posted a pre-commit hook that performs some
other validation on files. You can surely use it as a basis for an
XHTML checker:

http://svn.haxx.se/users/archive-2006-06/0853.shtml

> Is it possible for a pre-commit hook to go for the commit but even
> then display a warning??

If you mean: is it possible for a pre-commit hook to allow the commit
to proceed, yet output text to the user, then I don't think so. You
can only output text to the user from a pre-* hook if you also return
a non-zero status, and thereby prevent the action from taking place.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jun 22 13:58:49 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.