Day 15 Working with Namespaces

In yesterday’s lesson, you learned to work with multiple XML sources. By loading additional documents into a variable, you can use one stylesheet to operate on separate datasets in different files. This capability is very useful if different files contain related data.

One of the problems of working with multiple data structures is that their elements may have the same name but a different meaning. In most cases, that also means that they need to be processed and displayed differently. This is where XML namespaces come in, which is the key topic of today’s lesson. Throughout this book, you have informally been working with namespaces, but the time has come to bring this topic more to the foreground and formalize ...

Get Sams Teach Yourself XSLT in 21 Days 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.