From: Casey J. <cas...@jo...> - 2012-01-12 15:14:08
|
Thanks all for the feedback. It appears that everyone is in favor of having some type of formalization for an reporting/vaidation system that can be used by XQuery. The reason that I was looking at schematron, was that it was already formalized quite well. I was hesitant to create another language, like the suggested "ValidationML" becuase I was hoping that I could write an XQuery binding for Schematron. Scheamtron itself is pretty simple, and the biggest reason it does not translate well into XQuery is the @context attribute, which forces you to use certain paradigms in XQuery. I am not sure how I would create "ValidationML" which would remove the dependence on the @context attribute, and at the same time still allow me to convert it to schematron. Anyone want to start a TC? *Grins* 2012/1/12 Вячеслав Седов <sch...@gm...> > yep - it is *very* good idea about using benefits of XDB for > validation but Schematron based on XSLT - it is not very simple to > rewrite XSLT by XQuery > > so to my mind much better is idea about implementing some kind of > "ValidationML" and then use XSLT to transform ValML to Schematron > rules, XQuery, XProc and so on > > 2012/1/11 Dan McCreary <dan...@gm...>: > > 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 > > > > > ------------------------------------------------------------------------------ > > 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 > > > -- -- 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. |