kcl-ddh / kiln

Kiln is a multi-platform framework for building and deploying complex websites whose source content is primarily in XML. It brings together various independent software components into an integrated whole that provides the infrastructure and base functionality for such sites.
Apache License 2.0
34 stars 62 forks source link

Implement Schematron schema generation from ODD #7

Open ajenhl opened 12 years ago

ajenhl commented 12 years ago

kiln/sitemaps/odd.xmap has the beginnings of a set of pipelines for extracting Schematron schema files from an ODD file. The XSLT to implement this need to be written.

raffazizzi commented 12 years ago

Hello,

really cool stuff, will look more into Kiln's use of ODD.

Just wondering if there's any way to use the TEI's Stylesheets?

http://tei.svn.sourceforge.net/viewvc/tei/trunk/Stylesheets/odds2/

Particularly extract-sch.xsl and extract-isosch.xsl for this specific case.

Best and great job! Raffaele

On Thu, Jul 26, 2012 at 1:46 AM, Jamie Norrish < reply@reply.github.com

wrote:

kiln/sitemaps/odd.xmap has the beginnings of a set of pipelines for extracting Schematron schema files from an ODD file. The XSLT to implement this need to be written.


Reply to this email directly or view it on GitHub: https://github.com/kcl-ddh/kiln/issues/7

ajenhl commented 12 years ago

Thanks for the pointer to those XSLT, Raffaele - I'll certainly use extract-isosch.xsl as at least the basis for this work. My original thinking, that I'd appreciate feedback on, was to have two extractions of a schema from an ODD file: one built from the rules associated with the definition of the TEI, and the other built from the rules in an 'encoding guidelines' section of the ODD.

That seemed a useful distinction when I planned this work, since the schema in the second case would link to a transformed-for-display version of the guidelines, but I am now thinking it might be simplest just to use all of the rules at once. This wouldn't prevent a link to the encoding guidelines for those rules from that section, so there doesn't seem to be any downside.

ajenhl commented 11 years ago

d58ccde provides a much simplified form of the original intention, simply extracting all Schematron rules from an ODD file, and without yet linking to any documentation in that ODD. Such linking will probably wait until I have an actual example ODD containing project-specific encoding guidelines with associated Schematron rules, so I'm leaving this issue open.