This page on the wiki
http://dublincore.org/architecturewiki/DSPDCDSXMLSchematron
has attached a first cut at an XSLT transform which
(a) takes as input an instance of the XML format specified by the Description Set Profile Working Draft [1] i.e. a DSP represented in XML
(b) generates as output a Schematron schema [2] expressing a corresponding set of constraints on a DC-DS-XML document (using the current Proposed Rec [3])
I posted a few further notes about it on our eFoundations weblog last week [4]
I did this in part as a contribution to discussions about the relationship between the DSP model and XML schema technologies, and to suggest one way in which the DSP model can be used in an XML/XML schema context, and in part to give myself an opportunity to work through the constraints in the current draft in detail.
Having skimmed through the recent conversation between Stuart, Karen & Mikael, it occurred to me that it might also be useful as a means of exploring questions along the lines of "what does this constraint do?" i.e. set up a little test DSP, create a few DC-DS-XML docs, use that transform to generate a Schematron schema, observe results of validating the DC-DS-XML doc. Tweak DSP constraints, rinse, repeat.
And I should emphasise again that it's just the product of my personal noodling, implements a subset of the DSP model (using my interpretation of the current constraints), hasn't been rigorously tested, doesn't have any "official" "status", and should be treated accordingly :-) At this point, I mainly just wanted to illustrate the principle.
Pete
[1] http://dublincore.org/documents/2008/03/31/dc-dsp/
[2] http://www.schematron.com/
[3] http://dublincore.org/documents/2008/09/01/dc-ds-xml/
[4] http://efoundations.typepad.com/efoundations/2009/09/experiments-with-dsp-and-schematron.html
---
Pete Johnston
Technical Researcher, Eduserv
[log in to unmask]
+44 (0)1225 474323
http://www.eduserv.org.uk/research/people/petejohnston/
http://efoundations.typepad.com/
Eduserv has moved office! For details visit www.eduserv.org.uk/contacts
|