Tag Archives: Schematron

Tales from Support: Java VM not found

Sometimes people get a Java loading error on using JSON schema validation, the Schematron validator or XSLT transformations in XML ValidatorBuddy or JSONBuddy for the very first time. In addition the editor shows a warning in the Results window if Java can’t be loaded on starting the application. You can use the Java control panel to check if there is a… Read more »

How to debug Schematron validation

      No Comments on How to debug Schematron validation
How to debug Schematron

A Schematron validator is a powerful tool to run business rules for your XML data and to check conditions that are not supported using W3C schema. Schematron uses a lot of XPath and the validator is based on XSLT to apply all rules to the XML instance. But often it is not easy to debug a Schematron check if it does not work… Read more »

Schematron: Check for unique attribute and element values

Based on customer feedback I want to post some solutions for two very common Schematron checks. The first rule is an assertion to report if all values of an attribute are unique for all elements (within the same parent). Simply open XML ValidatorBuddy, create a new Schematron schema and add the following rule in the editor: <iso:pattern id=”unique name attributes”>… Read more »

A Schematron sample: Count child nodes in batch mode for many files

Schematron is a powerful and useful technology to complement the standard W3C Schema and DTD validator in XML ValidatorBuddy. However, it is often complicated to configure an XML editor to apply a Schematron schema to any number of files in an easy to use and simple way. In this post I want to illustrate how easy it can be to apply a Schematron… Read more »