Автор: Erik Siegel
Издательство: XML Press
Год: 2022
Страниц: 278
Язык: английский
Формат: epub (true), pdf, mobi
Размер: 10.2 MB
Schematron is a validation language that checks XML documents against business rules. It extends the validation provided by languages such as Document Type Definitions (DTD), W3C XML Schema, and RELAX NG, giving you the ability to check your XML documents for compliance with rules that can be difficult, if not impossible, to check with the other validation languages.
Schematron: A language for validating XML is aimed at programmers and others who process XML. It explains the language in detail along with many examples. Anyone who uses Schematron or who would like to begin using it will find a wealth of information in this book.
Computer data format families work the same way. Examples of data format families include EDI, CSV, JSON, and XML. Each has its own syntax rules, application domains, pros, cons, and fan club.
The rules for computer data checks can be expressed in special formal computer languages called validation languages. Validation languages allow the computer system to validate whether the data it consumes or produces is correct and valid. Schematron, the subject of this book, is about validating XML, so let’s focus on that.
Who is this book for?
This book is for anyone who wants to learn Schematron or expand their existing knowledge of the language. I assume you have at least a basic knowledge of XML.
If the examples above look like complete gibberish, this book is probably not for you. But if you know your way around XML at this level, read on. In writing this book, I assumed that Schematron is used by a wide variety of people with a broad range of backgrounds. Some will be XSLT or XQuery programmers. Some will previously have written schemas in other languages like W3C XML Schema, or RELAX NG. Others will be less tech-savvy or newer to the XML world. This book tries to explain Schematron for both XML aficionados and people who are less experienced. I assume a basic familiarity with XML. A little programming experience helps but is not strictly necessary. If your experience fits this profile, basic Schematron should be no problem.
For those that want to go beyond basics, there’s also a lot to be gained. Schematron schemas can do amazing things, like combining data from many sources or even digging into databases. You can mix it with programming languages like XSLT, unleashing all the power these languages provide. This book will teach you how to do this.
Скачать Schematron: a language for validating XML