> > Summary. The problem as I see it is that Atom wants an element
> > content to be a URI (according to the RFC).
> > The perceived problem is that an Atom author will get a failure
> > (due to leading spaces etc), and not understand why.
>
> Which kind of failure would he get? Is that very different from the 404
> error he can get if he does a typo that doesn't make a URI invalid?
>
> I think people must be aware that not all errors can be detected by a
> schema language...
<imho/>If it were a clear pointer to 'visible' text, I'd agree.
I think that simply because there is nothing to see (ws is not visible)
it will be confusing?
Also that Schema validation is black and white, pass or fail.
>
> > Validating with msv or jing will confuse the user further.
>
> Note that this space normalization is true not only for xs;anyURI but
> all the WXS datatypes except xs:string and xs:normalizeString (it may
> not be what you're expecting, but at least it's coherent).
No problem with that. The atom threads just want a way to make
it so that validation failures and the spec don't confuse users?
> If you think
> that this is an issue for xs:anyURI, you'll have the same issue for
> other datatypes (aren't you using for instance xs:dateTime in Atom?)...
Yes. Atom also has the same issue with other content.
>
> > Hence relax NG anyURI is unsuited
>
> This hasn't anything to do with RELAX NG since this behaviour is just
> conform to W3C XML Schema part 2 (don't forget that RNG per itself has
> no datatype system)!
A personal position would request either option?
If I can blame XSD then I will, but that is pure prejudice!
> >
> > More to the point, relax NG doesn't provide a way to validate
> > a URI 'as presented'.
>
> Not quite:
> 1. RNG doesn't have direct support for datatyping at all.
> 2. W3C XML Schema part 2 does allow to do what you want through a
> xs:pattern facet on the xs:string datatype and is usable from
> RNG.
1. OK
2. You stated earlier that this would be a dangerous path to tread.
>
> > I can see the logic for this, but I
> > find it unsatisfactory.
>
> That's because W3C XML Schema part 2 isn't flawless that the DSDL
> working group has decided that "DSDL part 5 Data Type Library Language -
> DTLL" was needed (http://dsdl.org/0546.htm).
>
> Help is very welcome :-) ...
I guess you've got better help with Jeni T?
Sept 04, is that the last update?
>
> > I can't see how schematron can help either.
>
> It can check whether a text node is changed by the normalize-space
> function so, it could be used in complement to a RNG schema.
assert test="normalize-space(.) = ."
with the datatype set to anyURI?
Yes, that seems valid. Thanks Eric.
regards DaveP
YAHOO! GROUPS LINKS
- Visit your group "rng-users" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
