Chapter 11. Namespaces

Namespaces can be both simple and complicated. The very first example schema in this book included an attribute from the xml:lang namespace and it didn’t seem like a big deal. However, if you think about it more carefully, you’ll see that namespaces present two different challenges to schema languages. The first is that schema languages need to provide a way to specify which namespaces apply to the elements and attributes that are described; the second is how to cope with extensibility, one of the objectives of XML namespaces.

In this chapter, we’ll take a closer look at these two challenges and how RELAX NG addresses them.

Get RELAX NG now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.