Re: XForms' transform function
John Boyer <[email protected]> Tue, 10 May 2011 09:41:15 -0700
| Newsgroups | gmane.comp.web.xforms |
|---|---|
| Message-ID | <OF952BD692.5B27FD05-ON8825788C.005B70C1-8825788C.005BAB2E@ca.ibm.com> |
This is a multipart message in MIME format. --=_alternative 005BA8468825788C_= Content-Type: text/plain; charset="US-ASCII" Hi Philip, Just curious whether you are considering only "full" schematron validation, or whether you are also considering support for "type library" schematron validation. A type library provides datatype definitions that can be applied to instance data nodes via the type MIP (model item property). It's probably no big deal if an implementation already provides an XML schema way of building type libraries, but like I said ... just curious. Cheers, John M. Boyer, Ph.D. Distinguished Engineer, IBM Forms and Smarter Web Applications IBM Canada Software Lab, Victoria E-Mail: [email protected] Blog: http://www.ibm.com/developerworks/blogs/page/JohnBoyer Blog RSS feed: http://www.ibm.com/developerworks/blogs/rss/JohnBoyer?flavor=rssdw From: Philip Fennell <[email protected]> To: "[email protected]" <[email protected]> Date: 05/10/2011 09:07 AM Subject: XForms' transform function Sent by: [email protected] I have been experimenting with demonstrating Schematron validation within XForms by the use of the proposed transform function. I have been using XSLTForms beta3 and have a rather limited example which uses the textual result from the XSLT 1.0 skeleton implementation. Seeing as XSLTForms' transform function returns a string serialization of the result of the transform I cannot use the SVRL representation of a Schematron report which would, if available as an XML tree, provide more options for presentation and logic/behavior than the basic text report. However, it does prove that it can work all be it that the 'complied' schema can only be accessed via a URI. I am still looking for an implementation that'll firstly let me store the compiled schema in an XForms instance and ultimately allow me to daisy-chain the compilation transforms, across an number of instances, so that I can create a Schematron rules editor in XForms and have the schema compiled and applied to a test source document upon DOMSubtreeModified events dispatched from the schema instance. The nearest option I can currently see working is to use Orbeon's xxforms:call-xpl() function and implement the Schematron compilation pipeline externally to XForms but that's not what I'm after. I have attached the fledgling form so that you can see the string of instances I'll in order to compile the schema. It's all rather a hack at the moment but I'm planning on making it look a bit more presentable. Regards Philip Fennell Consultant MarkLogic Corporation One Kingdom Street Paddington Central London W2 6BD United Kingdom Mobile: +44 (0) 7824 830 866 Tel: +44 (0) 203 402 3619 email [email protected] web www.marklogic.com [attachment "schematron.xml" deleted by John Boyer/CanWest/IBM] --=_alternative 005BA8468825788C_= Content-Type: text/html; charset="US-ASCII" <font size=2 face="sans-serif">Hi Philip,</font> <br> <br><font size=2 face="sans-serif">Just curious whether you are considering only "full" schematron validation, or whether you are also considering support for "type library" schematron validation.</font> <br><font size=2 face="sans-serif">A type library provides datatype definitions that can be applied to instance data nodes via the type MIP (model item property).</font> <br><font size=2 face="sans-serif">It's probably no big deal if an implementation already provides an XML schema way of building type libraries, but like I said ... just curious.</font> <br> <br><font size=2 face="sans-serif">Cheers,</font> <br><font size=2 face="sans-serif">John M. Boyer, Ph.D.<br> Distinguished Engineer, IBM Forms and Smarter Web Applications<br> IBM Canada Software Lab, Victoria<br> E-Mail: [email protected] <br> <br> Blog: </font><a href=http://www.ibm.com/developerworks/blogs/page/JohnBoyer><font size=2 face="sans-serif">http://www.ibm.com/developerworks/blogs/page/JohnBoyer</font></a><font size=2 face="sans-serif"><br> Blog RSS feed: </font><a href="http://www.ibm.com/developerworks/blogs/rss/JohnBoyer?flavor=rssdw"><font size=2 face="sans-serif">http://www.ibm.com/developerworks/blogs/rss/JohnBoyer?flavor=rssdw</font></a><font size=2 face="sans-serif"><br> <br> </font> <br> <br> <br> <br><font size=1 color=#5f5f5f face="sans-serif">From: </font><font size=1 face="sans-serif">Philip Fennell <[email protected]></font> <br><font size=1 color=#5f5f5f face="sans-serif">To: </font><font size=1 face="sans-serif">"[email protected]" <[email protected]></font> <br><font size=1 color=#5f5f5f face="sans-serif">Date: </font><font size=1 face="sans-serif">05/10/2011 09:07 AM</font> <br><font size=1 color=#5f5f5f face="sans-serif">Subject: </font><font size=1 face="sans-serif">XForms' transform function</font> <br><font size=1 color=#5f5f5f face="sans-serif">Sent by: </font><font size=1 face="sans-serif">[email protected]</font> <br> <hr noshade> <br> <br> <br><tt><font size=2>I have been experimenting with demonstrating Schematron validation within XForms by the use of the proposed transform function. I have been using XSLTForms beta3 and have a rather limited example which uses the textual result from the XSLT 1.0 skeleton implementation. Seeing as XSLTForms' transform function returns a string serialization of the result of the transform I cannot use the SVRL representation of a Schematron report which would, if available as an XML tree, provide more options for presentation and logic/behavior than the basic text report. However, it does prove that it can work all be it that the 'complied' schema can only be accessed via a URI.<br> <br> I am still looking for an implementation that'll firstly let me store the compiled schema in an XForms instance and ultimately allow me to daisy-chain the compilation transforms, across an number of instances, so that I can create a Schematron rules editor in XForms and have the schema compiled and applied to a test source document upon DOMSubtreeModified events dispatched from the schema instance. The nearest option I can currently see working is to use Orbeon's xxforms:call-xpl() function and implement the Schematron compilation pipeline externally to XForms but that's not what I'm after.<br> <br> I have attached the fledgling form so that you can see the string of instances I'll in order to compile the schema. It's all rather a hack at the moment but I'm planning on making it look a bit more presentable.<br> <br> <br> Regards<br> <br> Philip Fennell<br> Consultant<br> MarkLogic Corporation<br> <br> One Kingdom Street<br> Paddington Central<br> London W2 6BD<br> United Kingdom<br> <br> Mobile: +44 (0) 7824 830 866 <br> Tel: +44 (0) 203 402 3619<br> <br> email [email protected]<br> web </font></tt><a href=www.marklogic.com><tt><font size=2>www.marklogic.com</font></tt></a><tt><font size=2><br> <br> <br> <br> <br> [attachment "schematron.xml" deleted by John Boyer/CanWest/IBM] </font></tt> <br> --=_alternative 005BA8468825788C_=--