[dsdl-discuss] Re: First draft of Schematron spec (Schematronin one defun)

From: Eric van der Vlist <vdv@dyomedea.com>
Date: Tue Jul 15 2003 - 10:03:56 UTC

On Tue, 2003-07-15 at 10:45, Rick Jelliffe wrote:
> From: "Eric van der Vlist" <vdv@dyomedea.com>
>
> > Some comments about this draft:
> >
> > * I wonder if this is wise to include the list of the parts of
> > DSDL in the foreword: the list you've provided is out of date
> > and may change again in the future...
>
> That comes from the stylesheet. ISO rules don't allow reference to
> unpublished parts, I believe.
>
> > * I like the idea of defining language bindings.
>
> That is needed to
> 1) future proof for XSLT 2, XPath2 and XQuery coming online
> 2) reflect actual practise (Schemarama uses Squish query language,
> someone used XPath not XSLT, someone used EXSLT)
> 3) simplify the spec: it makes it easy to delegate all mention of
> XSLT to an annex, which is nice, and I think will make it easier
> for any implementers
> 4) present Schematron in a way disconnected from XSLT: the typical
> way people see Schematron is a hack to simplify validation in XSLT.
> While I exult in that, Schematron's abstract patterns are part of
> a much longer journey in trying to describe things that go on in documents.
> I have almost finished the example schemas for a non-normative annex
> which gives a pattern library ("mixed-content, list, name-value-pair, query,
> head-body, titled-container, etc." )

This bigger picture makes Schematron enter the domain of "validation
management". We could for instance imagine to accept a Relax NG binding
and write stuff such as:

<rule context="foo">
 <assert test="element bar{empty}">There should be an empty "bar"
element here!</assert>
</rule>

Which would be shorter than writing the XPath expressions for checking
than an empty "bar" element is available here...

Would that make sense (I do think so)?

Eric

-- 
Read me on XMLhack.
                                      http://xmlhack.com/author.php?id=8
------------------------------------------------------------------------
Upcoming Schema languages tutorial (registration open):
 - August 4th (Montreal, Canada)  http://makeashorterlink.com/?U28A217A4
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------
--
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 Tue Jul 15 12:03:57 2003

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