Questions tagged [relaxng]

RELAX NG (ISO/IEC 19757-2) is an International Standard schema language for XML. A RELAX NG schema specifies a grammar that a validator can apply to XML documents to determine whether or not they are schema-valid.

RELAX NG is a schema language for XML. A RELAX NG schema specifies a grammar that a validator can apply to XML documents to determine whether or not they are valid.

RELAX NG was invented by James Clark and MURATA Makoto and standardized first at OASIS and subsequently in ISO/IEC JTC 1 as an International Standard, ISO/IEC 19757-2 (available here). It is formally expressed with a strong mathematical basis.

Some features of RELAX NG:

  • Schemas can be expressed using either XML, or a non-XML "compact syntax".

  • Support for pluggable datatype libraries. (Most validators come with support for the datatypes defined by W3C XML Schema.)

  • Ability to specify the start (root) elements for documents.

  • Slightly more sophisticated grammar modelling that that permitted by XML DTDs or W3C XML Schema.

Although enjoying less market share than W3C XML Schema, RELAX NG is popular among markup experts and is used as the schema language of other standards such as ODF, MathML and EPUB.

RELAX NG schemas can be programmatically converted to XML DTDs or W3C XML Schemas using James Clark's free and open source trang utility.

References:

173 questions
0
votes
1 answer

How to validate against schema for namespace, not complete document?

I have a document like this: ... ...some b:stuff... Schema for this…
Mike
  • 314
  • 1
  • 9
-1
votes
0 answers

How to define a type with enumerated strings in RELAX NG?

Still learning RELAX NG (wondering whether I should learn XSD instead), I got my element hierarchy mostly right, so I'm working on contents: One element (Unit) uses an enumeration type (a fixed set of strings), like this Byte | KiloByte | MegaByte…
U. Windl
  • 3,480
  • 26
  • 54
-1
votes
1 answer

Input documents againts relax ng

I am currently reading about XML and Relax NG, and I found one question in one notebook which got me confused. The question is: "Explain an application where we have a situation that does not require input documents to be valid (for example against…
scrapy
  • 15
  • 5
-1
votes
1 answer

Validation Layer with interdependency checks

Existing backend services will be opened for more clients (adding a Web Service Layer to the Web-Frontend client). Currently, XML Schema is used for validation of DTOs, but since the frontend is out of our control, we will have to move extended…
Ice09
  • 8,951
  • 4
  • 23
  • 25
-1
votes
1 answer

Relax NG does not support end-of-string regular expression (dollar)

I need to give some limited possibilities for an Attribute in xml, for this I am using in Relax NG validation document: myRegEx allowing to specify some regular expression the attribute need to be conform to. For some…
-1
votes
2 answers

Schema change not working

I have a schema called a.rnc that looks like this default namespace = "urn:schemas-foo:bar" include "b.rnc" { start = A Links = element link { HidableLinkType }* } A = element Bat { AType } AType = SavedResourceType …
Sachin Kainth
  • 45,256
  • 81
  • 201
  • 304
-2
votes
2 answers

Well-formed vs validated documents

I have a short question. Why XML files should be validated and not just well-formed? I looked at several places for an answer to this question but I have not found a good one.
Rapidistul
  • 406
  • 4
  • 9
  • 19
-2
votes
1 answer

How to install MSV (XML validator)

I am looking for a free good XML validator for Relax NG, particularly. I read about MSV and would like to use it. Google brought me to this website. However, when I clicked 'download', I was directed to a files repository. I couldn't see any…
Chong Lip Phang
  • 8,755
  • 5
  • 65
  • 100
1 2 3
11
12