jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james_strac...@yahoo.co.uk>
Subject Re: RelaxNG Tag Library Validator
Date Fri, 20 Jul 2001 08:48:46 GMT
Hi Keyton

This looks great! I'm a definite +1 on adding this to the jakarta-taglibs

One issue this brings up is how errors should be reported (from any
validation mechansim) in a meaningful way.

Another issue is that the validator does not have access to the
ServletContext so that param-values cannot be relative URIs to the servlet
context - and so the web.xml cannot be 'portable' across deployments. (e.g.
I noticed the use of c:/dev/jakarta in the example TLDs - its a shame we
can't use /WEB-INF/foo/bar or whatever).

As Eduardo pointed out on the JSPTL list, maybe using Class.getResource() is
more appropriate?


----- Original Message -----
From: "A. Keyton Weissinger" <keytonw@bellsouth.net>
To: <taglibs-dev@jakarta.apache.org>
Sent: Friday, July 20, 2001 2:52 AM
Subject: RelaxNG Tag Library Validator

> Greetings,
> I have attached a RELAX NG-based Custom Tag Library Validator that I would
> like to submit to the Jakarta Taglibs project.
> This project includes a single TagLibraryValidator that uses a RelaxNG
> pattern file to determine whether or not a JSP is valid. Examples showing
> how one would validate that a given JSP contains no scriptlets is included
> (others are on their way).
> The project is packaged and documented in the style the other taglibs are
> documented. If you simply unzip the file into the same directory
> your other taglibs, you should be able to build it just as easily after
> a couple tasks:
> 1) You will need to have crimson.jar and jaxp.jar in your classpath.
> 2) You will need to copy jing.jar (retrieve it from the following link:
> http://www.thaiopensource.com/relaxng/jing.html) into your relaxng/lib and
> relaxng/examples/lib folders.
> 3) Switch to the relaxng folder and run ant as usual.
> Please let me know if you have any questions and **PLEASE** give me
> suggestions on how to make it better. Please note, however, I will be away
> from email from Friday afternoon through Sunday. So I may take a couple
> to get back to you.
> For those unfamiliar with Relax NG, it is the melding of TREX and RELAX,
> schema languages for the validation of XML documents. The XML Schema spec
> has largely overshadowed the RELAX NG effort, but do take a look. RELAX NG
> is just as flexible, uses the same datatypes, has very similar syntax, and
> is MUCH MUCH easier to use than XML Schema.
> Enjoy.
> Keyton

Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

View raw message