Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #13372
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Validate or unit test for TLD files? |
| Date | 2012-04-04 10:23 -0700 |
| Organization | Canadian Mind Products |
| Message-ID | <tp0pn7hasqi96he6e9ivbf80jh70oie1ho@4ax.com> (permalink) |
| References | <Si%er.27207$GV1.16300@newsfe12.iad> |
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
--
Roedy Green Canadian Mind Products
http://mindprod.com
When you were a child, if you did your own experiment
to see if it was better to put to cocoa into your cup first
or the hot milk first, then you likely have the programmer gene..
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Validate or unit test for TLD files? Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-04-04 10:13 -0700
Re: Validate or unit test for TLD files? Roedy Green <see_website@mindprod.com.invalid> - 2012-04-04 10:23 -0700
Re: Validate or unit test for TLD files? Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-04-04 10:45 -0700
Re: Validate or unit test for TLD files? markspace <-@.> - 2012-04-04 10:27 -0700
Re: Validate or unit test for TLD files? Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-04-04 10:47 -0700
Re: Validate or unit test for TLD files? Roedy Green <see_website@mindprod.com.invalid> - 2012-04-04 14:21 -0700
Re: Validate or unit test for TLD files? Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-04-04 15:06 -0700
Re: Validate or unit test for TLD files? Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-04-04 19:14 -0300
Re: Validate or unit test for TLD files? Arne Vajhøj <arne@vajhoej.dk> - 2012-04-04 21:11 -0400
csiph-web