Le lundi 12 septembre 2005 à 12:30 -0400, John Cowan a écrit :
> Dave Pawson scripsit:
>
> > Each must be 'complete' in itself? Is that it?
> > I.e. there is no combination or sequence allowed?
>
> Exactly. The reason for this is that the interface between an RNG validator
> and its datatype libraries is deliberately dumbed down. A validator can,
> in essence, only ask two questions of a type:
>
> 1) Is this string a valid instance of you?
> 2) Are these two strings equal according to your definition of equality?
And
1.5) Is this string a valid instance of you given these
parameters.
> That being so, there is no way for a positive integer to report something
> like "No, this string is invalid, but if you chop off at least two but
> no more than five characters from the end, it is valid", which is what
> would be required in order to validate something like "xsd:integer,xsd:lang".
Yes, that'd be another language.
The good thing about simple dumb interfaces is that they are often the
most powerful.
In our case, this interface should be sufficient to plug DSDL part 5 (or
whatever) to let people say that they want an integer followed by a unit
in a syntax that belongs to that language and relying on that language
to do this test that is definitely out of the scope of RELAX NG.
Eric
--
Freelance consulting and training.
http://dyomedea.com/english/
------------------------------------------------------------------------
Eric van der Vlist http://xmlfr.org http://dyomedea.com
(ISO) RELAX NG ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/2U_rlB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/rng-users/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/