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 containing
your other taglibs, you should be able to build it just as easily after only
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 days
to get back to you.

For those unfamiliar with Relax NG, it is the melding of TREX and RELAX, two
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



relaxng.zip

Reply via email to