Re: Most common XML/XSD validations?
Andrew Thompson wrote:
What are the best XSDs to look at for inclusion?
Hope that those listed there are most interesting from Sun/Java point of
view:
<http://java.sun.com/xml/ns/javaee/#2>
(Follow a bottom links on the page, there is link to commonly used DTDs
also.)
And while I have your attention, bug reports for
YAX-V, as well as either of the existing XSDs, are
most welcome.
My short "wish list" for YAX-V:
* Editable XSD pane. (That would be helpful in quick
writing/correcting/testing XSD files.)
* Possibility to specify the XML/XSD file also as URL. (It would
prevent us from downloading temporary test files, which may be annoying
when for instance .jnlp is associated with JWS launcher.)
* Support for DTD. (Embedded DTD -> XSD Converter would be great,
but also simple validation of "rewritten XML" against a given DTD would
be useful.)
BTW -- regarding "our" JNLP schema ;), note the following quote form the
JNLP spec.:
The modifiers m and k can be used for megabytes and kilobytes,
respectively. For example, "128m" will be the same as specifying
"134217728" (128*1024*1024). The modifiers are not case-sensitive.
That means a size modifiers are optional, and if present, should be in
lower-case.
So the 'memorySizeType' in current version of XSD seams to be incorrect.
It likely should be defined as:
<xs:simpleType name="memorySizeType">
<xs:restriction base="xs:token">
<xs:pattern value="[0-9]+[km]?"/>
</xs:restriction>
</xs:simpleType>
P.S.
Andrew, I've also revised again our discussions on a subjects "JNLP xsd
schema", and "Problem with .jar file", and I realized that there is my
mistake in the latter thread. I'm sure, that I've seen one of the
earlier versions of the JNLP XSD from you, but now I see that it was not
from the post you linked there -- possibly I've seen it pointed from one
of your previous post, no matter... That is to say only, that none of
the NNTP servers used by me feeds better than GG -- your post with
announcement of the XSD, and the one next to it asking for comments, are
both not available from my servers. Which is simply, the "nature of
Usenet" to me...
piotr