tag:blogger.com,1999:blog-4222388800399833053.post5478915419363643243..comments2014-12-29T00:38:18.791-05:00Comments on Ursa Diminished: Simplify with an XML data model - Part 4udhttp://www.blogger.com/profile/04066140205655154636noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-4222388800399833053.post-20375446345571975042012-05-05T09:55:51.645-04:002012-05-05T09:55:51.645-04:00Thanks for your comment Phillip!
I have not yet lo...Thanks for your comment Phillip!<br />I have not yet looked into XForms very deeply. I am curious about how active the community is.<br /><br />The beauty I gleamed from Schematron was that using declarative assertions to define validation makes for concise, maintainable code. The other benefit is that XPath is one of the easier ways to work with a data model. The tools that one uses to transform a set of assertions into a set of validation results could be implemented in anything. PHP or Javascript work just as well as XSLT for validation, and the result doesn't need to be exclusively SVRL to be useful.udhttps://www.blogger.com/profile/04066140205655154636noreply@blogger.comtag:blogger.com,1999:blog-4222388800399833053.post-81214440592626122272012-05-02T05:44:18.941-04:002012-05-02T05:44:18.941-04:00Daniel,
Very interesting. I did some work last ye...Daniel,<br /><br />Very interesting. I did some work last year hooking-up Schematron validation in XForms using the XSLTForms implementation.<br /><br /><br />Basically, the, original, goal I had in mind was to be able to load a Schematron schema into an XForms instance and through a series of daisy-chained transforms, using the ISO Schematron transforms, be able to compile the resulting XSLT that could then be applied to the primary instance data in the form. Having an SVRL report document as the result would allow me to render the validation report.<br /><br />The realities when using XSLTForms (using beta 3 last year) where that the output of XSLTForms’ transform function was not an XML DOM but a serialisation, of the transform result, as a string. Not massively helpful and this made it impossible to daisy-chain any transforms. So, the limits of the work so far are:<br /><br />* Pre-compile the Schematron schema external to the form. <br />* Apply schema transform to the primary instance data.<br />* Format the plain-text result (not SVRL) as best one can.<br /><br /><br />Regards<br /><br />PhilipPhilip Fennellhttps://www.blogger.com/profile/12353204855753453016noreply@blogger.com