From: Dan M. <dan...@gm...> - 2012-01-11 17:27:58
|
Hi Casey, This sounds like a great idea. Schematron can be "implemented" in many ways. One of the easy ways is to transform or "compile" the schematron file into an XSLT program. See http://xml.ascc.net/schematron/1.5/ This is the way we did it in eXist before the JING implementation came out. JING is been much easier to use since it works exactly like a validation. You just need to change ".xsd" to ".sch": http://demo.exist-db.org/exist/functions/validation/jing One suggestion on a simple implementation, it should be possible to also transform or "compile" the schematron rule file directly into an XQuery typeswitch module of functions which would use indexes. This could be done by just translating the reference implementation from XSLT into XQuery typeswitch. - Dan On Wed, Jan 11, 2012 at 10:11 AM, Casey Jordan <cas...@jo...>wrote: > Hi all, > > I have been considering the benefits of implementing a binding for > schematron in XQuery so that you could run schematron reports on large > amounts of data and take advantage of the database indexes. > > For instance, > > <pattern> > <rule context="phrase"> > <report test="contains(.,'and/or')">Poor terminology used "and/or"</report> > </rule> > </pattern> > > Could be converted into a XQuery for reporting: > > for $x in //phrase[contains(.,'and/or')] > return > <div context="{document-uri(root($x))}">Poor terminology used: > "and/or"</div> > > I was hoping there were individuals that would want to discuss the > pro/cons of doings this. I had a email exchange with Rick Jelliffe earlier > today, and he seemed intreaged, but there are obvious challenges to > overcome for this to make sense. > > Anyone have opinions on this? > > Thanks, > > Casey > > -- > -- > Casey Jordan > easyDITA a product of Jorsek LLC > "CaseyDJordan" on LinkedIn, Twitter & Facebook > (585) 348 7399 > easydita.com > > > This message is intended only for the use of the Addressee(s) and may > contain information that is privileged, confidential, and/or exempt from > disclosure under applicable law. If you are not the intended recipient, > please be advised that any disclosure copying, distribution, or use of > the information contained herein is prohibited. If you have received > this communication in error, please destroy all copies of the message, > whether in electronic or hard copy format, as well as attachments, and > immediately contact the sender by replying to this e-mail or by phone. > Thank you. > > > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > > -- Dan McCreary Semantic Solutions Architect office: (952) 931-9198 cell: (612) 986-1552 |