Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [xml-dev] RE: Difference between "normalize" and "canonicalize"?

From: rjelliffe@-------.---.--
To: "'xml-dev@-----.---.---'" <-------@-----.---.--->
Date: 3/1/2009 2:49:00 AM
>> Because the semantics of the schema language used, W3C Schema
>> 1.0, are not rich enough to express all of the constraints
>> for XSLT as an XML vocabulary.  I believe the RELAX-NG schema
>> semantics are rich enough.
>
> I don't think Relax-NG is rich enough to describe XPath expressions or
> XSLT
> patterns as a data type. So you will only ever describe a subset of the
> constraints.

I presume Ken was talking about element/attribute occurrence rules of the
kind that would be useful (adequate?) for an general interactive editor to
present to its human when editing XSLT. (Without agreeing or disagreeing
with him.)

> Also, there's a fuzzy boundary between syntactic constraints and semantic
> constraints (like: you can't call a template that hasn't been defined.).

Yes, reference rules have all sorts of interesting properties that are
rarely found in element/attribute occurrence rules, though of course value
rules are even less tame.

And I think everyone agrees that semantics has too much meaning.

> Any
> schema language can define all the syntactic constraints if you define
> "syntactic constraint" to mean "a constraint that can be expressed in the
> schema", and deem everything else to be semantic.

:-)

(The problem with grammars schema languages, as I see it, is that none of
them have taken the plunge into greater generality: as logical expressions
with cursors and location steps. RELAX NG has gone furthest here, in that
it treats element, attributes, fixed text fragments, empty and notAllowed
identically as particles.)

I think there are still some useful objective tests possible for judging
schema languages and their fit with a particular XML
language/vocabulary/document type/namespace. For example: does a schema
language allow optimal storage declarations to be derived from it? To test
this, take the schema and write C structs. Does a schema language allow
all rules concerning the context in which the element or attribute may
legitimately appear be expressed? To test this, highlight everything in
the normative text related to context that cannot be expressed and count
the sections.

(Indeed, we can count up the number of rules expressable in different
schema languages and judge between them. And it will all do no
good...until we reach the end of the new capital/development cycle,
because people won't trade their Edsel in for a Prius until they have
tried to squeeze the value out of the Edsel.)

So Ken's claim can be refuted by pointing out element/attribute occurrence
rules of an XSLT document that a (typical? state of the art?) interactive
editor would give to its users that could not be loaded from a RELAX
NG/NVDL schema. I don't know that this is unworkably prone to fuzziness,
is it?

It seems clear that XSD 1.0 proved itself inadequate to handle the
structures that are idiomatic in documents which are interpreted rather
than stored (SVG, XSLT, ODF, ...) But that should be no slur against XSD
unless we hold on to the myth of the one true schema language, which can
do everything.

Cheers
Rick Jelliffe


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent