Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [xml-dev] Content Assembly Mechanism (CAM)

From: w3c@----.----
To: "Philippe Poulard" <philippe.poulard@------.-----.-->
Date: 10/8/2009 2:57:00 PM
rjelliffe@a... a écrit :
>> could you elaborate on that relax NG + schematron?
>> i can understand that chaining relax validation and schematron
>> processing is definitely possible.
>>
>> but as far as i understand, they are no integration effort between them.

IMHO, Schematron is not intended to be integrated; even if you embed it 
in RelaxNG (as mentioned below by Rick), the embedded part of Schematron 
will be ignored from the host language (each will ignore the other).

For example, consider an XML editor within which the user is invited to 
insert a new element under a <purchase-order>; a schema processor will 
be able to propose the authorized elements, say <item> and <free-item>, 
as indicated by a RelaxNG schema; unfortunately, some additional 
constraints are not expressible with RelaxNG, say "a <free-item> element 
is allowed only if the total amount of the order is more than 500€", so 
they are expressed with Schematron; then the user select <free-item> 
since it is proposed by RelaxNG, but after insertion it will have a 
warning from Schematron: "you are not allowed to insert this element 
because..."

The Active Schema Language (ASL) figures out elegantly this kind of 
issues by computing dynamically content models instead of serving them 
statically. Concretely, it can compute the content model mentioned above 
exactly as it is expressed: "a <purchase-order> is a sequence of 
<item>s, and if the total amount of the order is more than 500€, 
<free-item> is part of the sequence". So simple, so natural.

ASL:
http://ns.inria.fr/active-tags/active-schema/active-schema.html
The engine is available here:
http://reflex.gforge.inria.fr/
You can run various examples here:
http://reflex.gforge.inria.fr/tutorial-schemas.html

It was the topic of my talk at Balisage last year: "Properties of schema 
mashups: dynamicity, semantic, mixins, hyperschemas"
http://www.balisage.net/Proceedings/vol1/html/Poulard01/BalisageVol1-Poulard01.html
The slides:
http://hal.inria.fr/docs/00/32/26/61/ANNEX/Bal2008poul061003.pdf

> 
> Eddie Robertsson''s software to embed Schematron rules in RELAX NG has been
> around since about 2001.
> 
> Also both Schematron and RELAX NG are part of ISO DSDL: one
> long-time-coming part of DSDL is a pipelining execution framework, with
> XProc the candidate. The challenge I see with DSDL is not so much to
> integrate RELAX NG and Schematron (why dilute one?)  as to integrate the
> other parts of DSDL with them.
> 
> Cheers
> Rick Jelliffe
> 
> _______________________________________________________________________
> 
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
> 
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe@l...
> subscribe: xml-dev-subscribe@l...
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
> 


-- 
Cordialement,

               ///
              (. .)
  --------ooO--(_)--Ooo--------
|      Philippe Poulard       |
  -----------------------------
  http://reflex.gforge.inria.fr/
        Have the RefleX !

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@l...
subscribe: xml-dev-subscribe@l...
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php



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