xsd validation

Friday, 5 August 2011 · 2 messages · last reply 6 Aug 2011
P
planetcomolli5 Aug 2011 22:43 #
Hi everyone! I have started using base-x recently and i have a question that it may be naive, but i can't find a solution. In the last version of the db you can use xslt transformation and i have been trying to do the same with xsd validation. I mean, validate xml documents through a xsd validator using Xquery... I have tried for a while but i was not able to find a solution to this problem, even using java utilities. Is there a possible way to validate xml through xsd in base-x? Sorry for my really bad english and congratulations for yours really well done db!! Best wishes, Alberto
MS
Michael Seiferle6 Aug 2011 08:44 #
Ciao Alberto, glad you have found BaseX useful, don't worry about your English, I'm sure my Italian is sure worse :)! Regarding XSD validation, we do not offer a direct integration of validators inside BaseX. This means for the moment you really have to rely on external tools handling that job. Maybe you could elaborate a little more on the way you use BaseX, so the list might provide you with some pointers on where to plug the validator in. Or even better: I don't know how confident you feel in Java, but as contributions are always welcome you might have a look at [1,2] and try to build your own set of functions. I hope this helps, feel free to ask for more. Kind regards Michael [1] https://github.com/BaseXdb/basex/blob/master/src/main/java/org/basex/query/func/FNXslt.java [2] https://github.com/BaseXdb/basex/blob/master/src/main/java/org/basex/query/func/Function.java
Quoted text · planetcomolli · 20 lines
Am 05.08.2011 um 22:43 schrieb planetcomolli at tin.it: > Hi everyone! > > I have started using base-x recently and i have a question that it may be naive, but i can't find a solution. > In the last version of the db you can use xslt transformation and i have been trying to do the same with xsd validation. > > I mean, validate xml documents through a xsd validator using Xquery... > I have tried for a while but i was not able to find a solution to this problem, even using java utilities. > > Is there a possible way to validate xml through xsd in base-x? > > Sorry for my really bad english and congratulations for yours really well done db!! > > Best wishes, > > Alberto > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk

⚡Generated with XQuery