On Wed, 04 Apr 2012 10:13:22 -0700, Daniel Pitts
<newsgroup.nospam@virtualinfinity.net> wrote, quoted or indirectly
quoted someone who said :
We have a tag lib descriptor file, and when we tried to integrate it we
found a problem. Is there an easy way to validate and/or unit test a
TLD file?
I presume you mean a file like this?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag
Library 1.1//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>j2eeforum</shortname>
<info>Sample Tag library Created for j2eeforum</info>
<!-Tag Starts -->
<tag>
<name>ipaddress</name>
<tagclass>j2eeforum.IpAddress</tagclass>
<bodycontent>empty</bodycontent>
<info>
This is a example tag for displaying ipaddress.
</info>
<attribute>
<name>target</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>
You could feed an example into Stylus Studio and it will generate you
an XSD for it. Polish the XSD manually, and you have a syntax checker.
See http://mindprod.com/jgloss/xsd.html
validity. Classes need to be spelled correctly, functions need to have