[dsdl-discuss] Re: Namespace Routing Language

From: James Clark <jjc@jclark.com>
Date: Thu Jun 12 2003 - 08:37:16 UTC

Rick Jelliffe wrote:

> So I think the same kind of mechanism required to support location
> mapping of errors in validation canditates by 3rd party validating tools
> might also handle remapping embedded schemas.

I think you're right. You would have to write a serializer that, as it
was serializing, used the SAX Locator to build a mapping from the
line/column numbers in the serialized form to the system id/line/column
numbers in the original input; then use that to transform error
messages. Tricky (especially if you want to do a 100% job), but possible.

> So this is a potential use-case for validation that we cannot currently
> handle: when one notional document has been fragmented throughout
> another document and possibly reordered. I suggest that this can be
> best solved just by allowing some more general transformation layer

I agree.

> I don't like the WXS <appinfo> kind of embedded-schemas approach, even though
> Schematron is probably the main user of it. The main driving factor for it is
> that people using schema-management applications have no-where else to
> put their extra constraints.

What do you see as the problems with the embedded-schemas approach?

>>With dummy elements, users may get error
>>messages (e.g. saw element "dummy" but expected "foo" or "bar" or "baz")
>>that are incomprehensible unless users understand the internal workings
>>of NRL, which shouldn't be necessary for merely using a validator.
>
>
> At worst, a filter on error messages to get rid of spurious complaints?

I don't think it's as simple as that. The complaints can't just be
filtered out, because they indicate that the instance is invalid.
Having NRL rewrite the content of messages generated by subschema
validation is bad, because it tightly couples NRL to the subschema
language. You want to be able to easily plug in new subschema
languages to an NRL implementation, without having to change the NRL
implementation itself.

> But, as I said, I think people will write the schemas to fit VCSLs, so I
> don't see this as a problem for Schematron at least.

For Schematron, it's not a problem. For schema languages where the
schema author does not explicitly write the error messages, it is.

James

--
DSDL members discussion list
To unsubscribe, please send a message with the
command  "unsubscribe" to dsdl-discuss-request@dsdl.org
(mailto:dsdl-discuss-request@dsdl.org?Subject=unsubscribe)
Received on Thu Jun 12 10:38:44 2003

This archive was generated by hypermail 2.1.8 : Fri Dec 03 2004 - 14:00:27 UTC